title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Python imaplib fetch body emails gmail | <p>I <a href="https://stackoverflow.com/questions/348630/how-can-i-download-all-emails-with-attachments-from-gmail?lq=1">read this already</a> and wrote this script to fetch body for emails in some mail box which title begins with '$' and is sent by some sender.</p>
<pre><code>import email, getpass, imaplib, os
detac... | 0 | 1,188 |
What is the bigger datatype than double in Java? | <p>I am developing an android app, A Calculator.
I have used double to save the operands.
As a calculator calculates bigger number, it's not showing the answer properly.
For Example, If I enters 1234567890 * 1, it shows me the result 1234567936.
I think it is due to the range issues of double.
How to solve it? Help!<... | 0 | 6,407 |
Linux: Screen desktop video capture over network, and VNC framerate | <p>Sorry for the wall of text - TL;DR:</p>
<ul>
<li>What is the framerate of VNC connection (in frames/sec) - or rather, who determines it: client or server? </li>
<li>Any other suggestions for desktop screen capture - but "correctly timecoded"/ with unjittered framerate (with a stable period); and with possibility to... | 0 | 6,719 |
How to setup pre-authentication header-based authentication in Spring Boot? | <p>My app gets an AUTH_USER request header with username from Oracle Access Manager SSO. Spring Security "Additional Topics" 2.2.1 has an example of "PreAuth" that seems to be what I need, but not a full working example.</p>
<p><strong>Snippets below are from docs/examples, not working annotation-based configuration.... | 0 | 1,172 |
How to Minimize/Maximize jQuery Dialog? | <p>I am using <a href="http://jqueryui.com/docs/dialog/">jQuery UI Dialog</a> to show a video. The video is working fine.</p>
<p>What I want to do is minimize the Dialog-element just like in an OS or something like that. A small icon like (" - ") that would minimize my dialog and when I press (*) it would close the d... | 0 | 1,106 |
How to use Mockito.verify() on static methods? | <p>I am working on Junit & Mockito. In my project I have a SocialDataAccess Controller whose code goes like this:</p>
<pre><code>public class SocialDataAccessController implements Controller{
private SocialAuthServiceProvider socialAuthServiceProvider;
@Override
public ModelAndView handleRequest(HttpServletR... | 0 | 1,578 |
How to decode a Base64 var to a binary file with Ansible module | <p>I am reading a base64 file from HashiCorp’s vault with the help of the <a href="https://docs.ansible.com/ansible/latest/plugins/lookup/hashi_vault.html?highlight=hashi_vault" rel="noreferrer">hashi_vault</a> module. Sample of code:</p>
<pre><code>- name: Vault get b64.pfx file
set_fact:
b64_pfx: "{{ lookup(... | 0 | 2,929 |
Communication between AngularJS and a Jersey Webservice which are on a different domain. Can't access correct session | <p>Lately I've been playing around with AngularJS and Java EE 6. I've build an webservice with Jersey and deployed the project on Glassfish. Because I needed some kind of authentication and an OAuth implementation or an JDBCRealm seemed overkill I decided to just create a session if the user successfully logged in. </p... | 0 | 1,318 |
Android: how to wait AsyncTask to finish in MainThread? | <p>I know that the first you gonna this is... why the heck on the world you then use AsyncTask. </p>
<p>So here is my problem i am working on some Android app (API 7 for android 2.1 or higher) , and i am testing on emulator and everything was fine, so then i tested on HTC Sensation and it says NetworkOnMainThreadExept... | 0 | 1,741 |
Kivy: Invalid instance in App.root | <p>I am new to Python as well as Kivy, this is my first small project, and don't know what I did wrong, following is the log from pydev(eclipse):</p>
<pre><code>[INFO ] Kivy v1.8.0
[INFO ] [Logger ] Record log in C:\Users\Sudheer\.kivy\logs\kivy_14-06-21_10.txt
[INFO ] [Fact... | 0 | 1,609 |
Wordpress WP_Query where clause with OR? | <p>hello friends this is my args for WP_Query.</p>
<pre><code>$args = array('post_type' => 'job_listing');
$args['meta_query']=array(
'relation' => 'OR',
array(
'key' => 'app_trailer-type',
'value' => $job_tailor,
'compare' => 'LIKE'
),
array(
'key' => '... | 0 | 1,540 |
Printing double without losing precision | <p>How do you print a double to a stream so that when it is read in you don't lose precision?</p>
<p>I tried:</p>
<pre><code>std::stringstream ss;
double v = 0.1 * 0.1;
ss << std::setprecision(std::numeric_limits<T>::digits10) << v << " ";
double u;
ss >> u;
std::cout << "precisi... | 0 | 1,202 |
Best way to load some JSON files into a Spring Boot application | <p>I'm about to create a Rest webservice application, and I need to load all JSON files that exist in a folder passed as parameter (in application.yml a priori), on application startup, to use them later in the methods of webservices as a list of beans (every JSON file corresponds to a bean). </p>
<p>A sample to furth... | 0 | 1,394 |
" java.lang.IllegalArgumentException: No configs match configSpec " While opening Camera Intent | <p>This is my simple Camera Intent Demo in which i have only one Activity .....</p>
<pre><code>package x.y;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.widget.ImageView;
public class PhotoShoot extends Activity {
final static... | 0 | 1,333 |
Calculate a point along the line A-B at a given distance from A | <p>I'm going quite mad trying to calculate the point along the given line A-B, at a given distance from A, so that I can "draw" the line between two given points. It sounded simple enough at the outset, but I can't seem to get it right. Worse still, I don't understand where I've gone wrong. Geometry (and math... | 0 | 7,758 |
Browser caching issues in flask | <p>I have built a website using flask (<a href="http://www.csppdb.com" rel="noreferrer">www.csppdb.com</a>). Sometimes when I log in as one user, log out, then login as another user I still see pages from the first user I logged in as. This problem is immediately fixed when the page is refreshed. I think this is called... | 0 | 1,375 |
Transactionscope throwing exception this platform does not support distributed transactions while opening connection object | <p>TransactionScope is throwing a exception in .net core 2.2</p>
<p>In this example I created a <code>scope of TransactioScop</code>.
Opening SQL transaction for one database which is working fine.<br />
After the first transaction I´m calling <code>commit</code> which will commit the SQL transaction.
I try to open <co... | 0 | 1,126 |
"Multiple definition of" C++ compiler error | <p>I can't seem to get rid of these seemingly random compiles errors in one of my classes.
I get about 4 errors such as:</p>
<pre><code>multiple definition of `draw_line(float, float, float, float)'
</code></pre>
<p>and</p>
<pre><code>multiple definition of `near_far_clip(float, float, float*, float*, float*, float*... | 0 | 1,032 |
Multiple widgets used the same GlobalKey | <p>I'm using Flutter. I have a simple app with 3 tabs. There is a RefreshIndicator in each tab with a ListView. The rows are built in another method.
This is the code: </p>
<pre><code> @override
Widget build(BuildContext context) {
final GlobalKey<RefreshIndicatorState> _RIKey1 = new GlobalKey<RefreshIn... | 0 | 2,239 |
JSPDF and html2canvas with Angular | <p>I am trying to generate a PDF with html2canvas but when calling the function I throw an error, my TS is the following:</p>
<pre><code> @ViewChild('content') content:ElementRef;
generarPDF() {
html2canvas(document.getElementById('content'), {
// Opciones
allowTaint: true,
useCORS: false,
... | 0 | 1,041 |
What Is Your Software Development Directory Structure? | <p>I have been experimenting with directory structures and am currently using the one below:</p>
<pre>
|
|_projects__
| |
| |_blog.com_
| | |_mockups
| | |_user stories
| | |_....
| |
| |_noteapp__
| ... | 0 | 1,172 |
have uncommitted work pending. Please commit or rollback before calling out | <p>i have a batch class </p>
<pre><code> public class BatchCreateGCalendars implements Database.Batchable<SObject>, Database.Stateful, Database.AllowsCallouts {
private String query;
private String pageToken ;
private String accessToken;
private String CalendarId;
public... | 0 | 2,641 |
How to fix problem with clicking event on bxSlider item in Chrome 73? | <p>A bxSlider's inner item click event doesn't fire after Chrome has updated to version 73. How can I fire .on('click') event for elements in new Chrome?</p>
<p>It fires in Chrome when slides are moving.
Everyting is fine in FireFox</p>
<pre><code><div class="slider-pager">
<div class="slider-pager__item"... | 0 | 1,540 |
Plugin org.jacoco:jacoco-maven-plugin: one of its dependencies could not be resolved: | <p>I am working on SAML One Login Toolkit and got the latest master branch from GitHub <a href="https://github.com/onelogin/java-saml/tree/v2.0.0-snapshot" rel="nofollow noreferrer">here</a> and using Eclipse Oxygen. It should manually resolve all maven dependencies but unfortunately it is not. I tried to delete .m2 re... | 0 | 2,584 |
ClassNotFoundException in Java Applet using <object> tag | <p>I'm trying to embed a Java Applet using the <OBJECT> tag, which is the XHTML Strict way of doing it.</p>
<p>After browsing lots of sites, I tried <a href="http://ww2.cs.fsu.edu/%7Esteele/XHTML/appletObject.html" rel="nofollow noreferrer">this example</a> which seems to work pretty well:</p>
<pre><code><!--[... | 0 | 2,122 |
add view dynamically in a fragment | <p>I need to show some information in an agenda style, so i'm using fragment to show the information in the different days. Every day have some column to showing the room.</p>
<p>I create the structure but i have some problem when i try to put inside the information</p>
<p><b>agenda_child_tv - textview where i put th... | 0 | 1,901 |
save the value of an input in a variable in angular 5 | <p>I am new at angular and I am trying to get the value of an input and save it in a variable to pass it to my service that needs a parameter:</p>
<h1>this is my html</h1>
<pre><code><form class="main-form">
<div class="form-group col-md-4">
<label for="cedula">Numero de cedula</label>
... | 0 | 1,527 |
Vimeo API: Play button and multiple videos | <p>I'm having some trouble. I just discovered that you can control vimeo with js, and now I'm trying to create a play button that will start playing a vimeo video.</p>
<p>The problem I'm having is that I have multiple videos on the same page. I took the example/playground file (from here <a href="http://player.vimeo.c... | 0 | 1,229 |
Cannot properly insert greek characters in mysql database | <p>Our mysql database shows <code>Î Î¿Î»Ï Î³Î»Ï…ÎºÏŒÏ</code> in place of greek characters while sending data from an emulator to a mysql database. Other characters are left ok.</p>
<p>screenshot from phpMyAdmin:</p>
<p><a href="https://i.stack.imgur.com/fe28C.png" rel="nofollow noreferrer"><img src="https://i.stack.i... | 0 | 1,921 |
How to apply a patch to a Java project? | <p>The patch is for nutch 0.9:
<a href="http://cvs.tty.org/~butch/blog/nutch_0.9_OR.patch" rel="noreferrer">http://cvs.tty.org/~butch/blog/nutch_0.9_OR.patch</a></p>
<p>How should I apply the patch correctly?</p>
<p>OS is windows XP</p>
<p>More specifically, I'm using eclipse to debug a nutch project.</p>
<p>Here i... | 0 | 1,424 |
Job for docker.service failed because the control process exited with error code | <p>So I installed docker engine on RHEL 7 </p>
<p>Now when I do a </p>
<pre><code>service docker start
</code></pre>
<p>I get the following error:</p>
<pre><code>Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
... | 0 | 1,955 |
Getting all child input elements within a div | <p>I am trying to get all the values of the input fields. The issue is all of the <code><input type=radio/></code> are dynamic and can increase or decrease at any time.</p>
<p>So I am starting with the main DI and going from there. The problem I have now is I am not getting the input radio buttons values.</p>
<... | 0 | 3,465 |
Handshake failure with Java when I try to do a POST | <p>I try to contact *** and send some data using POST.</p>
<p>I use jersey-bundle-1.18.jar which I have imported into my Eclipse project. This is my code:</p>
<pre><code> Client client = Client.create();
WebResource webResource = client.resource("https://somesite.com");
MultivaluedMap<String, String>... | 0 | 3,655 |
Error setting PlotArea.Width in Excel, VBA (Excel 2010) | <p>I am experiencing an error in a subroutine attempting to set the plotarea.width property of a chart.</p>
<p><img src="https://i.stack.imgur.com/nk47Y.jpg" alt="enter image description here"></p>
<p>The other dimensions also cause this error if I comment out the preceding line(s).
There is no ActiveChart, no select... | 0 | 1,252 |
Connecting to oracle in android | <p>So people are probably going to tell me this is a bad idea, but I'd like to at least give it a go. </p>
<p><strong>EDIT</strong> The intention of this app is that it can only work when the device is part of the same network the oracle db is on or is connected to the network via VPN. The information in the database ... | 0 | 1,078 |
Clockwise polar plot with 0 deg at the top | <p>How can I make a clockwise polar plot? Somebody ask a similar question <a href="https://stackoverflow.com/questions/2417794/how-to-make-the-angles-in-a-matplotlib-polar-plot-go-clockwise-with-0-at-the-top">here</a>: <a href="https://stackoverflow.com/questions/2417794/how-to-make-the-angles-in-a-matplotlib-polar-plo... | 0 | 1,127 |
Swagger integration into Dropwizard | <p>I am fairly new to drop wizard (dropwizard.io) & just completed their tutorial. I would like to integrate Swagger (swagger.io) into this sample app.
I found:</p>
<ul>
<li>github.com/federecio/dropwizard-swagger-sample-app</li>
<li>github.com/federecio/dropwizard-swagger</li>
</ul>
<p>The generated JSON seems t... | 0 | 1,298 |
'Object reference not set to an instance of an object' - what does this mean? | <p>I am making an MVC 3 app which contains data about "associates", however I also need to be able to delete these "associates" through the app. I am using the Delete ActionResult but every time I try to delete an entry I get the following server error:</p>
<pre><code>Object reference not set to an instance of an obje... | 0 | 3,495 |
App Store Connect Operation Error: Could not connect to Apple's web service | <p>I have been trying to upload my app archive to App Store connect for the past 3 days. In the beginning, there was a problem with the iTMSTransporter and I had to manually install it from iTunes Connect. Now it fails when I try to upload it. This is the error that comes up.</p>
<p><a href="https://i.stack.imgur.com/... | 0 | 1,040 |
Getting "class does not exist" in Laravel 5.x | <p>I'm getting the error: <code>Class App\Http\Controllers\TranslatorService does not exist</code> regardless of the namespace being set in the controller correctly and the file being in the correct location.</p>
<p>route.php:</p>
<pre><code>Route::group(['prefix' => 'api', 'middleware' => 'response-time'], fun... | 0 | 2,685 |
Using raw sql queries in Rails 3 application? | <p>I am working on migrating a legacy database into my Rails application (3.2.3). The original database comes with quite a few long sql queries for reports. For now, what I would like to do it use the sql queries in the Rails application and then one by one (when time allows) swap the sql queries to 'proper' Rails quer... | 0 | 2,034 |
Simple example of Spring Security with Thymeleaf | <p>hi I'm trying to follow a simple example about doing a simple login form page that i found in this page <code>http://docs.spring.io/autorepo/docs/spring-security/4.0.x/guides/form.html</code> </p>
<p>the problem is that i´m getting this error everytime that i try to login i get this error: <code>Expected CSRF token... | 0 | 3,238 |
How to create a Bootstrap thumbnails grid | <p>I have an unknown number of thumbs to display, here is an example of the HTML rendered:</p>
<pre><code><div class="row-fluid">
<ul class="thumbnails">
<li class="span3">
<a href="#" class="thumbnail">
<img data-src="holder.js/260x180" alt="260x1... | 0 | 1,210 |
Action Button in Angular UI Grid 3.x version | <p>I am trying to render a simple table using <a href="http://ui-grid.info/" rel="noreferrer">Angular UI Grid (unstable version)</a>.
Against each row I need a button when clicked should be handled in my parent controller.</p>
<p><a href="http://plnkr.co/edit/KuptJG?p=preview" rel="noreferrer">Plunker</a></p>
<p>Java... | 0 | 1,207 |
Unable to cast object of type Newtonsoft.Json.Linq.JObject even though I am trying to cast to an object with matching properties | <p>I am working with ASP.NET Core 2.0 in VS2017.</p>
<p>I am trying to deserialize some JSON that is returned in an <code>HttpResponseMessage</code> but I am getting an "Unable to cast object of type..." exception.</p>
<p>Here is the code that is failing;</p>
<pre><code>FilesUploadedListResponse fileUploadListRespon... | 0 | 1,032 |
Best data-binding practice in Combine + SwiftUI? | <p>In RxSwift it's pretty easy to bind a <code>Driver</code> or an <code>Observable</code> in a <code>View Model</code> to some observer in a <code>ViewController</code> (i.e. a <code>UILabel</code>).</p>
<p>I usually prefer to build a pipeline, with observables <strong>created from other observables</strong>, instead... | 0 | 1,957 |
Passing a 2d array from one method to another | <p>Programming language: Java</p>
<p>editor: Vim</p>
<p>I been trying to do an assignment that includs a 2d array. I've been struggling on it pretty bad since this is the second time I've used any kind of arrays. Anyway, i just got some questions that I hope someone here can clear up for me.</p>
<p>1) is this is how... | 0 | 1,341 |
ASP.NET Core 2.0 - ArgumentException: Options.ClientId must be provided | <p>I have a .NET Core 1.1 application that I wish upgrade to .NET Core 2.0. Upon updating the target framework and all dependencies, I found that my authentication setup would not compile. I have updated to account for removed properties and deprecated/moved method calls. Ellipses used to represent code omitted for bre... | 0 | 1,634 |
How to insert value in database using bean class in jsp? | <p>Hi iam tring to insert value in database using bean class in jsp form and i am able to this but i am getting little bit problem whenever i insert value in table null value also insert with them i tried not i am not able to get that where i m wrong please solve my problem</p>
<p>my bean.java</p>
<pre><code>pack... | 0 | 1,268 |
c# WPF Cant get Parent Window | <p>I have a wpf page hosted in a Window. But i get Null exception when i tries to get use this.
It works then i use this code in another method but not in alla methods why is it that way?
please advice.</p>
<pre><code> NewPage page = new NewPage ();
Window w = Window.GetWindow(this.Parent);
w.Content = page;
</code>... | 0 | 1,490 |
WPF Smoothly animated ProgressBar in template | <p>I am working on an MVVM application and I would like to have a ProgressBar that smoothly animates to it's new value when that property changes. I have seen several answers to this question using c# but I'd prefer to do it all inside the template. The problem I'm having is setting up and targeting the event and story... | 0 | 2,878 |
Type safety: The expression of type Map[] needs unchecked conversion to conform to Map<String,Object>[] | <p>I have the following two lines:</p>
<pre><code>Map<String,Object>[] IEXDivMap = null;
IEXDivMap = new Map[IEXJsonArray.length()];
</code></pre>
<p>and get the warning:</p>
<pre><code>The expression of type Map[] needs unchecked conversion to conform to Map<String,Object>[]
</code></pre>
<p>I... | 0 | 1,223 |
Property 'profileStore' is missing in type '{}' but required in type 'Readonly<AppProps>'.ts(2741) | <p>I am using mobx react a type script</p>
<p>Why does <code><MainNote/></code> show the error</p>
<p>Do i just need to set default props?</p>
<p><a href="https://i.stack.imgur.com/5L5bq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5L5bq.png" alt="enter image description here"></a></p>
<pre><cod... | 0 | 1,684 |
How to programmatically add multiple LinearLayouts into one view and then add to ViewFlipper? | <p>I hope question title gives you a good description of the problem.</p>
<p>I want to create this XML, but programatically (please don't suggest not doing it programmatically ^_^ )</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:paddi... | 0 | 1,808 |
Error while connecting to DB with hibernate | <p>I am trying to learn Hibernate. And this is my first program, however I cannot figure the problem out while compiling. I use Postgresql, which is already opened to the connection.</p>
<p>This is the model:</p>
<pre><code>package org.javabrains.koushik.dto;
import javax.persistence.Entity;
import javax.persistence... | 0 | 5,274 |
How to use getResource.getIdentifier() to get Layout? | <p>I have a question,everyone.</p>
<p>I want to use <code>getResource.getIdentifier()</code> to get my layout element in XML (layout/xxx.xml).</p>
<p>But I am encounter " Resource ID #0x7f070003 type #0x12 is not valid..." error message.</p>
<p>I don't know how to fixed this problem.</p>
<p>I am use a method retur... | 0 | 2,117 |
Spring JcbcTemplate to call Oracle Stored Proc. Spring 3.2 | <p>I have some straight JDBC code using a CallableStatement working. I have been trying to convert it to Spring leveraging the DataSource, JdbcTemplate and SimpleJdbcCall. I have tried basically every tutorial, example and snippets from the Spring docs that I can find. With tweaking, all the Spring solutions yield the ... | 0 | 2,171 |
Angular: setErrors not displaying message | <p>I am trying to display set te error message inside my custom control with lo luck..the message is always empty! what am I missing?
onSelectedCC(event: any)//this called to turn on/off phone validator</p>
<p><strong>HTML</strong></p>
<pre><code><div class="form-group col-xs-3 col-md-3"
... | 0 | 1,305 |
std::Invoke, No matching overloaded function found | <p>I'm trying to create a thread that handles client-server communication using a socket in C++.</p>
<p>The program throws an error</p>
<blockquote>
<p>std::Invoke, No matching overloaded function found</p>
<p>Error C2893 Failed to specialize function template 'unknown-type std::invoke(_Callable &&,_T... | 0 | 2,353 |
HikariCP not closing connections on close() (Connection Leak) | <p>I'm using HikariCP 3.3.1 and PostgreSQL. But I've a problem with closing my connections, in Hikari config I set maximum pool size to 15 and minimum idle connection to 5, but after a few minutes of work with database I've found out connections don't closes, they stack more and more (almost 100 Idle connections right ... | 0 | 1,160 |
Nodejs & socket io : warn - error raised: Error: listen EADDRINUSE | <p>I am giving a try to Node.js with socket.io </p>
<p>Now here is my scenario i am ubuntu 12.04 user and i have folder pp on desktop </p>
<p>inside that i am putted server file i.e <code>app.js</code></p>
<p>Here is the content </p>
<pre><code>var fs = require('fs')
, http = require('http')
, socketio = r... | 0 | 1,243 |
CSS - Want to center LI items in my navbar DIV | <p>I have a navbar on my blog, inside a few divs. I've been tweaking it for 3 hours, but I still can't figure out why the <code>li</code> items aren't centered in the middle of the navbar div. Can someone please help? Here's my code:</p>
<pre><code>#NavbarMenu {background: #FFF; width: 100%; height: 40px;font-size: 14... | 0 | 1,236 |
Filtering list of items with JQuery checkboxes | <p>I have a set of two different checkboxes; price, and category.</p>
<p>Initially, I want the whole list of results to show, but then as filters are applied, the list changes, and then when filters are removed, or all removed, the list adjusts.</p>
<p>I'm using JQuery to filter the results, but I can't seem to get i... | 0 | 1,296 |
File upload doesn't work with AJAX in PrimeFaces 4.0/JSF 2.2.x - javax.servlet.ServletException: The request content-type is not a multipart/form-data | <p><strong>Important :</strong> The issue which is discussed in this thread has been <a href="https://code.google.com/p/primefaces/issues/detail?id=6925"><strong>fixed</strong></a> as of <strong><a href="http://central.maven.org/maven2/org/primefaces/primefaces/5.1/">PrimeFaces 5.1 final</a></strong> (community release... | 0 | 6,516 |
Can not locate config makefile for product "cm_oneplus2" | <p>I've been trying to build AOSP ROM for OnePlus Two. </p>
<ol>
<li><p>I've made a <code>working-dir</code> folder in my <code>ubuntu's home</code>. Installed all required tools and scripts like, java, python, make, git and some lib files.</p></li>
<li><p>I've downloaded compressed sources(No <code>.repo</code> folde... | 0 | 1,406 |
Removing all spaces in an ArrayList. Java | <p>I am taking input from a .txt file and storing it into an ArrayList. I need to get rid of all the spaces so I can parse the <code>ArrayList</code> to an <code><Integer></code>. I am going to post commented out sections so you can see what i have tried to use to do this. Thank you. If you can give me somewhere ... | 0 | 1,337 |
Clear the session/cache/cookie in the JavaFX WebView | <p>I had a Swing dialog, which uses JavaFX <code>WebView</code> to display oAuth 2.0 URL from Google server.</p>
<pre><code>public class SimpleSwingBrowser extends JDialog {
private final JFXPanel jfxPanel = new JFXPanel();
private WebEngine engine;
private final JPanel panel = new JPanel(new BorderLayou... | 0 | 2,944 |
validating an XML schema with empty attributes | <p>I am having trouble validating my xml schema.</p>
<p>I get these errors on the schema</p>
<blockquote>
<p>113: 18 s4s-elt-invalid-content.1: The
content of '#AnonType_user' is
invalid.</p>
<p>164: 17 s4s-elt-invalid-content.1: The
content of '#AnonType_festival' is
invalid. Element 'sequence' is
i... | 0 | 6,363 |
Firebase error: Function failed on loading user code (node.js) | <p>I am a relative noob with Firebase my first time using it and following along with a tutorial. The tutorial is a bit outdated and I have been fixing bugs as I have been going, but this one has got me completely stuck. I try to run a different functions that trigger when a document is created
in certain collections. ... | 0 | 2,176 |
Oracle procedure call results in "PLS-00306: wrong number or types of arguments in call" | <p>I'm trying to create a procedure in SQL. It compiles correctly with no errors, but when I try to run it I keep getting the same syntax error. </p>
<p>Here is the error:</p>
<pre><code>exec reset_password(2002)
Error report -
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'RES... | 0 | 1,177 |
Custom Translucent Android ActionBar | <p>I've been scouring the interwebs (e.g. Android documentation, answers here, etc.) for the answer to what I thought would be a fairly trivial question. How do you achieve a translucent action bar like the ones in <a href="http://coreylatislaw.com/wp-content/uploads/2011/07/google-music.png" rel="noreferrer">Google Mu... | 0 | 1,314 |
Integrity constraint violation: 1452 Cannot add or update a child row: | <p>I am trying to insert values into my comments table and I am getting a error. Its saying that I can not add or update child row and I have no idea what that means.</p>
<p>my schema looks something like this</p>
<pre><code>-- ----------------------------
-- Table structure for `comments`
-- ------------------------... | 0 | 1,186 |
Function mcrypt_get_iv_size() is deprecated on Laravel 4 | <p>I am in L4, here is my app.php </p>
<pre><code><?php
return array(
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mo... | 0 | 3,263 |
Accessing emails from gmail using IMAP ( javamail API) | <p>I am trying to access emails from Gmail accounts through IMAP with the help of the JavaMail API. I was wondering why the code works for one email account but doesn't work for another. </p>
<p>I am able to access the <code>Inbox</code> folder of both email accounts. But for one of the email accounts, other folders l... | 0 | 1,228 |
Symfony2 Data Transformer on hidden field | <p>I've searched and not found anyone with this problem. </p>
<p>I've created my own Data Transformer as set out in the Cookbook and it all seems right but i get the error:</p>
<blockquote>
<p>The form's view data is expected to be an instance of class Niche\SecurityBundle\Entity\BusinessUser, but is a(n) integer. ... | 0 | 1,813 |
AngularJS app freezes when loading in new data to $scope | <p>This is probably a difficult question to answer as I'm not sure what the root problem is here, would appreciate if someone would take a look though.</p>
<p><a href="http://threadfinder.net/search%3FnameTags=jacket/0" rel="nofollow">http://threadfinder.net/search%3FnameTags=jacket/0</a></p>
<p>If you continually sc... | 0 | 1,348 |
Read line with Scanner | <p><strong>EDIT</strong> for further readers: the problem was that my input file was corrupted.</p>
<p>I don't understand what I'm doing wrong :</p>
<p>I was using this code :</p>
<pre><code> File f = new File("C:\\Temp\\dico.txt");
BufferedReader r = null;
try {
r = new BufferedReader(new FileRea... | 0 | 1,239 |
java.lang.ClassNotFoundException: HttpServletRequest | <p>I just got tomcat 7.0.27. I have kept the time to start tomcat 45sec. Also it was running fine with older version on tomcat.
but running it I get the following error :</p>
<pre><code>SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Faile... | 0 | 2,710 |
Why is my jQuery :not() selector not working in CSS? | <p>I have this layout:</p>
<pre class="lang-html prettyprint-override"><code><div id="sectors">
<h1>Sectors</h1>
<div id="s7-1103" class="alpha"></div>
<div id="s8-1104" class="alpha"></div>
<div id="s1-7605" class="beta"></div>
<div id="s0-7... | 0 | 1,620 |
uninitialized constant ActiveSupport::EventedFileUpdateChecker in env config file | <p>I'm new with Ruby on Rails. After run the 'bundle' command for update/install, When i try to do <code>rails s</code> or <code>rails g mongoid:config</code> console returns this message that start with:</p>
<pre><code>/home/myUser/proyect/config/environments/development.rb:50:in `block in <top (required)>': un... | 0 | 1,401 |
Multiple Checkbox selection using Webgrid in MVC 3 (select All/Deselect All), Sorting and Paging | <p>If you are wondering how to make multiple checkboxes and Multiple checkbox selection (select All or Deselect All),paging, sorting in a MVC3 Webgrid, here is the solution:</p>
<p>To Simplify, It has the following features:</p>
<ol>
<li>Checkbox in the webgrid</li>
<li>Multiple checkbox selection (select all /desele... | 0 | 5,498 |
Adding AspectJ to pom.xml changed Java version with Maven, why? | <p><strong>UPDATE:</strong> here is my maven-compiler-plugin configuration:</p>
<pre><code><plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
... | 0 | 1,482 |
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: FQPropretyName, could not initialize proxy - no Session | <p>I am trying a ManyToOne Bi-Directional Association using SpringBoot, SpringDataJpa along with a unit test using SpringBootTest. However the test fails with the stacktrace shown below. However I am Unable to find the reason. Any pointers will be helpful</p>
<p>Below Spring Boot JUnit Test for ManyToOne Bi-Directiona... | 0 | 1,266 |
Spring-Boot Resource Not Found when using executeable Jar | <p>again I face a strange issue and hope someone here can help. </p>
<p>I have a spring boot backend module, what works in eclipse well and application is executeable when starting main in application.java. Everything fine.</p>
<p>My application makes import of example data to database using csv-files what is include... | 0 | 2,121 |
Reading source code from a webpage in java | <p>I am trying to read source code from a webpage. My java code is</p>
<pre><code>import java.net.*;
import java.io.*;
import java.util.*;
import javax.swing.JOptionPane;
class Testing{
public static void Connect() throws Exception{
URL url = new URL("http://excite.com/education");
URLConnection spoof = url.ope... | 0 | 1,688 |
How to send HTTP request using JWT token for authentication from cookie storage in android | <p><strong>What I did so far</strong>:</p>
<p>I am trying to communicate with Java web application which has custom authentication. In that, I need to first hit a link with request body parameters <code>JSON</code> type to get <a href="https://auth0.com/docs/server-apis/java" rel="noreferrer">JWT</a> <code>auth-token<... | 0 | 1,896 |
WPF Stretch ListBox Height 100% of Grid.Row? | <p>I'm attempting to stretch the height of a <code>ListBox</code> 100% of the height of the parent grid (i.e. 90% of the height of the parent view); even if the <code>listboxes</code> are empty. I should note that <code>VerticalAlignment="Stretch"</code> doesn't seem to work, so I've removed it from the <code>ListBox<... | 0 | 3,628 |
Get user swiping direction in UIPageViewController | <p>These two methods <code>viewControllerBeforeViewController</code> and <code>viewControllerAfterViewController</code> of the <code>UIPageViewControllerDataSource</code> don't tell the direction of the swipe.</p>
<p>The method <code>transitionCompleted</code> of the <code>UIPageViewController</code> delegate doesn't ... | 0 | 1,589 |
Specifying a font with the font family using ImageMagick | <p>Is it possible to render a font using the font family in ImageMagick?</p>
<p>I have tried everything I can think of and nothing seems to work. I have done a lot of searching and I can't seem to find anything that addresses this specific issue.</p>
<p>I am ultimately using PHP, but I have also tried using ImageMagi... | 0 | 1,581 |
iOS Contacts How to Fetch contact by phone Number | <p>I just want to get contact given name and family name by phone number. I tried this but this is too much slow and cpu is hitting over %120.</p>
<pre><code>let contactStore = CNContactStore()
let keys = [CNContactGivenNameKey, CNContactFamilyNameKey, CNContactPhoneNumbersKey]
var contacts = [... | 0 | 1,495 |
Android: How to disable debugging to upload the apk | <p>When I try to upload my app in Google Play I get this error.</p>
<blockquote>
<p>Upload failed</p>
<p>You uploaded a debuggable APK. For security reasons you
need to disable debugging before it can be published in Google Play.
Learn more about debuggable APKs.</p>
</blockquote>
<p>I compile my app with Android Studi... | 0 | 3,703 |
Ways to set a minimum width on a Radgrid column with an empty width | <p>I have a RadGrid that has columns programatically added to it during PageLoad. For my webpage, there will always be at least one column with an empty width (HeaderStyle.Width = Unit.Empty), with the rest of the columns using specific pixel widths. All columns are resizable. (In my app, we are retrieving and saving t... | 0 | 4,050 |
This app won't run unless you update Google Play services error | <p>I'm kind of lost right now.
I'm implementing an Android application using Google maps.</p>
<p>In order to make it work I followed some tutorials which were pretty efficient. However I'm stuck with this ":</p>
<p><img src="https://i.stack.imgur.com/5uJte.png" alt="enter image description here"></p>
<p>To fix, this... | 0 | 1,917 |
How to access RecyclerView ViewHolder with Espresso? | <p>I want to test the text contained in each <code>ViewHolder</code> of my <code>RecyclerView</code>:</p>
<pre><code>@RunWith(AndroidJUnit4.class)
public class EspressoTest {
private Activity mMainActivity;
private RecyclerView mRecyclerView;
private int res_ID = R.id.recycler_view_ingredients;
privat... | 0 | 1,339 |
chartJS - creating a chart with timeline | <p>I am using angular to create chart on html using chart.js library.
I want to achieve a line chart which is a collection of different date in a year length. To do that I am extracting data from database, creating JSON and in HTML getting json data to create chart. I want to create 6 different graphs on one chart.</p... | 0 | 1,430 |
Multiple security-constraints in web.xml not working | <p>I am upgrading a web application (Servlet 3.0 / Tomcat 7) that requires basic authentication on most of its pages. This application has a small set of monitoring servlets, none of which should be protected. In my <code>web.xml</code>, I currently have the following <code>security-constraint</code> blocks (private in... | 0 | 2,853 |
matplotlib scatter plot with different markers and colors | <p>I would like to make a plot with different markers and different colors according to the values of 2 external vectors. </p>
<p>Here what I have tried:</p>
<pre><code>>>> s = [u'+', u'+', u'o']
>>> col = ['r','r','g']
>>> x = np.array([1,2,3])
>>> y = np.array([4,5,6])
>>&g... | 0 | 1,481 |
Custom ObjectMapper with Jersey 2.2 and Jackson 2.1 | <p>I am struggling with a REST application with Grizzly, Jersey and Jackson, because Jersey ignores my custom ObjectMapper.</p>
<p>POM dependencies:</p>
<pre class="lang-xml prettyprint-override"><code><dependencies>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
... | 0 | 1,160 |
Is there a simpler way to find MODE(S) of some values in MySQL | <p>MODE is the value that occurs the MOST times in the data, there can be ONE MODE or MANY MODES</p>
<p>here's some values in two tables (<a href="http://sqlfiddle.com/#!2/1f727/5/1" rel="nofollow">sqlFiddle</a>)</p>
<pre><code>create table t100(id int auto_increment primary key, value int);
create table t200(id int ... | 0 | 1,722 |
How to disconnect a specific USB device using musb_hdrc Linux driver? | <p>First, i am new to the Linux USB stack and i am trying to understand it a little bit more in order to achieve the following result : i need to reconnect/disconnect a specific USB device because sometimes, tough not often, this device does not respond anymore and the only solution is to physically disconnect/reconnec... | 0 | 1,548 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.