title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
width and height must be > 0 while creating bitmap | <p>I am working on an android app. Google Map and Marker clustering is impemented in my app. App is running fine on 4.4 and lollipop devices. I am creating custom marker using the following code and recieving following error
<em>java.lang.IllegalArgumentException: width and height must be > 0</em></p>
<p>I am using th... | 2 | 1,890 |
Tab refers to a missing document | <p>I am trying to send an envelope that is composed of
Template1 (1 pdf document)
Template2 (2 pdf documents, 1-regular fill-out, 2-with attach extra document tab)</p>
<p>If I use just template1 or template2 individually, I am able to send out the envelope. However, I can not send it both templates at the same time, ... | 2 | 1,466 |
Javascript form validation not working? | <p>Can't for the life of me figure this out. The form validation STOPS working once I get to the "countrySelect" id. Even if I fill this in, and try to get it to show the alert for the zip or phone field it doesn't work, it continues submitting the form. However, the alerts work when an input before the countrySelect i... | 2 | 6,301 |
Spring Integration poller to launch Spring Batch job once when cron expression triggers | <p>We would like our Spring Batch job to fire once when the cron expression triggers every 2 minutes. But we are noticing that it runs continually when it is triggered -- as soon as the first job has completed, a second job is launched as can be seen in the logs:</p>
<pre><code>2016-04-08 21:18:02,426 INFO [org.spring... | 2 | 1,407 |
Dynamically add context menu items in CKEditor based on user-selected list | <p>Using the CKEditor plugin, I am trying to add context menu items based on items the user has selected from a DataTable object. The menu items show up just fine. The first menu item added, <strong>Current Time/Date</strong>, works. But when clicking on any of the items that were added by the For loop, they all exe... | 2 | 1,640 |
Class method.. Print the monthly interest amount. Python | <p>I am making a program that uses the class Account to print the monthly interest amount of accountA, among other things. I am having problems with getting the getMonthlyInterestRate() and getMonthlyInterest definitions to work out. Here is the program thus far:</p>
<p>Account.py</p>
<pre><code>class Account:
de... | 2 | 1,230 |
Spring Security Authorization Issue | <p>I am trying to authorize my rest service method for user or admin. But it seems it's not authorizing it and by passing the secured and preAuthorize tags. </p>
<pre><code> @Configuration
@EnableWebSecurity
@EnableGlobalMethodSecurity(securedEnabled = true,prePostEnabled = true, mode = org.springframework.... | 2 | 3,477 |
Dropzone.js - Multiple file upload without duplicated response | <p>TLDR;</p>
<p>I managed to simplify my question after a good night's sleep. Here's the simpler question.</p>
<p>I want to upload N files to a server, which would process them together and return a single response (e.g. Total foobars in all files combined = XYZ).</p>
<p>What's the best way to send this single respo... | 2 | 1,119 |
MapQuest Leaflet Api - Get optimized path with time and distance | <p>I'm using <strong>MapQuest Leaflet Api</strong> to draw a route with multiple stops (Custom Markers). Everything is almost done. I'm getting a route multiple markers and a poly line. </p>
<p>I have two question </p>
<ol>
<li>How to draw a <strong>optimized route onClick of<br>
button</strong> code for route o... | 2 | 1,785 |
*why* does list assignment flatten its left hand side? | <p>I understand that list assignment flattens its left hand side:</p>
<pre class="lang-raku prettyprint-override"><code>my ($a, $b, $c);
($a, ($b, $c)) = (0, (1.0, 1.1), 2);
say "\$a: $a"; # OUTPUT: «$a: 0»
say "\$b: $b"; # OUTPUT: «$b: 1 1.1» <-- $b is *not* 1
say "\$c: $c"; # OUTPU... | 2 | 1,327 |
Off-axis projection with glFrustum | <p>I am trying to do an off-axis projection of a scene with OpenGL and I gave a read to the document to <a href="http://csc.lsu.edu/~kooima/pdfs/gen-perspective.pdf" rel="noreferrer">Robert Kooima's off-axis projection</a> and have a much better idea now of what actually has to be done but there are still some pieces w... | 2 | 1,521 |
Fetch items via ajax request on rails | <p>So I have the select tag and embedded options tag. I got help here, <a href="https://stackoverflow.com/questions/31324802/jquery-filter-next-select-group-based-on-selection-of-previous-select-group">Jquery Filter next select group based on selection of previous select group</a>,
on how to filter the next select gro... | 2 | 1,655 |
how to append text to svg path via javascript(svg.js) | <p>Hey I have some svg elements which are open paths and I want to add to them some labels.
Now my original code was in canvas and I am looking for a techinuqe similiar to canvas(fillText) where you can add text label to your svg elements.</p>
<p>I am adding the code, I am using the library svg.js for svg capabilities... | 2 | 2,926 |
Resize svg icon using path element | <p>I'm using a predesigned menu which has been used <code>svg</code> for drawing icons.</p>
<p>For some reasons, I have to change icon size using <strong><code>path</code></strong> element.</p>
<p>Now, I want to change icon and I have my own custom icons; So, I downloaded some <code>svg</code> icon of web, <strong>BU... | 2 | 12,164 |
Firebase Cloud Messaging Service Unable to instantiate service FCM.MessagingService | <p>I have included Firebase Cloud Messaging Service and push notification service in my app by following official documentation. However, when I receive the message my app crash</p>
<p>However, I cannot receive push notification from my server. The error log says below.</p>
<p><strong>Error Message:</strong></p>
<pr... | 2 | 2,554 |
Exposing a module's data to Views2 using its API | <p>I'm forking the <a href="http://drupal.org/project/filefield_stats" rel="nofollow noreferrer">filefield_stats</a> module to provide it with the ability of exposing data into the <a href="http://drupal.org/project/views" rel="nofollow noreferrer">Views</a> module via the <a href="http://views2.logrus.com/doc/html/ind... | 2 | 2,746 |
Spring MVC test 3.2.2 fails "flash().attributeExists" assertion for some strange reason | <p>I am testing the following <strong>Spring MVC controller method</strong>:</p>
<pre><code>@RequestMapping(value = "/passwordReset", method = RequestMethod.POST, produces = "text/html")
public String resetPassword(@Validated({ ValidationGroups.PasswordReset.class }) @ModelAttribute PasswordInfo passwordInfo,
... | 2 | 1,390 |
Android Webview Permission denied error when try to video call | <p>I am using a webview to load a url which has a feature to video call.
When i try to initiate a video call. I get the following error "Permission denied. Please refresh the page and allow access to your camera and microphone" .</p>
<p><a href="https://i.stack.imgur.com/qEnif.jpg" rel="nofollow noreferrer"><img src=... | 2 | 1,531 |
vuejs v-bind:class on a v-for not updating | <p>have this code</p>
<pre><code><span v-for="tag in ref.tags" @mouseenter="tag.pop=true;tag.adjust($event)" @mouseleave="tag.pop=false" >
<span :class="tag.pop? 'ref-tag-pop' : 'tag'">@{{tag.name}}</span>
<div v-show="tag.pop">@{{tag.info}}</div>
</span>
</code></pre>
<p>... | 2 | 2,500 |
Recursive spider with scrapy only scraping first page | <p>I'm attempting to write a spider that recursively scrapes an entire site, using scrapy.</p>
<p>However, while it seems to scrape the first page fine, it then finds the links on that page, but doesn't follow them and scrape those pages, which is what I need.</p>
<p>I've created a scrapy project and started writing ... | 2 | 2,385 |
Using d3-3d with pan & zoom while retaining rotation | <p>I am using the <a href="https://github.com/Niekes/d3-3d" rel="noreferrer">d3-3d plugin</a> to graph 3d bar charts, but I'd like to add the pan & zoom functionality while keeping the rotation. Just adding in <code>d3.zoom()</code> seems to conflict with the <code>d3.drag()</code> behavior - it appears to be rando... | 2 | 2,984 |
how to insert null date into access | <p>i want to insert null date into access database if user payment choose as cash then cheque date should be insert as empty for this im using masked textbox , i use debugger also but every time debugger going else condition and for that its giving me data mismatch exception here is im giving my insert code</p>
<pre><... | 2 | 2,760 |
Non-resolvable parent POM exception thrown while running maven project | <p>I'm new to Jenkins plugin development,and trying to create a Jenkins plugin by using maven project, and using eclipse as IDE.</p>
<p>The below is pom.xml file structure:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/20... | 2 | 1,899 |
Odoo how to filter many2one field values in one2many field | <p>I have many2one field <strong>name_id</strong>. Usually when I use it in <strong>my_model.xml</strong> code below in this field I can select from all the values written in <strong>my.model.line</strong>.
In this case I want to filter values and see the list of only these values which are written in current my.model.... | 2 | 1,168 |
How to read a key value from JSON string? | <p>I want to read a value from a JSON String using JSONCPP.
Here is my JSON</p>
<pre><code>{
"action": "SCAN",
"table": "Log",
"rowLimit": "1000",
"colFam": [
"i"
],
"filter": [
{
"op": "prefix",
"cf_qn": "ROWKEYS",
"val": "1#1404906729"
... | 2 | 1,490 |
build API methods as angular service | <p>As I started using AngularJS a couple of days ago, I discovered a lot of useful stuff and I realized that it's easier using it in your web applications rather than building everything from scratch ( sometimes that is necessary but not in most cases ) or using a lot of libraries that may clutter the load time of the ... | 2 | 4,137 |
Mail composer gives an error in Xcode | <p>I'm trying to senda a mail with a iOS app.</p>
<p>This is the method:</p>
<pre><code> MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self;
[picker setSubject:@"Reclutamento pompieri"];
// Set up the recipients.
NSArray *toRecipi... | 2 | 5,234 |
incorrect syntax near in creating stored procedure on a remote db | <p>I am trying to recreate a stored procedure on a database which is hosted on a remote server.
When creating the same SP locally I don't get any errors but when I am trying to create the SP on the remote server I am getting this errors:</p>
<pre><code>Msg 102, Level 15, State 1, Procedure MySP, Line 26
Incorrect synt... | 2 | 1,522 |
Storm > Howto Integrate Java callback into a Spout | <p>I'm trying to integrate Storm (<a href="https://github.com/nathanmarz/storm/wiki/Clojure-DSL" rel="nofollow noreferrer">see here</a>) into my project. I grok the concepts of topologies, spouts, and bolts. But now, I'm trying to figure out the actual implementation of a few things. </p>
<p><strong>A)</strong> I have... | 2 | 1,449 |
Google Sheets Candlestick Chart modify high and low line width? | <p>I have been working with Google's Candlestick charts and customized everything to my needs, except that the width of the lines above and below the candlestick cannot be modified, or simply I have not found a way to do so. My code looks like this:</p>
<pre><code><script type="text/javascript" src="https://www.goo... | 2 | 1,191 |
TimePicker with 15 minutes interval in xamarin forms | <p>I need to set 15 minutes interval in Time Picker. I have done for iOS. But in Android it is not working.</p>
<p>For iOS I used following code and it is working:</p>
<pre><code>public class CustomTimePickerRenderer : TimePickerRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<TimePick... | 2 | 1,893 |
iPhone APP accessing .net WCF service and get the results in label | <p>Am a .Net programmer and a newbie into iPhone APPs and Obj C.</p>
<p>My requirement is as follows.</p>
<p>I need an iPhone App which consumes a method in .net WCF service and will show the results in a label or textbox in the iPhone.</p>
<p>I have the wcf for multiplying 2 numbers.When I did NSLog, it was getting... | 2 | 2,400 |
Displaying huge amount of data from database gradually using AJAX - LARAVEL | <p>I'm using laravel to fetch huge amount of data from database (100mil++ data), but it was giving me error which is timeout because loading the data is too long, and i want to use AJAX to append the data in Laravel view gradually by calling the controller, and then the controller fetch the data using query with LIMIT,... | 2 | 1,045 |
ASP.NET treeview manipulation api for jquery? | <p>In my asp.net solution, I have a asp.net tree view, and I want to make some client side manipulations to it. I am basically looking for a way in jQuery, to do</p>
<ul>
<li>iterate through all root nodes</li>
<li>iterate through all sub nodes given a node</li>
<li>get the text of the given node</li>
<li>get the valu... | 2 | 6,698 |
JSF 2.2 SelectManyCheck breaks javascript | <p>It used to work perfect on jsf 2.0 but know it renders a box at the end of the screen, with a html table with the data about locations, if I remove the converter the selectmany
checkbox works but it still renders the box.</p>
<p>
</p>
<pre><code><ui:composition template="/template.xhtml">
<ui:define ... | 2 | 5,409 |
Bootstrap 3 timeline responsive | <p>So i found this timeline for Bootstrap 3 :
<a href="http://codepen.io/betdream/details/Ifvbi" rel="nofollow">here's the original timeline</a></p>
<p>but i wanted to change it more to look like this : </p>
<p><a href="http://jsfiddle.net/lenchenx3/n4Wkn/" rel="nofollow">here's my jsfiddle</a></p>
<pre><code><d... | 2 | 4,824 |
Get location of client machine using ip address | <p>I am trying to get the location of client machine using ip address. Client can access the internet only if
he/she provide the proxy authenication.
Let us say client need to access the 'www.google.com' on the browser then immediately Authenication Required
prompt window open and then client enter his/her username and... | 2 | 1,360 |
ASP.net MVC Data Table Ajax Error | <p>Im creating my firts MVC app, this app should thisplays in Data Table all the info Stored in my Tables "Clientes", this table was created using SQL Server andis being link to my project using Entity Framework.</p>
<p>but when i run my code I got this error message: </p>
<pre><code>DataTables warning: table id=my... | 2 | 1,878 |
HTTP Status 400 The request sent by the client was syntactically incorrect in Spring | <p>I have created a MVC structure to save a new record for patient and i keep getting 404 error. Here is my code,</p>
<p>Patient.java</p>
<pre><code>public class Patient {
private int patient_ID;
private String name;
private String gender;
private int age;
private Date dob;
public Patient(){
}
public Patient(int ... | 2 | 3,508 |
keep only one li node open in tree view display | <p>I want to hide other siblings li when i click one li to diplay tree view.
Only one node should open and its children elements have to expand. check the fiddle links below .
Html code :
<li>Part 1
<ul>
<li>Item A
<ul>
<li>Sub-item 1</li>
<li>Sub... | 2 | 3,666 |
What is the impact of F5 loadbalancer on session timeout in an asp.net mvc2 app | <p>I have implemented the showing alert message for Session timeout in an asp.net mvc2 application using the following article with some customization as per the requirement:</p>
<p><a href="http://fairwaytech.com/2012/01/handling-session-timeout-gracefully/" rel="nofollow">http://fairwaytech.com/2012/01/handling-se... | 2 | 1,081 |
how to get the RGBA value of UIImage in the specific clicked point | <p>I am developing an iPad application that has multiple UIImageViews in a viewcontoller. each image has some transparent parts. when the user click on the image I want to test if the area of the image he clicked on was NOT transparent then I want to do some action</p>
<p>after searching I have reached the conclusion ... | 2 | 1,099 |
Problems breaking an .htaccess redirect out of an infinite loop | <p>So I have asked for help over at my weblog, scoured the internet, and pored over the examples you all have provided on here before, and I still cannot find an answer that works. </p>
<p>Simply put, I am trying to take all traffic referred to my site from Site A, and redirect it all to Page B within my domain. I h... | 2 | 1,585 |
Viewmodel to allow sorting and filtering for mvc contrib grid | <p>In my attempt to enable sorting and filtering in conjunction with the MVC contrib. grid I have decided to use a Viewmodel which contains the grid data plus the sorting and filtering information. I added a form under the grid and the Viewmodel is used to maintain the state of the form and to carry the data for the g... | 2 | 1,978 |
HTML input of type time in flask - how to autocomplete minutes/seconds if missing | <p>I'm using a form with a submit button that is processed through Flask in order to add a new task (a row) in a SQLite database called tasks.</p>
<p>Here is the HTML <code><div/></code> container with the respective <strong>block content</strong> for the Flask part:</p>
<pre><code><div class="container">... | 2 | 1,134 |
Parsing xml data to display in Fragment Android | <p>I am trying to parse xml from a Url and display in a fragment but it doesn't work. The application crashes each time I launch it. Any help please? Thanks</p>
<p>Here is the code for the Adapter:</p>
<pre><code>import java.util.ArrayList;
import java.util.HashMap;
import android.app.Activity;
import android.content... | 2 | 2,024 |
docker-compose uwsgi connect() failed (111: Connection refused) | <p>I made infra with docker.</p>
<p>Also used docker-compose to tide each container.</p>
<p>Below is images that I used.</p>
<ul>
<li>nginx:latest</li>
<li>mongo:latest</li>
<li>python:3.6.5</li>
</ul>
<p>To deploy flask webserver, I used uwsgi.</p>
<p>(uwsgi installed at python:3.6.5)</p>
<p>[docker-compose.yml]... | 2 | 1,117 |
SWF + Primefaces repeat context Path in URL and AJAX not work | <p>the project is developed in Spring 3, Spring web flow 2.3, Spring security 3 and Primefaces 3.2. When I use dispatcher servlet of JSF2 the view reload with AJAX perfectly and I can use tag h:link. But since I use dispatcher servlet from SWF I have started to have problem in two cases above.</p>
<p>For example, when... | 2 | 4,407 |
ASP.NET MVC 4 Ninject MVC 4 Default constructor not found for type 'App.Controller' | <p>I have set up a new ASP.NET MVC 4 Application in Xamarin Studio / monodevelop-opt on Ubuntu 14.04 LTS (Mono 3.10.0 mod-mono-server4 / xsp when running in IDE). Packages Installed are:</p>
<pre><code>Install-Package Microsoft.AspNet.Mvc -Version 4.0.40804
</code></pre>
<ul>
<li>Microsoft.AspNet.MVC</li>
<li>Microso... | 2 | 2,198 |
RadioButtons and CheckBoxes not working properly on iOS and UWP | <p>I am working on a cross platform app using <code>Xamarin</code> in <code>Visual Studio 2015</code>. I am using <code>XLabs.Forms v2.3.0- pre 05</code> and I am having problems with <code>radio buttons</code> and <code>checkboxes</code>.</p>
<p>Right now the <code>checkboxes</code> work fine on <code>UWP</code> but ... | 2 | 1,203 |
SSH python script execution taking too much time | <p>I am using python script to ssh and connect two pc's for running iperf commands, but the script is taking a lot of time for execution. How can I reduce the execution time: the script is being run from eclipse IDE.</p>
<p>this is the script that i am using:</p>
<pre><code>import pexpect
import pxssh
import time
imp... | 2 | 1,269 |
How to get concurrent.futures ThreadPoolExecutor work with a dictionary as one of two params? | <p>I try to create a ThreadPoolExecutor with two params where one of them is a dictionary.
My intention is to pass the whole dictionary as a param, but at the moment my <code>multi_thread_load</code> loads the first player_ID with the first dictionary value and the second player_ID with the second dictionary value.</p>... | 2 | 1,573 |
Refreshing Bokeh DataTable through Selection of Plots | <p>I am trying to update Bokeh DataTable by selecting a plot.Not sure why it's not getting updated?In the code below,source_devon is ColumnDataSource for the plot- I wanted Datatable to get updated when we select a particular portion.Currently DataTable is created(initialization),but it doesn't changes on selection</p>... | 2 | 2,108 |
remove rows which have a specific attribute less than or equal to 0 | <p>I have several large text files (30m+ lines, >1GB) which are being processed in ArcGIS after splitting (see <a href="https://stackoverflow.com/questions/9473921/remove-specific-lines-from-a-large-text-file-in-python">Remove specific lines from a large text file in python</a> and <a href="https://stackoverflow.com/qu... | 2 | 1,544 |
Can't get Sass Source Maps working with grunt-autoprefixer | <p>I'm using Grunt 0.4.5 with these dependencies in my project:</p>
<pre><code>"grunt": "~0.4.5",
"grunt-contrib-concat": "~0.5.0",
"grunt-contrib-uglify": "~0.6.0",
"grunt-contrib-watch": "~0.6.1",
"grunt-contrib-sass": "~0.8.1"
</code></pre>
<p>I've just noticed that <a href="https://github.com/nDmitry/grunt-autopr... | 2 | 1,483 |
Using MetaDataExtractor to add EXIF back to resized image | <p>Using an MVC application to upload an image, we need to reduce the file size before saving to the DB, but want to retain the EXIF data... The only way I can think of this is to get this from the original uploaded image and then add it to the resized one, using MetadataExtractor</p>
<p>We can get the metadata like t... | 2 | 1,453 |
Division using MySQL with Group By | <p>I am looking at the previous post on "division using count" and seems to be having problem in the divide by part. Below is my query, I get the results but the results is wrong because the "divide by" with <code>count(*)</code> seems to be using the count of all the stores and not group by the stores.</p>
<p>What I ... | 2 | 1,366 |
Deep link does not work with Branch | <p>This is what I got in my Manifest:</p>
<pre><code><activity
android:name=".activities.VidyoSampleActivity"
android:label="@string/app_name"
android:configChanges="orientation|screenSize">
<intent-filter>
<data android:scheme="facetalk" android:host="open"/>
<act... | 2 | 1,213 |
Wrapping MongoDB calls within a Promise | <p>I'm using Meteor (1.0.3) in general, but for one particular case I'm using a raw server side route to render a file -- so I'm outside a Meteor method.</p>
<p>I'm using node fs.writeFile/fs.readFile and exec commands to call out to Linux command-line utilities too.</p>
<p>My only point in brining this up is that th... | 2 | 1,780 |
python get month of maximum value xarray | <h1>How to get the month of maximum runoff</h1>
<p>I want to get the month of maximum runoff for each year, and for the time series as a whole. The idea is to characterise global seasonality by looking at the month of max runoff. I then want to try and consider whether each pixel has a unimodal or bimodal regime.</p>
<... | 2 | 2,597 |
Inserting data in Database from Google Maps using asp.NET C# | <p>Im currently developing a project using Google Maps. The whole function that im stucked in is going to let the user create a track on google maps. The user will be able to select the start and finish position on the track using 2 different markers, each of those markers got an radius which also is editable by the us... | 2 | 2,049 |
C# data binding nested ItemsControl wpf | <p>I want to build a UserInterface like this (a timeline for a video editor)
<a href="https://i.stack.imgur.com/fkD6l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fkD6l.png" alt="enter image description here"></a></p>
<p>and I have all classes:</p>
<pre><code>public class Timeline
{
... | 2 | 1,195 |
Reading PhoneLookup.NUMBER crashing application in Android | <p>The following is my code:</p>
<pre><code>Cursor mCursor = this.getContentResolver().query(
ContactsContract.Contacts.CONTENT_URI, null, ContactsContract.CommonDataKinds.Phone.HAS_PHONE_NUMBER + "==1", null, null);
startManagingCursor(mCursor);
ListAdapter adapter = new SimpleCursorAdapter(this,
R.layout.two_l... | 2 | 1,275 |
Django-ckeditor file upload doesn't work | <p>I use django-ckeditor module in my blog as WYSIWYG editor for create and edit articles in the administration. It work pretty well but I can't upload image to my server. When I click on the image button, the button "browse the server" and "upload image" doesn't appear as they supposed to (I saw it somewhere). I can o... | 2 | 1,128 |
Android Virtual Device Manager - Webcam0 on 4.4.2 not working | <p>I've configured a virtual 4.4.2 (arm) Android Device in the AVD (Full Settings below) and need to use my webcam to test the camera.</p>
<p>The camera app starts and crashes instantly (Camera has stopped working).</p>
<p>I get the following log output:</p>
<pre><code>10-28 05:43:41.220 370-548/system_process ... | 2 | 1,677 |
Websphere MQ message redelivery | <p>I have a Websphere MQ and a java app receiveng messages from it. I want to make redelivering system if any exceptions is thrown in my app. I'm using spring transaction manager, but the problem is if the message cause an exception in my app, the app is trying to resend the same message. Can i put a broken message in ... | 2 | 1,608 |
How to watch for changes automatically in a API Endpoint with Vue? | <p>I’m building an app that uses <strong><a href="https://api.stackexchange.com/docs">Stackoverflow’s API</a></strong> to get the <em><strong>last question</strong></em> of a <em><strong>certain tag</strong></em> & ouput it on my app. I have been able to get the <em><strong>last question</strong></em> on the <em><s... | 2 | 1,550 |
How to display data from two SQL tables in one GridView in Web Forms? | <p>In my SQL Server Express I have <code>Recipients</code>, <code>MailingLists</code> and <code>RecipientMailingList</code> (<code>Recipient</code>'s ID and <code>MailingList</code>'s ID) tables. Each recipient is assigned to a few mailing lists. I want to display all recipients' info in a <code>GridView</code>. I want... | 2 | 1,573 |
Black Screen Shows in Android ( Splash Screen ) | <p><strong>What is Problem ?</strong></p>
<p>My app is social forum app. When i try to login app. After splash screen it shows black screen. How Can I Resolve this ?</p>
<p><strong>What you have tried ?</strong></p>
<ol>
<li><p>when i try it on emulator. it sometimes work but if i try to logout and login. black scre... | 2 | 3,427 |
Node.Js function runs twice when called once on promise return | <p>I am attempting to create as many Google Slide slides as needed based on user input. In theory, my code should work if I can fix this one problem. The problem is, I can't. When I run my code, it stops because the createSlide() function runs twice on one call and creates two slides with the same Id. Poking around on ... | 2 | 3,031 |
Spring Boot Elasticsearch TransportClient Creation Fails when including Selenium Jar | <p>I have a Spring Boot Application with externalized Elasticsearch server which boots properly. Once I add the Selenium to the the POM, I get the error below. Any help how to resolve would be appreciated.</p>
<pre><code>.
.
.
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [or... | 2 | 1,710 |
Why used heap is always increasing in my MINA application? | <p>I have an application which consists of two parts as server and client. </p>
<p>It works like this :</p>
<p>Client connects to the server and sends a string; server receives the string and returns an ArrayList (by converting string) which contains 10000 elements.</p>
<p>I wrote a class (ClientConnector.java) whic... | 2 | 2,568 |
javax.validation.UnexpectedTypeException using Spring ConstraintValidator for an enumeration | <p>I have implemented a ConstraintValidator in order to valide a DTO that contains an enumeration. I followed <a href="https://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/validation.html#validation-beanvalidation-spring-constraints" rel="nofollow noreferrer">this Spring documentation</a> for that.<... | 2 | 1,054 |
MVC 3 Remote Validation Form Button Not Included in POST Data | <p>I have an ASP.NET MVC3 app and with remote validation on one of my model classes. I discovered if I open the Edit view for the that model and the remote validation routine <strong>IS NOT</strong> called (due to not editing the field with remote validation on it) before submitting the form, the button clicked to POST... | 2 | 1,082 |
How can I adjust the size of a KivyMD Tabs' content? | <p>I'm trying to build three tabs using KivyMD, but when I add a content to each MDTabsBase, the contents always take the same space. I tried a lot changing it's size so the content takes the whole box, but just doesn't work. </p>
<p>Here is how the content looks like: </p>
<p><a href="https://i.stack.imgur.com/lka4m... | 2 | 2,702 |
urlopen error [Errno 8] _ssl.c:507 in GAE | <p>I am getting this error <code>urllib2.URLError: <urlopen error [Errno 8] _ssl.c:507: EOF occurred in violation of protocol></code> while deploying to Google App Engine. Yesterday It was working perfectly. Today troubling. I have tried several times. But the same project works well in localhost. I am using 2 st... | 2 | 1,243 |
Cant get jQuery ajax POST to work | <p>If I set type to 'GET' in the code below it works, but I cant get it to work with 'POST'.</p>
<p>ajaxPostTest.html...</p>
<pre><code><html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.js"></script>
<script type="text/javascript">
$(document).ready(f... | 2 | 1,080 |
How can I implement search in this Flutter app | <p>I'm trying to add a search feature to this flutter app since the json file it pulls data from has 7000 results.</p>
<p>Mainly I'm trying to do search for "ctry" and "peopnameincountry". This was ripped from <a href="https://www.youtube.com/watch?v=EwHMSxSWIvQ" rel="nofollow noreferrer">https://www.youtube.com/watch... | 2 | 1,572 |
convert attribute-centric xml to element-centric | <p>Is there a way to convert following XML file to element-centric file? Perhaps using an online tool? Without requiring to use VB anything? I need to import this xml to Access, but unable to do so because Access requires element-centric xml.</p>
<pre><code><?xml version="1.0"?>
<?xml-stylesheet type="text/... | 2 | 1,279 |
Unable to change ping timeout in Excel VBA IP list ping | <p>The below code pings a list of IP addresses in an Excel sheet and returns the response time and TTL. Depending on the number of IP addresses the timeout can add up really fast and make for a long wait. Is there any way to add a custom timeout of 500ms?</p>
<pre><code>Sub Ping_Check()
' Based on http://social.tech... | 2 | 1,146 |
Transform Pandas dataframe into frequency matrix | <p>I'm trying to transform a pandas dataframe with three columns (Date, Start, End) into a frequency matrix. My input dataframe look like this:</p>
<pre><code>Date, Start, End
2016-09-02 09:16:00 18 16
2016-09-02 16:14:10 16 1
2016-09-02 06:17:21 18 17
2016-09-02 05:51:07 23 17
2016... | 2 | 1,784 |
Using apply functions with ggplot to plot a subset of dataframe columns | <p>I have a dataframe <code>df</code> with many columns ...
I'd like plot of subset of columns where <code>c</code> is a list of the columns I'd like to plot.</p>
<p>I'm currently doing the following </p>
<pre><code>df <-structure(list(Image.Name = structure(1:5, .Label = c("D1C1", "D2C2", "D4C1", "D5C3", "D6C2")... | 2 | 1,569 |
Missing value for stripe.confirmCardPayment intent secret: value should be a client secret of the form ${id}_secret_${secret} | <p>I'm working on an e-commerce web app using Laravel and Vuejs. I chose Stripe's API to accept and manage payments.
In my Vue component, which contains the payment form, and before making it visible(I'm using a multi-step form), I send a post request to my payments store controller function to 'initialize' Stripe and ... | 2 | 2,090 |
How can I bundle Express Js (NodeJs) and Pug engine using Webpack? | <p><strong>Introduction:</strong>
I have used ExpressJs framework with node as server and pug as a template engine. I want to bundle .js , .pug & .css.</p>
<p>I'm aware of webpack <em>(module bundler)</em> configuration for static files <em>(CSR-client side rendering)</em> . For CSR appoach we will follow the steps... | 2 | 1,278 |
Laravel: DataTable Multiple checkboxes | <p>Im fetching my data in my server side and I put checkbox.</p>
<p>I need some clarification, do I need to put checkbox here or it will be automatically added? </p>
<p><strong>Controller</strong></p>
<pre><code>$result[] = array(
'#' => '<span style="font-size: 12px; color: gray"&... | 2 | 3,345 |
How to set mutual authentication using SSL in Java SE | <p>I am playing with SSL in Java for the first time, trying to create an echo server.
I have managed to get it working when only the server needs to authenticate, with (after setting the properties to point to the appropriate KeyStore and TrustStore):</p>
<p><strong>Server side:</strong></p>
<pre><code> SSLServerS... | 2 | 3,473 |
Postgres WITH RECURSIVE CTE: sorting/ordering children by popularity while retaining tree structure (parents always above children) | <p>I'm building a forum, very much like Reddit/Slashdot, i.e.</p>
<ul>
<li>Unlimited reply nesting levels</li>
<li>Popular comments (ordered by likes/votes) will rise to the top (within their own nesting/depth level), but the tree structure needs to be retained (parent is always shown directly above children)</li>
</u... | 2 | 2,230 |
Babysitting Application | <p>The question is quite lengthy but i hope the information I have provided is sufficient. All the code works except for the point where I have to construct a <code>BaysittingJob</code> object and display its values. Thank you so much.</p>
<p>I cannot get the application to output the desired results. It is supposed t... | 2 | 1,558 |
C++ Reversely sort characters in a string | <p>There are tons of codes that sort an array of strings lexicographically but I can't find one that does sorting characters in ONE string reverse lexicographically. So far I discovered that using <code>std::sort()</code> in <code><algorithm></code> might be the closest candidate.</p>
<p>This is what I tried:</p... | 2 | 6,206 |
PrimeFaces autocomplete 3.3.1 not working for me | <p>I have set up a test page using the PrimeFaces showcase labs code to test out the component. When I start typing in the autocomplete box, I receive an exception. Note that depending on whether I have client or server state saving turned on, the exceptions are different. I am using WebLogic 11g, PrimeFaces 3.3.1, Ap... | 2 | 2,996 |
Optimize delete operation on table with millions of records | <p>I have a table with multiple columns. "reason" is one of the non-indexed columns, which may have duplicated values. In my table there are in total two hundred thousand records. I want to delete rows based on a particular reason, for example "MY REASON", whereas there are around 15K records with "MY REASON".</p>
<p>... | 2 | 1,647 |
findViewById returning null for views from another fragment -- views have id -1 | <p><strong>Edit:</strong> Stupid user error, I had malformed XML.</p>
<p>--</p>
<p>I have an activity with three fragments inside it. In onResume() of one fragment, I am trying to grab views from another fragment using activity.<a href="http://developer.android.com/reference/android/app/Activity.html#findViewById%28... | 2 | 6,205 |
d3.js Links between nodes not rendering as lines | <p>I am using a modified balloon graph and having issues with getting the links between the nodes to render. I am using JustinVDM's custom balloon graph (<a href="https://gist.github.com/justinvdm/3676778" rel="nofollow noreferrer">https://gist.github.com/justinvdm/3676778</a>)</p>
<p>The data being used is the stock ... | 2 | 1,221 |
How to use preloaded collection in recursive methods | <p>I've the following self referential association:</p>
<pre><code>class Action < ActiveRecord::Base
# self referential association
has_many :action_parents
has_many :parents, through: :action_parents
has_many :action_children, class_name: 'ActionParent', foreign_key: 'parent_id'
has_many :children, throu... | 2 | 1,161 |
wp7 scrollviewer Listbox not working | <pre><code> <controls:PanoramaItem Header="Aylık" Foreground="White">
<Grid x:Name="monthlyPanaromaGrid" >
<Grid.Resources>
<Style TargetType="ListBoxItem" x:Key="ListItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" /... | 2 | 1,120 |
rake aborted! LoadError: cannot load such file -- httparty | <p>I'm have the following in my seed.rb file:</p>
<pre><code>require 'httparty'
require 'nokogiri'
require 'awesome_print'
BASE_URL = "http://www.legacy.com/funeral-homes/"
URL_PATH = "directory/"
def get_states(key, value)
arry = []
i = 1
while i <= value do
response = HTTParty.get(BASE_URL + U... | 2 | 1,431 |
check if a website is working error"The remote name could not be resolved" | <p>I'm trying to check if a website is online and taking urls from mssql server 2008 and if said website is not working, my code should send an e-mail. </p>
<p>It is working fine there is no problem with taking data from server but if I try to check a not working website for example <code>http://blabalabalabal.com</co... | 2 | 1,701 |
Swift - Sample - How to play beep sound before and after recording using AVAudioRecorder? | <p>I want to implement similar record button like Whatsapp in iOS using Swift, where when user holds the button down, a beep sound indicates start, after which recording starts and when user releases the button, recording stops and another beep sound indicates recording finished. </p>
<p>I tried implementing this feat... | 2 | 1,781 |
SQL Server Express fails to connect without any useful error information after ASP.NET MVC Web App user login | <p>I am using Visual Studio 2013 Update 4, I have an ASP.NET MVC Web Application which is using Entity Framework 6.1.1.</p>
<p>When I try to run my web application, it fails to load with an error.</p>
<p>In the console I get the same error repetitively:</p>
<pre><code>A first chance exception of type 'System.Data.Sq... | 2 | 2,138 |
SPC - Control Charts by Group in R | <p>I want to create a statistical process control chart for each Name in this dataframe and extract the rows that are out of control for each individual Name. </p>
<p>Below is the dataframe: </p>
<pre><code>DATE <- as.Date(c('2016-06-18', '2016-06-19', '2016-06-20',
'2016-06-21', '2016-06-22', '2016... | 2 | 2,576 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.