title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
html5 canvas adding drag and drop functionality to images drawn to the canvas | <p>I have a webpage with an HTML5 canvas which I'm using to display a number of images as well as four 'description boxes' on the canvas.</p>
<p>The intention is that users will be able to drag and drop the images to their matching description boxes, however, I'm having a bit of trouble getting the dragging and droppi... | 1 | 3,445 |
How to convert a image src from a blob string to data URI | <p>I have a page where the user can paste an image into a content editable div. When I get the image the src returns a string. When I look in debug tools this is what I see: </p>
<pre><code><img src="blob:http://www.example.com/3955202440-AeFf-4a9e-b82c-cae3822d96d4"/>
</code></pre>
<p>How do I convert that to ... | 1 | 1,729 |
WCF ContractFilter mismatch | <p>I am hosting a WCF service on IIS. I can access the wsdl file with my browser. I can also add the Service Reference in Visual Studio for my client.</p>
<p>However, if I try to call Server.Test() an ActionNotSupportedException is thrown:</p>
<blockquote>
<p>The message with Action '<a href="http://tempuri.org/IWC... | 1 | 1,224 |
Override default jquery-steps error message | <p>I'm sure I'm just overlooking something simple...but I want to display a text error message next to the invalid input item (such as a text box) in the jQuery-steps form validation. Code base on Jquery-steps, <a href="http://www.jquery-steps.com/Examples#basic-form" rel="nofollow">here</a>.</p>
<p>From what I've be... | 1 | 1,089 |
How to solve - ERROR StatusLogger No Log4j 2 configuration file found | <p>Using Intellij I am getting the error below when running in the IDE -</p>
<blockquote>
<p>ERROR StatusLogger No Log4j 2 configuration file found. Using default
configuration (logging only errors to the console), or user
programmatically provided configurations. Set system property
'log4j2.debug' to show Log... | 1 | 2,151 |
getimagesize() failed to open stream: HTTP request failed! error | <p>I'm using wordpress in my blog, but I see repeated errors in error_log as below. How can I solve this problem?</p>
<p>Thanks.</p>
<p>error_log</p>
<pre><code>[29-Nov-2015 12:01:14 UTC] PHP Warning: getimagesize(http://hardal.com/wp-content/uploads/2015/11/glogo.png): failed to open stream: HTTP request failed! ... | 1 | 1,207 |
Adding Border Around Bootstrap Tabs | <p>I'm using the Bootstrap tab markup as seen below:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>.nav-tabs {
&.nav-tabs-alt {
padding-top: 30px;
... | 1 | 2,731 |
WebView Cache not working in Android 4.4 | <p>I have been working on an application that caches an image from the web and shows it even when the user is offline. This worked pretty well until Android 4.4 came out. Now, all I see is a "Can not load the webpage" error. I suppose it might have to do something with the fact that Kitkat uses Chromium for loading web... | 1 | 1,368 |
Navigation Menu item click not working | <p>I have created a side-menu(Navigation Menu) for my app and have overridden the OnOptionsItemSelected(MenuItem item) method in order to add some custom behavior when each menu item is clicked. However, after writing some code so that when the first menu item is clicked(nav_home <- id) a Toast will be displayed,not... | 1 | 2,151 |
change color navbar after scroll | <p>i want to change the color of my navbar when i scroll. When the navbar is on top the background is transparent.
thank's to all for the attention and excuse me for my bad english!!</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre cla... | 1 | 1,751 |
Handle RadioButton events after button clicked | <p>help,
my questions are:</p>
<ol>
<li><p>why isn't <code>itemStateChanges</code> triggered, I tried to put it in the inner class <code>ButtonHandler</code> and also in <code>RadioButtonHandler</code> Im having trouble with it, what is the right way to do it?
I want to trigger and check the marked JRadioButtons afte... | 1 | 1,704 |
Error creating bean with name 'httpPutFormContentFilter' while deploying spring boot 2 app on weblogic 12.2.1 | <p>I'm trying to deploy a simple spring boot 2 hello world application to weblogic 12.2.1. Here are the files I use:<br>
This is my main class:</p>
<pre><code>@SpringBootApplication
public class SpringBootAndAngularApplication extends SpringBootServletInitializer implements WebApplicationInitializer {
@Override
... | 1 | 11,719 |
Setting an array element with a sequence error while training SVM to classify images | <p>I'm trying to do image classification using SVM in python with 1022 images and 1022 multi-class labels (each label has 14 classes).</p>
<pre><code>mypath = 'path'
k = listdir(mypath)
images = np.empty((len(k)-1), dtype=object)
resized_imgs = np.empty((len(k)-1),dtype=object)
for n in range(0, len(k)-1):
images[... | 1 | 1,134 |
How do I tell CMake where to find libusb? | <p>I'm trying to build <a href="https://github.com/mp3guy/logger1" rel="nofollow noreferrer">logger1</a>, which collects data from a Kinect for off-line SLAM by <a href="https://github.com/mp3guy/ElasticFusion" rel="nofollow noreferrer">ElasticFusion</a>. I'm building on Windows. I'm trying to build for x64 with VS10... | 1 | 1,704 |
Java ImageIO is insanely slow | <p>I'm making a program that sends the clients screen to the server and displays it but it's being extremely slow. It's taking 2-3 seconds for one frame and the upload/download speed is not a problem. Is there anything I'm doing wrong/anything I can change to speed this up?</p>
<p>Server:</p>
<pre><code>import java.a... | 1 | 1,319 |
Using jszip with angular 2 | <p>I am trying to implement <a href="https://stuk.github.io/jszip/" rel="nofollow noreferrer">JsZip </a> in angular 2 so I can zip files users have uploaded but cannot seem to get it to work.</p>
<p>In my visual studio code it seems happy when I complile I get:</p>
<p>ERROR in C:/wamp/www/nationalgrid/public_cli/src/... | 1 | 4,077 |
Java: Not able to print on TextArea from other class | <p>I have one frame in which one TestArea is there. When I append some string from this class then String is appended but when I want to append String from other class then String is not appended. I created one method to append string in TextArea, when I call this method in this class then string is appended on text Ar... | 1 | 1,185 |
how to create a custom autocomplete component in vue js? | <p>Currently i am using buefy autocomplete.But there are a few issues with it.</p>
<p>DepartmentDetail.vue</p>
<pre><code><template slot-scope="props">
<div class="container is-fluid">
<b-loading :is-full-page="true" :active.sync="this.isLoading"></b-lo... | 1 | 4,298 |
Criteria query by custom order by condition | <p>I am trying to order the data by field</p>
<p>The query:</p>
<pre><code>select * from user
where (location = "%loc%" and role = "TECH")
order by field (department, "ELEC", "MECH");
</code></pre>
<p>I created custom Order class for order by field its working fine only in single where condition if i provide two whe... | 1 | 1,428 |
gRPC client failing to connect to server with TLS certificates | <p>I am trying to establish encrypted connection with TLS certificates using gRPC. With insecure connection everything works fine, also I tried to use client written on Go, it works too. But with Python I am getting following error:</p>
<pre><code>grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:... | 1 | 3,500 |
Bootstrap - how can I have a sticky header? | <p>I would like to know how I can have a sticky header? I have been figuring out that for the whole day and still don't know how to do. Can anyone help me for that? What I want is that when I scroll down, the header will keep sticking on the top. </p>
<p>These are my codes. Thanks a lot!</p>
<p><div class="snippet" d... | 1 | 1,196 |
PreparedStatement's setInt() not working on PostgreSQL | <p>I'm using PostgreSQL 9.1 with Tomcat 7 on Eclipse. The connection is made through a connection pool. When I use the <code>setInt()</code> method for the <code>PreparedStatement</code>, nothing is returned. When printing the prepared statement, the '?' is replaced by some weird String I suppose is a reference to the ... | 1 | 1,263 |
Curiosity: Why does Expression<...> when compiled run faster than a minimal DynamicMethod? | <p>I'm currently doing some last-measure optimizations, mostly for fun and learning, and discovered something that left me with a couple of questions.</p>
<p>First, the questions:</p>
<ol>
<li>When I construct a method in-memory through the use of <a href="http://msdn.microsoft.com/en-us/library/system.reflection.emi... | 1 | 1,536 |
androidx.appcompat.view.menu.ActionMenuItemView cannot be cast to android.view.MenuItem | <p>I'm having an issue trying to hide certain items from the menu of the toolbar when a particular fragment is active. (Edit: the toolbar is not set as an ActionBar in this case)</p>
<p>I've been looking around for a solution and found out that you can set the visibility of an MenuItem, I tried to implement this but I... | 1 | 2,239 |
System Error 955 when using resolver::async_resolve | <p>At times I get the <code>System Error 995</code> when using the <code>async_resolve</code> method from an <code>tcp::resolver</code>.
The code below shows the relevant code lines.</p>
<pre><code>#include <boost/bind.hpp>
#include <boost/asio.hpp>
#include <iostream>
class connection
{
public:
... | 1 | 1,445 |
How can you parse a document stored in the MARC21 format with Python | <p>Yesterday <a href="http://openmetadata.lib.harvard.edu/" rel="noreferrer">harvard released</a> open access to all its library metadata (some 12 million records)</p>
<p>I was looking to parse the data and play with it as the goal of the release was to "support innovation"</p>
<p>Download the 12GB tarball, unpacked... | 1 | 1,994 |
Add marker to google map after map is initialised | <p>I’ve got a c# wpf project using a webbrowser control to host a google map. Note this is NOT an asp project. </p>
<p>If I add markers during the initialize routine they work. If I call the same routine later from c# using InvokeScript then it doesn’t work. </p>
<p>I’m hopeful of having a page where my c# code can a... | 1 | 1,380 |
Maven can't deploy from parent pom | <p>i have just started building applications with Maven. One of my approaches is to build a multimodule web application. Working with Eclipse makes it very easy to build that kind of an application. So far everything works fine. The point at which i fail is the deployment. I am using Wildfly as my application Server an... | 1 | 1,249 |
How to use admob in android webview? | <p>Hi all I am using admob in android webview. When i integrated admob and run, it displays following error. My code is as follows:</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
androi... | 1 | 2,992 |
Accessing a nested node in an XML load by SimpleXMLElement | <p>I have an XML file with this structure.</p>
<pre><code> <?xml version="1.0" encoding="ISO-8859-1"?>
<COMMUNITIES>
<COMMUNITY ID="c001">
<NAME>Town Services</NAME>
<TOP>50</TOP>
<LEFT>50</LEFT>
<WIDTH>200</WIDTH> ... | 1 | 1,500 |
Python subprocess.Popen hangs | <p>I looked in the questions previously asked and didn't find a similar one. I missed one, please let me know and I apologize for asking the same question again.</p>
<p>I'm debugging an issue in which I have a Popen hang when executing the following code (python 2.6):</p>
<pre><code>#!/usr/bin/env python
import subpr... | 1 | 3,146 |
Catchable fatal error: Object of class stdClass could not be converted to string in a php file | <p>I get this error sometimes,</p>
<p>Catchable fatal error: Object of class stdClass could not be converted to string in /home/myusername/public_html/wp-content/plugins/wp-online-store/autocurupdate/currencyexchange_class.php on line 145</p>
<p>This is the source of the currencyexchange_class.php</p>
<pre><code> ... | 1 | 7,827 |
How to get the current directory name and display it on the html page using node.js | <p>Actually I have a path name in index.js file.whenever I select the directory, I'm able to see the current directory name in the node.js console screen.</p>
<p>Now, I want to display that directory name into the text box of <code>template.html</code> page. Can anyone please help me out regarding this issue?</p>
<p>... | 1 | 4,475 |
ReactJS - Search/Iterate through array of objects | <p>I have an object like that:</p>
<pre><code>{
"data": [
{
"id": "1234",
"is_deleted": false,
"name": "Sarah"
},
{
"id": "3520",
"is_deleted": true,
"name": "Bobby"
},
{
"id": "3520",
"is_deleted": true,
"name": "Sartah"
}
]
}
</code></... | 1 | 1,059 |
Running UDP client and server in different machines | <p>I have a UDP client and a server running fine when run on the same computer. (Here for the client i have given <strong>127.0.0.1</strong> as the destination IP on the UDP client).</p>
<p>However when run on different machines, and replacing <strong>127.0.0.1</strong> with my the ip of the machine where server.c is ... | 1 | 1,768 |
Share Data between two pages/tabs angular2 | <p>i have two different pages sender and receiver and are on open in two different <strong>tabs</strong></p>
<p>i.e <strong>one tab</strong> of browser has <strong><a href="http://localhost:4200/sender" rel="nofollow noreferrer">http://localhost:4200/sender</a></strong></p>
<p>i.e <strong>2nd tab</strong> of borwser ... | 1 | 1,100 |
Issues with the usage of @PreUpdate | <p>I have the following class:</p>
<pre><code> @MappedSuperclass
public abstract class MappedModel
{
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id", nullable = false, unique = true)
private Long mId;
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "rec_created_dtm"... | 1 | 1,101 |
Websphere Application Server 6.1 for developers console install on RHEL 5 failing | <p>Does anyone know how to get the Websphere Application Server for developers (v6.1) installed via the console? </p>
<p>I'm setting up a build server and the server I have is a RHEL 5.6 server with no Graphical console access (only ssh to a tty console).</p>
<p>One of the projects I need to build on the server relie... | 1 | 1,256 |
Django and Bootstrap: Knowing Which Tab is Active | <p>General web development newbie here. My background is Java but I've been playing around a lot with Django + Bootstrap websites lately.</p>
<p>I'm currently working on a fun little project but ran into an issue regarding how I want the tabs in Bootstrap to work.</p>
<p>The context here is that a user can log a work... | 1 | 9,955 |
How to convert a pandas MultiIndex DataFrame into a 3D array | <p>Suppose I have a MultiIndex DataFrame:</p>
<pre><code> c o l u
major timestamp
ONE 2019-01-22 18:12:00 0.00008 0.00008 0.00008 0.00008
2019-01-22 18:13:00 0.00008 0.00008 0.00008 0.00008
2019-01-22 18:14:... | 1 | 1,047 |
facebook login callback fires multiple times | <p>My app is having <strong>Share</strong> button to share story on users timeline. What I'm doing is, user taps on Share button, if user session is not present app forces to Login user with Facebook.
When user do that, story directly need to be published. Here's my code.</p>
<p><strong>onCreate Method</strong></p>
... | 1 | 2,567 |
no service of type factory available in ProjectScopeServices gradle sync issue | <p>hi here is my gradle unable to build the project</p>
<pre><code> apply plugin: 'com.android.application'
android {
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-... | 1 | 2,840 |
Linker script error: section overlap | <p>I'm writing C code for the CASIO 9860GII calculator using the <strong>linker script</strong> (see at the end). Unfortunately I get following error:</p>
<pre><code>$ sh3eb-elf-gcc -o build/crypt.elf build/crt0.o build/crypt.o build/supercoollibrary.o -m3 -mb -ffreestanding -nostdlib -I include -O3 -std=c99 -lc -lgcc... | 1 | 2,143 |
Creating menu list in PHP: from nested list to multidimensional array and return | <p>I have to create a menu from a list with possible sub-lists.
From a simple I want to create a compatible bootstrap menu
So from a code like this:</p>
<pre><code><ul>
<li>Link 1</li>
<li>Link 2
<ul>
<li>Sublink A</li>
<li>Sublink B</li>
&... | 1 | 2,183 |
Unbound record field id error | <p>I am trying out Reason-React. I am facing a problem when I try to add a key to one of the components.</p>
<p>I have a TodoApp that takes a list of TodoItem as state. The app works fine when I don't have a key for the TodoItem. When I add it, however I am getting a compilation error. I am adding the files here for re... | 1 | 1,121 |
Programming error: can't adapt type 'account.account' - Odoo v8 | <p>I have this method:</p>
<pre><code>@api.multi
@api.depends('order_picking', 'order_picking.isbn', 'contract_worksheet', 'state')
def accounting_scenarios(self):
for record in self:
if not len(record.transporter):
raise Warning('Please Enter Transporter !')
elif not len(record.transpo... | 1 | 3,608 |
how to use if rule in jquery | <p>Hi I have a simple modal popup which has 3 name fields and 3 e mail fields adjacent to each other. I am new to jQuery so can any one please help me how to write a logic for the following case?</p>
<p>The first name field and Email field are mandatory so I kept the class as required fields but the other two name and... | 1 | 1,859 |
WPF Entity Framework Combobox (Data Binding to Foreign Key of Related Table) Display as TextBlock (SelectedValuePath Equivalent) | <p>I'm creating a WPF data access layer that probably doesn't require full MVVM at this stage (but I might implement it).</p>
<p>I've successfully created a ComboBox that data binds to a foreign key value of a related table using a CollectionViewSource as the data source (See my XAML below, the combo box works fine bu... | 1 | 1,963 |
Unable to resolve dependency error while integrating any liabrary in android studio 3.1.3 | <p>Recently i have updated android studio to 3.1.3 everytime i am getting the "Unable to resolve Ddependency" error. Stuck with this problem already i have wasted lotts of days solving this error but nothing works. Please help me to resolve this error.I have uploaded my gradle file here and also the error log.</p>
<p>... | 1 | 1,383 |
Jersey Guice JSP how to? | <p>I'm using tomcat 6, jersey 1.8 with jersey guice and guice 3.
I'm having problem using JSP with my setup.
I have a "Status" servlet served as a simple servlet configured by web.xml, a jersey servlet configured by GuiceFilter which returns a jsp view response (jsp is /diff/index.jsp) to render the result as in: </p... | 1 | 1,632 |
Python C extension link with a custom shared library | <p>I am writing a Python C extension on a very old Red Hat system. The system has zlib 1.2.3, which does not correctly support large files. Unfortunately, I can't just upgrade the system zlib to a newer version, since some of the packages poke into internal zlib structures and that breaks on newer zlib versions.</p>
... | 1 | 3,752 |
Caused by: com.google.gson.stream.MalformedJsonException: Expected EOF at line 1 column 21 | <p>I am trying to run the sample java program to retrieve the top 5 defects from rally. I am getting the following error:</p>
<pre>
Querying for top 5 highest priority unfixed defects...
Exception in thread "main" com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected EOF at line ... | 1 | 1,495 |
iOS requestAccessToAccountsWithType is Not Showing Permission Prompt / NSAlert | <p>It is my understanding that when I invoke <code>[ACAccountStore requestAccessToAccountsWithType:options:completion]</code>, the user is supposed to see an UIAlert that asks them if they grant permission to my app. </p>
<p>When I run this code, there is never a prompt and the <code>granted</code> variable is always ... | 1 | 1,151 |
Android: Issue with InflateException (Error inflating class android.support.v7.widget.Toolbar) | <p>I am having an issue receiving an RuntimeException and InflateException stating Binary XML file: Error inflating class android.support.v7.widget.Toolbar. I created a project which attempts to use a navigation drawer. I created an android-support-v7-appcompat library (following the directions through google docs) usi... | 1 | 4,610 |
use checkbox within iterator in strut 2.0 | <p>In my sample application this worked perfect </p>
<pre><code><s:iterator value="menuGroup" var="menu">
<s:textfield value="%{#menu.name}"></s:textfield>
</s:iterator>
</code></pre>
<p>but when i use checkbox instead i.e `</p>
<pre><code><s:iterator value="men... | 1 | 3,045 |
Reportlab generate multiple tables | <p>I am using Reportlab to generate tables in a pdf format. However, I have gotten to a point where I need to include multiple tables in the same file, where some of these tables cross multiple pages. I think the tables that cross multiple pages are generating errors for me.</p>
<p>I used the format from this answer, ... | 1 | 1,151 |
Decryption AES/GCM/PKCS5Padding iOS Swift | <p>I am trying to decrypt a Base64Encoded String message with AES decryption.</p>
<p><strong>Encrypted Message <em>(Base64Encoded String):</em></strong>
tNC6umcfBS/gelbo2VJF3i4LAhUKMp4oDHWN5KyYUTWeJIQKKYx6oAcQnGncIrPJNC1tUYMKV4kJQj3q9voIOrxc1n7FmRFvDXeRgWGNcGYO66dH3VjoEgF0oxZOpfzwSZKSv3Jm7Q==</p>
<p><strong>Password <e... | 1 | 3,909 |
Parent Child Relation In Elastic Search 7.5 | <p>I am new to "<strong>Elastic Search</strong>" and currently trying to understand how does ES maintain "<strong>Parent-Child</strong>" relationship. I started with the following article:</p>
<p><a href="https://www.elastic.co/blog/managing-relations-inside-elasticsearch" rel="noreferrer">https://www.elastic.co/blog/... | 1 | 1,838 |
(R) Add significance stars to correlation matrix heat map | <p>I am looking at correlations between many variables in my data stratified by gender. I was able to create a heatmap using code I found on StackOverflow, but I'm not sure how to add stars for significance to the cells. I would also like to cut the matrix in half to avoid redundancy.</p>
<p><a href="https://i.stack.i... | 1 | 2,266 |
WebView Animation issue on Android | <p>I am developing an Android application using html, css and javascript.
my application depends on Phonegap framework.
The application consists of a quite number of local pages. In the
application I am trying to handle swipe gesture event on the Android
mobile and move the pages depending on the swipe direction. I.e i... | 1 | 1,295 |
Unsupported or unrecognized SSL message | <p>I am trying to send emails from outlook email in Java+ springboot.</p>
<p>below are the configuration:</p>
<pre><code>@Service
public class EmailService {
String from_address = "no-reply@jpmorganchase.com",
password = "somepassword!sd#",
host = "smtp.office... | 1 | 3,309 |
Binding vs. x:Bind, using StaticResource as a default and their differences in DataContext | <p>I've spent the better of half a day trying to make the <code>ItemTemplate</code> of a <code>ListView</code> with a <code>UserControl</code> configurable through means of a <code>DependencyProperty</code> on said <code>UserControl</code>. I've come across some weird inconsistencies regarding the two different <code>B... | 1 | 1,665 |
getStaticProps returns empty object at prod and dev (next v9.5.1) | <p>I'm running into a weird issue. using the latest nextjs @9.5.1
Here's the code in question:</p>
<pre><code>import Header from './header';
import Head from './head';
import Footer from './footer';
import { useEffect } from 'react';
import Utils from '../util/utils';
import { hostName } from '../config/variables';
fu... | 1 | 4,497 |
why I get error message Value <?xml of type java.lang.String cannot be converted to JSONObject? | <p>I've create a web service with JSON and I want to parse it then put them on listview. but when I run the application, it force close and shows error message. please review my code, is there something wrong?</p>
<p>Here is the error message when i try to run my aplication:</p>
<pre><code>org.json.JSONException: Val... | 1 | 2,067 |
"Trying to get property 'name' of non-object | <p>I had a Laravel script installed
Now I want to go to the services list page, but with the "Trying to get the property 'name' of non-object" encountered.
please help me</p>
<p>My error:
Trying to get property 'name' of non-object (View: /mylocalhost/core/resources/views/admin/service.blade.php)</p>
<p>in line 36:
c... | 1 | 13,023 |
ionic 3 with storage | <p>I am using ionic 3 with storage.</p>
<p>First, i import storage in the app.module.ts</p>
<pre><code>import { IonicStorageModule } from '@ionic/storage';
imports: [
IonicStorageModule.forRoot()
]
</code></pre>
<p>I developed Ecommerce app.If I add to any product to cart using storage.</p>
<p>Here is my code for ... | 1 | 1,103 |
Add new rows to calculate the sum and average from exiting pandas dataframe | <p>My goal is to write a program that take in user input, calculates the prices of the orders (apple cider and apple juice) and print a table as follew: </p>
<p>Names Cider Juice Subtotal (Cider) Subtotal (Juice) Total</p>
<p>Richard 13 9 $ 71.50 $ 40.50 $ 112.00</p>
<p>George 7 21 $ 38.50 $ 94.50 $ 133.00</p>
<p>P... | 1 | 1,450 |
React JS color picker inside form | <p>I've been struggling with this all day. Really new to react so apologies in advanced. </p>
<p>I'm trying to use <a href="https://github.com/mozilla-services/react-jsonschema-form" rel="nofollow noreferrer">react-jsonschema-form</a> to create form from json with <a href="https://github.com/casesandberg/react-color" ... | 1 | 1,150 |
d3.js highlighting stacked bar and getting selected values | <p><strong>First Question</strong>:</p>
<p>For single bar chart, when we "mouseover" a bar, we will get the value of the bar we selected as <code>i</code>. For example, the following code detects which element of the x-axis we chose and assign that to a variable called <code>selectedYear</code>: </p>
<pre><code>.on("... | 1 | 2,656 |
php_pdo_informix on php 5.3 | <p>I have a php app that uses PDO extensively and have a new client that has informix. Previously we used php 5.2 without any problems but switching to PHP 5.3 is unavoidable so:</p>
<p>Anybody has found out a way of using php_pdo_informix on php5.3 or is it completely obsolete and I must find another alternative?</p>... | 1 | 1,378 |
How to dynamically add rows to an html table using MVC razor syntax | <p>I'm trying to dynamically add new rows to a table using the idea marked as answer here <a href="https://stackoverflow.com/questions/171027/add-table-row-in-jquery?rq=1">Add table row in jQuery</a> </p>
<p>I have so far implemented it for one of my table requirements like below</p>
<pre><code> function onAddItem... | 1 | 1,339 |
Not able to get dependency check report in Maven | <p>I am trying to get dependency check report for one of my Maven project but every time I am running:</p>
<pre><code>mvn verify
</code></pre>
<p>dependency in dependency report shows no vulnerable JARs. </p>
<p>I have added below plugin in my POM to generate dependency check report:</p>
<pre><code> <dependencyM... | 1 | 1,271 |
How to reindex a a pandas dataframe by date range without deleting values | <p><strong>Background:</strong></p>
<p>I have the following data frame downloaded with pyodbc with dates between 1999 and 2015: </p>
<pre><code>CEISales.head(10)
Out[194]:
Order_DateC RegionC SalesC
0 2014-01-30 Domestic 3530.00
1 2011-10-11 Domestic 136.00
2 1999-01-13 Domestic 30.00
3 1... | 1 | 1,062 |
Optimizing multithreaded queue processing code in Java | <p>I have a code that creates 10 objects of a class, that implement runnable.
Each object is kept in hashmap for later usage.
Each object is running on a separate thread. Each object has a public method where items can be added into the queue.
The object processes the queue with infinite loop.</p>
<p>I want to know if... | 1 | 1,204 |
Display SMS message in TextView | <p>I'm writing a small app that when the phone receives SMS messages. It will show the sender phone number and the SMS body in a <code>TextView</code>. I have an SMS <code>BoardcastReceiver</code> and an <code>Activity</code>. </p>
<p>Here is my SMS Listener. </p>
<pre class="lang-java prettyprint-override"><code>imp... | 1 | 1,892 |
Why html2canvas produced blurry pdf file? | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>$('#generate').click(function() {
var pdf = new jsPDF('p', 'pt', 'a4');
pdf.addHTML($('.pg-section').get(0), function() {
pd... | 1 | 1,467 |
Class not found when unmarshalling | <p>Im trying to pass objects between fragments, and i use Parcelable interface.</p>
<p>Here is my class but something is messed up with the ArrayList property, as i got:</p>
<pre><code>java.lang.ClassNotFoundException: hu.company.myapp.modul.RaceDayUnit
</code></pre>
<p>and my class has an ArrayList of RaceDayUnits.... | 1 | 4,318 |
How can I add keyword arguments to a wrapped function in Python 2.7? | <p>I first want to stress that I have searched both the web generally and the Python documentation + StackOverflow specifically very extensively and did not manage to find an answer to this question. I also want to thank anyone taking the time to read this.</p>
<p>As the title suggests, I am writing a decorator in Pyt... | 1 | 1,024 |
GridSearch implementation for Keras Regression | <p>Trying to understand and implement GridSearch method for the Keras Regression. Here is my simple producible regression application. </p>
<pre><code>import pandas as pd
import numpy as np
import sklearn
from sklearn.model_selection import train_test_split
from sklearn import metrics
from keras.models import Sequenti... | 1 | 2,139 |
Highcharts border around plot | <p>So I am trying to make a highchart that looks like this:</p>
<p><img src="https://i.stack.imgur.com/F64ik.png" alt="Desired chart"></p>
<p>But I cant seem to get the border to only wrap the bar. Here's the closest I've been able to get:</p>
<p><img src="https://i.stack.imgur.com/8xKQg.png" alt="Actual chart"></p>... | 1 | 1,172 |
How to resolve - Combine Error | Error Domain=NSURLErrorDomain Code=-999 "cancelled" | <p>I am attempting to parse JSON using the new Combine framework. However, every attempt I make comes back with a cancelled error. When I use the exact same url without combine it works fine. </p>
<p><strong>The bottom function works fine, the top one gives me an error no matter what I do.</strong> </p>
<pre class="l... | 1 | 1,288 |
XML SAX parser using xerces in c++ | <pre><code> #include <xercesc/sax2/SAX2XMLReader.hpp>
#include <xercesc/sax2/XMLReaderFactory.hpp>
#include <xercesc/sax2/DefaultHandler.hpp>
#include <xercesc/util/XMLString.hpp>
#include <conio.h>
#include <xercesc/parsers/SAXParser.hpp>
#include <xercesc/sax/HandlerBase.hpp&... | 1 | 1,795 |
Reading phantom NFC tags via javax.smartcardio | <p>I have an an old NFC reader for the tikitag web service (which was later renamed <a href="http://en.wikipedia.org/wiki/Touchatag" rel="nofollow">touchatag</a>, and finally abandoned around 2012). Since the website is no longer available, I could no longer find the original tikitag/touchatag drivers. After some searc... | 1 | 1,253 |
How can i check radio button by default? | <p>On page load i want to show below radio button selected by default i used html attribute but its not working. So on page load I want to show all process radio button checked by default. Is there any other way to achieve this task?</p>
<p>radio.html</p>
<pre><code><div class="panel panel-default">
<div... | 1 | 6,291 |
Swiper ES module web.config for IE11 support | <p>I am using swiper in a react app. In Internet Explorer 11 it pop up syntax error
(about arrow function since it is not supported by IE11)
I added the code suggested by the github repository but it doesn't work still getting syntax error on dom modular. Which use function arrow instead of been transformed into ES5. ... | 1 | 1,546 |
Maven assembly plugin not creating tar files with directory entries? | <p>I'm working on my first Maven project which will ultimately package a Java app in a Debian package (using the jdeb plugin). I'm trying to use the assembly plugin to build a tar file, but it looks like the generated file does not always include directory entries, which will cause dpkg install to fail. </p>
<p>Has a... | 1 | 1,866 |
Domain model to ViewModel and back again using repository pattern and Entity Framework in MVC3 | <p>I have read here <a href="http://lostechies.com/jimmybogard/2009/09/18/the-case-for-two-way-mapping-in-automapper/" rel="nofollow noreferrer">http://lostechies.com/jimmybogard/2009/09/18/the-case-for-two-way-mapping-in-automapper/</a> about how you probably shouldn't be trying to un-flatten a flattened object, but c... | 1 | 1,046 |
How to debug script being a part of SSIS project? | <p>I have two databases. Source database:
<a href="http://sdrv.ms/VkX8tj" rel="nofollow">http://sdrv.ms/VkX8tj</a></p>
<p>and star database:
<a href="http://sdrv.ms/12S7Zkc" rel="nofollow">http://sdrv.ms/12S7Zkc</a></p>
<p>I'm transfering data from the 1st to the 2nd, using SSIS project:
sdrv.ms/YDUvU4</p>
<p>(can't... | 1 | 1,161 |
Passing pointer to SOCKADDR_IN and SOCKET in a function | <p>I have a function <em>createServerSocket()</em>. This function can be accessed by multiple threads for creating their sockets. </p>
<p>I want each thread to pass three arguments, a <em>socketIdentifier</em>, *sockaddr_in* and specific <em>port number</em> to <em>createrServerSocket()</em> function, so that each thr... | 1 | 1,229 |
nginx docker container as reverse proxy for services running in docker containers | <p>I have nginx running in a docker container which I want to use as reverse proxy for services running in docker containers. ATM I have two services, django and owncloud.</p>
<p>Both services works when accessing them directory e.g. <code>localhost:4000</code> and <code>localhost:5000</code>.</p>
<p>When I'm accessi... | 1 | 4,544 |
Docker-compose port range forward | <p>The documentation is really lacking here.</p>
<pre><code>ports:
- "20000-20100"
</code></pre>
<p>works fine for one port (just "20000" does not work tho. It seemingly binds to a random port above 40k somewhere), but I can't find a reliable way to forward a range of ports instead of just one.</p>
<pre><code>- "2... | 1 | 1,045 |
Having a problem with jQuery UI drag and drop in IE | <p>I was hoping someone can point out what my problem could be. I am trying to get a drag and drop effect in place for a small project which trying to mimic a shopping cart. So this is what I am working with:</p>
<pre><code><script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquer... | 1 | 1,222 |
Logging In To Joomla 1.5 Using External Form (not within joomla folder, but on same server) | <p>I currently have a Joomla 1.5 installation, as well as another website. They both reside on the same web server. They are in different folders within the wwwroot directory, however. I would like to place a login form within the non-joomla website, which will log the user in to Joomla. I have already tried copyin... | 1 | 1,031 |
Pymongo pymongo.errors.ServerSelectionTimeoutError when using example code | <p>I am trying to run very straightforward code to figure out how to use pymongo with the MongoDB Atlas Cloud.</p>
<p>Here is the example code</p>
<pre><code>import pymongo
client = pymongo.MongoClient("mongodb+srv://{myusername}:{mypassword}@cluster0-uywu8.mongodb.net/test?retryWrites=true&w=majority")
db = cli... | 1 | 1,176 |
Getting "SWTException: Widget is disposed" when trying to remove drag and drop listeners | <p>I have created a custom view in Eclipse which implements a part listener.</p>
<pre><code>public class CodeBuilderView extends ViewPart implements IPartListener
</code></pre>
<p>I am adding drag and drop support for the view. In order to remove the drag and drop listeners, I have overridden the dispose() method as ... | 1 | 5,196 |
swift, send file to server | <p>I am learning swift and I send a request to the server with the code below. It works for simple request and I get response from the server. My problem is I can not send a file to server.</p>
<p>code :</p>
<pre><code>let parameters = parameter
let request = NSMutableURLRequest(URL: NSURL(string: requestUrl)!)
... | 1 | 2,054 |
Bootstrap Messing Telerik RadGrid | <p>My Telerik RadGrid is working fine on normal page but when I include Bootstrap's CSS it starts to become ugly! What do I do?</p>
<p>Before Adding Bootstrap
<img src="https://i.stack.imgur.com/ZXxYY.png" alt="enter image description here"></p>
<p>After Adding Bootstrap
<img src="https://i.stack.imgur.com/yd9bK.png"... | 1 | 10,420 |
javax.servlet.ServletException: java.lang.LinkageError | <p>These are the dependencies that I use in pom.xml (Maven).
I don't under stand why I am getting</p>
<pre><code> javax.servlet.ServletException: java.lang.LinkageError
</code></pre>
<p>when I try to run my project.</p>
<pre><code><dependencies>
<dependency>
<groupId>org.apache.struts&... | 1 | 2,482 |
https request via https proxy but return 'unknown protocol:openssl ' error | <p>Everything is fine if I request 'HTTP' address via 'HTTP' proxy</p>
<pre><code> const rq = require('request-promise');
try {
let res = rq({
url: 'http://xxxx',
timeout: TIME_OUT,
gzip: true,
proxy: 'http://112.25.60.32:8080'
});
res.then(res => {
conso... | 1 | 1,373 |
Retrieve the selected item from the menuitems of a context menu. I am using WPF, MVVM | <p>I have a context Menu on my ListView with FilterBy as one of the Menu items in it. This Menu Item is bound to an observable collection of Menuitems(_childFilterMenuitems coming from an object ContextMenuclass). I want to retrieve the selected item from the submenu of the FilterBy MenuItem and bind to a property call... | 1 | 2,111 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.