title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Wrong color & line Width with UIBezierPath | <p>I am having a weird trouble with UIBezierPath where my color and the line width are not being rendered correctly. </p>
<p>I am drawing a series of lines (like a ruler) with major and minor gradations. The major gradations are lines with longer length... </p>
<p>Major Gradation: Color Red & Line Width: 2.0
Mino... | 2 | 1,090 |
How do I implement simple 2d ball collision? | <p>I've been working on this project for a class, and I just wanted some advice on how to move forward. Basically, my project is that on button click a ball is drawn on the form (each button click adds an extra ball). This ball is supposed to bounce off of the edges of the form and also collide with other balls. </p>
... | 2 | 2,980 |
Unable to set up Jinja2 with Django | <p>I've installed Django 1.9.7, and I have Pythons 3.4.3 and 2.7.10 on Ubuntu.</p>
<p>These are the steps I've followed:</p>
<ol>
<li>Made a new project with <code>django-admin startproject testproject</code></li>
<li><code>cd testproject/testproject</code></li>
<li>Made an app within the project with <code>django-ad... | 2 | 2,071 |
Using a Fragment in Android 2.2 | <p>I am using fragments for Android 2.2 (with backward compatibility) for the first time. I created a simple example to see how it works.</p>
<p>Here is the code snapshot.</p>
<p>Main Activity code:</p>
<pre><code>public class FragmentExampleActivity extends FragmentActivity {
/** Called when the activity is first cr... | 2 | 2,147 |
Different states for Woocommerce product tabs | <p>I recently got tasked with maintaining an old WP site and are having some trouble figuring out how to set the state on a duplicate element. The site uses WooCommerce plugin and in it there are templates which are overridden. One of the templates is called tabs and are essentially a togglable table with additional pr... | 2 | 1,367 |
program closed unexpected when i try getConnectionInfo | <p>I'm in the process of learning the android api. However, when I try to get info about wifi my program is closing unexpectedly:</p>
<p>here is the code: </p>
<pre><code>package com.example.helloandroid;
import java.util.List;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextVie... | 2 | 1,672 |
xsl:include template with no default namespace causes xmlns="" | <p>I've got a problem with <strong>xsl:include</strong> and default namespaces which is causing the final xml document contain nodes with the <strong>xmlns=""</strong></p>
<p>In this synario I have 1 source document which is Plain Old XML and doesn't have a namespace:</p>
<pre><code><?xml version="1.0" encoding="U... | 2 | 1,507 |
Place a TextView next to another TextView for longer text on Android | <p>My goal is to have 2 <code>TextView</code>s (<code>textLeft</code>, <code>textRight</code>) next to each other. <code>textLeft</code> should be aligned to the left side of parent. <code>textRight</code> should always be an immediate right of <code>textLeft</code> (not on the extreme right of device), and it should n... | 2 | 1,108 |
overlapping nodes in very large tree d3 v4 | <p>I have built a simple tree with sample flare data. However, this tree does not fit into my svg and all the nodes overlap with each other as shown in the demo. Is there any way to fix this problem of overlapping child nodes in a given SVG canvas width and height? I tried with separation as given in <a href="https://s... | 2 | 8,924 |
C# Bowling Game Calculation Issue | <p>I have problem with my C# Bowling game and I would appericate some help I'll try to explain the code as well as i can. I've been trying to solve this issue for a long time and no success yet.</p>
<p>The calculation works fine but the only problem is my strike, the strike should count 10 + the next 2 coming throws.<... | 2 | 1,417 |
Repository pattern with EF6 + DatabaseFirst | <p><strong><em>Current System:</em></strong></p>
<p>I am working on a project which is multi layered as shown below (in order of flow) and I am learning and trying to implement Repo Pattern with UOW on EF Database first.</p>
<ul>
<li>Service (Web API)</li>
<li>Business (C# Class Library)</li>
<li>Repository (Repo Pat... | 2 | 2,195 |
How to get the correct order of execution of pthreads | <p>I was doing Histogram using pthreads and after long struggle on it.. finally it said:</p>
<pre><code>Segmentation Fault (Core Dumped)
</code></pre>
<p>unfortunately I had this line </p>
<pre><code>p=(struct1 *)malloc(sizeof(struct1));
</code></pre>
<p>after getting the values to the struct variables from comma... | 2 | 5,466 |
IllegalArgumentException while reading a video file from External Stroage | <p>I have a problem that I am getting IllegalArgumentException while reading a video file from sdcard. I don't know why? Please suggest me the right solution for the same.</p>
<p><strong>ErrorStack:</strong></p>
<pre><code>11-03 18:56:18.733: ERROR/AndroidRuntime(24192): FATAL EXCEPTION: main
11-03 18:56:18.733: ERRO... | 2 | 1,401 |
How to align multiple buttons inside a row in html? | <p>I am working on aligning two buttons to the middle of the row which is just below a table in the form.</p>
<p>But the alignment of buttons is vertical now. How do I make them horizontal and to the middle.</p>
<p><a href="https://i.stack.imgur.com/bYyiL.png" rel="nofollow noreferrer">This is how it is being display... | 2 | 1,135 |
DNN WebAPI POST always returns a 404 Not Found Error | <p>I have no problem with GET requests when I try the WebAPI method of doing services in DNN. However, I can't for the life of me get a POST request to return anything but a HTTP 404 Not Found error. Both the GET and POST methods are in the same controller. </p>
<p>I reviewed similar questions and confirmed that my f... | 2 | 1,432 |
How do I sign a PDF with a Smart Card in a web context using iText? | <p>Read through the following references:</p>
<ul>
<li><a href="http://pages.itextpdf.com/ebook-digital-signatures-for-pdf.html" rel="nofollow noreferrer">iText Digital signature white paper</a>, and <a href="http://sourceforge.net/p/itextsharp/code/HEAD/tree/tutorial/signatures/" rel="nofollow noreferrer">C# examples... | 2 | 2,563 |
Android inflate from separate xml | <p>How to inflate particular View from separate xml file. Is it possible? When I`m trying to set id of this View I just have an ResourceNotFoundException.
Maybe I need to set somehow the name of file?</p>
<pre><code>LayoutInflater inflater = LayoutInflater.from(this);
FrameLayout ingredients_frame = (FrameLayout)infla... | 2 | 1,126 |
JPA ECLIPSELINK issues SELECT 1 | <p>All, </p>
<p>Why does EL issues SELECT 1 after every exception ? Is there a way to avoid the issuing of this SELECT 1 as it is hanging/locking the table and the connection is not being released? </p>
<p>Please let me know why does this happen and is there a way to get past this?<br>
Thanks!</p>
<p>[UPDATE]<br>
... | 2 | 1,272 |
How to log INFO into one file and ERROR into another file using log4j in spring boot. | <p>I have tried <strong>application.properties</strong> </p>
<pre><code>logging.level.org.springframework.security= DEBUG
logging.level.org.hibernate= DEBUG
logging.file=D:/LogDemo/DemoDebug.log
logging.level.root= WARN
logging.file=D:/LogDemo/DemoWarn.log
</code></pre>
<hr>
<p><em>But log is appending only in the ... | 2 | 2,325 |
Codeigniter 3: pagination only displays the first 10 records | <p>I am trying to paginate a <strong>Codeigniter 3</strong> application without using the framework's pagination library. More exactly, I want to <em>paginate a table with about 100 rows</em>. For this purpose:</p>
<p>In the home controller I have:</p>
<pre><code>public function index() {
$this->load->model... | 2 | 1,289 |
number format exception | <p>when i am saving the data at that time when i enter mobile no like 1234567891 it is saving properly but when i insert random mno as 4342432435 it giving error i.eException in thread <code>"AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "4342432435"</code>
my code is:</p>
<pre><code> int len2;... | 2 | 3,693 |
Implementing the minimax algorithm in C# | <p>I'm working on implementing minmax algorithm into a tic tac toe game as a personal learning project. I'm running into a few problems though. I have a logical error somewhere and i'm having trouble finding it. Was hoping for a spare set of eyes and brain to pick on the subject. The issue i'm having is that each conse... | 2 | 2,343 |
CakePHP 3: Error while passing an array in URL | <p>I am trying to pass <code>datetime</code> variables into my <code>exportcsv</code> method to generate <code>.csv</code> file with data from indicated time period. </p>
<p>Both variables are associative arrays that look like this:</p>
<pre><code>[
'beginning' => [
'year' => '2016',
'month' => '06'... | 2 | 1,715 |
Spring Security with REST API | <p>I am trying to create an application that will primarily access a REST API using Spring, and am trying to configure the security side. Trying to present the actual structure of the application using this picture:
<a href="https://i.stack.imgur.com/M9afo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.... | 2 | 3,749 |
How to inject service in custom ClaimsPrincipal using Simple Injector | <p>I am working on an ASP.Net MVC project that authenticates using ADFS and uses SimpleInjector as the IoC container. The service layer of the application is in a different project and services are injected in the controller constructors on startup. One of these services is a user service which I would like to use to g... | 2 | 1,567 |
LINQ query to MVC Viewmodel multiple tables and lists | <p>I am trying to make one query to hit the database for 5 different tables to send to my view in one viewmodel. Here are my data classes.</p>
<pre><code>public partial class Table_Parts_Warehouse
{
public int CQPN { get; set; }
public int CATEGORY { get; set; }
public int SUBCATEGORY { get; set; }
pub... | 2 | 1,540 |
Editing a Gridview row with drop-down lists gets too wide - how can I use popup panels instead? | <p>I have a series of GridViews in a Tab Panel - databound to a generic List of Business Objects.</p>
<p>The columns in the Gridview are all similar to the following:</p>
<pre><code><asp:TemplateField HeaderText="Company" SortExpression="Company.ShortName">
<ItemTemplate>
<asp:Label ID="lbl... | 2 | 1,648 |
Bullet points appear below a multi select drop down box when selecting an option | <p>I am building an angular(7 is the version) page that has a multi select dropdown for which I am using <a href="https://www.npmjs.com/package/ng-multiselect-dropdown" rel="nofollow noreferrer">ng-multiselect-dropdown</a>. Please see the below picture - <a href="https://i.stack.imgur.com/KnSuw.png" rel="nofollow nore... | 2 | 1,215 |
Custom mongoDB query with Spring MongoDB Template | <p>I have this classes:</p>
<p>IUserRepository (For CRUD)</p>
<pre><code>@Transactional
public interface IUserRepository extends MongoRepository<User, String>,
UserRepositoryCustom {
}
</code></pre>
<p>UserRepositoryCustom (For Custom)</p>
<pre><code>public interface UserRepositoryCustom {
public User g... | 2 | 4,041 |
Using Webpack 2 and extract-text-webpack-plugin | <p>I'm using extract-text-webpack-plugin 2.0.0-rc.3 with Webpack 2.2.1 and am getting this error when running the build:</p>
<pre><code>/node_modules/extract-text-webpack-plugin/index.js:259
var shouldExtract = !!(options.allChunks || chunk.isInitial());
^
TypeError: c... | 2 | 1,484 |
Apache Kafka + Spark Integration (REST API is needed?) | <p>Got some fundamental problems, hope someone can clear them up.</p>
<p>So I want to use Apache Kafka and Apache spark for my application. I have gone through numerous tutorials and got the basic idea of what it is and how it will work.</p>
<p>Use case :</p>
<p>Data will be generated from a mobile device(multiple d... | 2 | 1,484 |
Word macro to split document is creating an extra page | <p>I created a macro which, based on user input, splits the Word document into smaller documents and then outputs them as a .pdf with a unique name. Each individual document though is outputting with an extra blank page on the back, which at no point is in the original document. Is there any way to stop this happening/... | 2 | 1,664 |
How remove vertical spacing between li css | <p>I have this html code and style "this is just an example":</p>
<pre><code><div id="mn" style="margin-top:200px;">
<div class="first">1</div>
<div class="second">2</div>
<div class="third">3</div>
<div class=... | 2 | 1,157 |
Sonar-Runner job can't write to G:\.sonar_lock (looks like cache dir to me) | <p>We installed a new SonarQube 5.2 instance with Sonar-Runner 2.4 and MSSqlServer with the sonar.jdbc.url=jdbc:jtds:sqlserver:... driver.</p>
<p>For some reason we can't identify where the .sonar_lock configuration is being written to by sonar-runner.bat analysis. There seems to be a permission error there somewhere... | 2 | 3,965 |
Something wrong with struts 2 tiles2.2.2 configuration. Can anyone help troubleshoot? | <p>Below are my resources.</p>
<p>a) web.xml</p>
<pre class="lang-xml prettyprint-override"><code><?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:s... | 2 | 2,481 |
android-kotlin JsonObject JsonArray send request data via POST | <p>I want to send data request via post to server I want to know How can I add data in array</p>
<pre><code>data class City(
@SerializedName("cityId")
val cityId: Int?,
@SerializedName("detail")
val detail: List<String?>
)
</code></pre>
<p>Request</p>
<pre><code>data class CityRequ... | 2 | 1,138 |
Self created http server cannot handle postman request | <p>I'm trying to implement a simple http server in Java to understand how does a http server work. Now, I'm able to send request from any browser and receive the proper response, however, when I try to simulate a request from Postman, it always throws <code>java.net.SocketException: Broken pipe (Write failed)</code> ex... | 2 | 1,382 |
Reactive Form Validation not working with ControlValueAccessor | <p>I've created a simple nested form that depends on the child component rather than putting everything into one component.
I've implemented a very basic ControlValueAccessor to enable it to work in such fashion, however what I noticed is that validation doesn't get captured at parent component. This means a faulty for... | 2 | 1,584 |
Swiftmailer, Gmail, Cloud9 not working | <p>So, I'm about 2 weeks into trying to learn PHP and I'm working on cloud9, which doesn't support the mail() function. After a lot of looking around on here I thought I'd try Swiftmailer and Gmail. For some reason, I can't seem to get this right even after literally copying formats. I have no idea what I'm doing wrong... | 2 | 3,130 |
ReactJS passing state to another class | <p>i have problem in accesing the state on the other component. I am beginner in using the reactjs. I am still confuse on how to use the state and props. I am getting the input which will be set to the state as username then I will pass it to the formDetails component and use it when the handleSubmit triggers. can some... | 2 | 1,203 |
gdb can't find a symbol to break on | <p>I am debugging a C++ application, <code>info shared</code> tells me this library I want to break in has been read and has debugging symbols,</p>
<pre><code>0x00007fffedc1f530 0x00007ffff18e4e60 Yes /home/me/WPEWebKit/WebKitBuild/Debug/lib/libWPEWebKit.so
</code></pre>
<p>I then ran <code>nm</code> on thi... | 2 | 1,689 |
React redux redirect after success post | <p>I normally work as a Java programmer and I love the fact that with Java alot of the code design is standardized. For example you read Java example about Spring or Hibernate the code structurally looks the same for the whole world.</p>
<p>I am now working on ReactJS with redux and I just can't seem to understand it.... | 2 | 1,332 |
Proguard issue with Support Library and RecyclerView onBindViewHolder and onCreateViewHolder | <blockquote>
<p>Fatal Exception: java.lang.NullPointerException at
my.packa.CustomAdapter.onCreateViewHolder(Unknown
Source) at
my.package.name.CustomAdapter.onBindViewHolder(Unknown
Source) at
android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(Unknown
Source) at
android.support.v7.widget.R... | 2 | 1,109 |
call a controller function in codeigniter | <p>i ' m still a beginner in codeigniter and i want to call a function of a controller but i don't know why i always get <code>404 error</code></p>
<p><strong>Error:</strong>
<a href="https://i.stack.imgur.com/Xlydv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xlydv.png" alt="error"></a></p>
<p>... | 2 | 5,428 |
cPanel Mysql Remote Connection ERROR 2003 (HY000) | <p>Mysql server works with no problems on a shared hosting box.<br>
PHP works fine,connects to mysql and serves site just fine through apache.
cPanel works with no issues.</p>
<p>Went to specific account's cPanel and added to "Remote MySql" remote hosts IPs and when this didn't work wildcard to allow anyone to connect... | 2 | 1,433 |
AbstractReadonlyModel in wicket Framework | <pre><code>package org.apache.wicket.examples.ajax.builtin;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.for... | 2 | 1,318 |
F# XML Parsing using XMLReader | <p>I am trying to process a particularly large XML document using F#. Since loading whole document is ruled out, I am trying to use XmlReader to serve my purpose. My first step is to define XML document as sequence of nodes.</p>
<pre class="lang-ml prettyprint-override"><code>// Read XML as a lazy sequence
let Read ... | 2 | 1,132 |
Symbolic tensor value error when using Lambda layer in Keras | <pre><code>ValueError: Layer lambda_47 was called with an input that isn't a symbolic tensor. Received type: <class 'tuple'>. Full input: [(<tf.Tensor 'lambda_45/Slice:0' shape=(110000, 1, 128) dtype=float32>, <tf.Tensor 'lambda_46/Slice:0' shape=(110000, 1, 128) dtype=float32>)]. All inputs to the la... | 2 | 2,556 |
Character encoding issue for httpost between android app and spring rest service | <p>I am trying to make my android app talk with my spring REST web service. I am making <code>httpost</code> from android as below code. However I am getting the exception below. whatever I set for <code>content type</code> of my post request it did not work. if there is not non-english character in my post object, it ... | 2 | 3,004 |
Elasticsearch : script_score using a nested value, tagging strength, nested document | <p><strong>Mission</strong>
I am attempting to implement a function score query.
<a href="https://stackoverflow.com/questions/13095866/elastic-search-tagging-strength-nested-child-document-boosting">Similar to this post here</a>, only using the new <code>function_score</code>, rather than the old <code>custom_score</c... | 2 | 1,945 |
Enforcing terms and condition Agreement in Android? | <p>How to enforce terms and condition agreement in Android? I want to do it like this <a href="http://www.droidbin.com/" rel="nofollow noreferrer">http://www.droidbin.com/</a>. You can observe in the given link that upload appears only when checkbox is ticked else it invisible and initially it is invisible.</p>
<p>My ... | 2 | 2,291 |
How to solve "Couldn't start vault with IPC_LOCK. Disabling IPC_LOCK" and "Cluster address must be set when using raft storage" errors? | <p>I use this following stack file to deploy the vault service in docker swarm mode.</p>
<p>The stack file:</p>
<pre><code>version: '3.8'
services:
faume-vault:
image: vault:1.6.0
environment:
TZ: UTC
VAULT_ADDR: 'http://0.0.0.0:8200'
VAULT_LOCAL_CONFIG: |-
{
"disable... | 2 | 1,961 |
Prevent scrolling outside map area on google map | <p>Am actually dealing with the Google Maps Framework for iOS, and I want to block scrolling out side a giving area.</p>
<p>What I tried to do at first, implement the delegate method : <code>- (void)mapView:(GMSMapView *)mapView didChangeCameraPosition:(GMSCameraPosition *)position</code> and compare the map position ... | 2 | 1,776 |
collection is inaccessible due to its protection level error wpf c# | <p>Hi I am quite new to wpf and c#. I have written a simple WPF app but it doesn't work because of the error <code>collection is inaccessible due to its protection level error</code>. I was wondering what am I doing wrong? </p>
<p>Here is my code:</p>
<p>It is only a dummy program and there is quite a lot left to do ... | 2 | 5,018 |
Inter-node pod-to-pod communication is not possible... Why? | <p>I'm new to k8s, but I know that, as a k8s requirement, every Pod should be reachable from any other Pod. However, this is not happening in my setup: I can't ping from within a Pod another Pod in another Node. </p>
<p><strong>Here is my setup:</strong></p>
<p>I have one master node (<code>sauron</code>), and three ... | 2 | 5,746 |
Doctrine_Pager returns wrong results with multiple groupBy columns | <p>I have Doctrine query setup with mySQL as database:</p>
<blockquote>
<pre><code> $q = Doctrine_Query::create();
$q->select('make.id, make.make,
model.id, model.year, model.model')
->from('Make make')
->innerJoin('make.Models model');
$q->groupBy('make.id, model.id'); //... | 2 | 1,603 |
Nested forms in Rails using has_many :through | <p>I am having trouble figuring out how to make a nested form using a has_many :through relationship. I used this <a href="http://railscasts.com/episodes/196-nested-model-form-part-1" rel="nofollow">Railscast</a> and I took at look at <a href="http://iqbalfarabi.net/2011/01/20/rails-nested-form-with-has-many-through-as... | 2 | 1,727 |
Angularjs Pagination issue when page size is chosen | <p>I am trying to use pagination like google in my page with angularjs. The user can choose how many elements will be shown in each page by choosing the number in a drop down list. The problem is that if the user chooses this value the first page is shown correctly and if I click an other page, for example page 2 it lo... | 2 | 2,442 |
jQuery - how to select a href to toggle hide and show? | <p>Totally new to jQuery. I'm trying to select the a href tags that hide and show the div contents. I understand how to use the toggle, but not sure how to properly select the a href tags to initiate the toggle of the div tags. I have to be able to select the a href tag without changing the html source code. But when I... | 2 | 1,729 |
In Need of Assistance setting up coding for 4 servos, and 2 joysticks, and where do I connect the SEL connection of the joystick | <p>Tony here, and I am a totally new person to the whole arduino world.</p>
<p>First my project, my equipment, why I decided to use arduino, what I am attempting to do, and the code I am using. </p>
<p>My project is relatively simple; the ability to pan and tilt 2 cameras that weight .06 ounce. The cameras are being... | 2 | 1,747 |
Show the borders and change the size of a Python plot | <p>I have the next plot but as you can see, its impossible to see the upright part. So I wanna know what I can do to see the entire plot and reduce his size. The code is from another user of Stack. </p>
<p>Thank you.</p>
<pre><code>import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import panda... | 2 | 1,846 |
Java blackjack program | <p><strong>So I rewrote it with your suggestion (Todd Hopp) and updated the post in the (*) section in the BlackJack class so you can see how I have it now but I'm still getting the same errors and it is not printing the computePlayerValue for some reason....</strong></p>
<hr>
<p>ERROR:
Exception in thread "main... | 2 | 2,101 |
Twig display function | <p>I cant quite get a hold of Twig really. I want to just simply display a function in a twig file but nothing is shown. My function: </p>
<pre><code>public function ratings(){
$overall_vote_rows = $blog_vote_overall_rows;
$overall_vote_rate = $blog_vote_overall_rate;
$overall_vote_dec_rate = $... | 2 | 1,076 |
Android 11 update broke my File writing code | <p>I've used this snippet before to <strong>write a simple text file</strong> with a name and a body:</p>
<pre><code>public static File writeTextFile(String sFileName, String sBody) throws IOException {
File root = new File(Environment.getExternalStorageDirectory(), FOLDER_NAME);
if (!root.exists()) {
... | 2 | 1,063 |
Unable to use the bootstrap togglable tabs using ruby (link_to) method | <p>I'm having difficulty in getting the bootstrap <a href="http://getbootstrap.com/javascript/#tabs" rel="nofollow">togglable tabs</a> element to work using the <code>link_to</code> view helper method. This is the bootstrap code i want to implement:</p>
<pre><code><div role="tabpanel">
<!-- Nav tabs -->... | 2 | 1,063 |
Why is the foreach lambda so much slower than the other for loops? | <p>I have lists that I need to iterate through. I was using the new foreach from Java 8. I found it to be much slower than older less elegant methods. I've read <a href="https://stackoverflow.com/questions/16635398/java-8-iterable-foreach-vs-foreach-loop">this</a> stack discussion which focuses more on <em>best practic... | 2 | 1,204 |
Multiple search option in PHP MySQL AJAX | <p>I want to put multiple search option in PHP file through AJAX method. With one search (Search by name )option its working fine but when I put another search field ( Like Search by gender) then its search only with gender only. I can't do search for both of them at a same time.
This is main index.php file</p>
<pre>... | 2 | 1,953 |
cocoapods dylib dependency use_frameworks | <p>I have built a dynamic library (to add ICU support in this case) which i need to add as a dependency to a pod. For that I created a pod with the following podspec (I removed things like authors, license, ... to keep it short)</p>
<pre><code>Pod::Spec.new do |s|
s.name = 'unicode'
s.version = '57.0'
s.sou... | 2 | 1,370 |
Spring Security OAuth2: '#oauth2.xxx' expressions not evaluted with multiple RequestMatchers mapped to the same FilterChain | <p>In a multi modules app I've defined 5 RequestMatchers mapped to the same FilterChain, like below:</p>
<pre><code>@Configuration
public class Module1SecurityFilterChain extends ResourceServerConfigurerAdapter {
@Override
public void configure( HttpSecurity http ) throws Exception {
http.sessionManagemen... | 2 | 1,891 |
C# forms too slow for a 2D game? | <p>I made this game with Python+Pygame, but it was slow, so I tried it with C# and its forms. It's even slower! I get only 20fps on a i5 radeon 6770m NTB millions of times faster than hardware I want this game to run and I haven't even finished the game yet, it's only rendering a map. It's a remake of a game that was r... | 2 | 1,099 |
call external functions in GTK+ gui | <p>Am having a main.c which is linked with some headers and other c files.After completing the program its a terminal based program which works with user input using switch.Its associated with a hardware board when i gives "o" it opens and "c" it closes.</p>
<p>I got a sample GTK+ gui code written in c with open cloas... | 2 | 1,060 |
bootstrap 4 / jquery - on click of drop down focus on input | <p>I am trying to focus on an input field when I click a bootstrap drop down, I can see the event firing with the alert created but the focus does not move to the search box. can anyone see why?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-cod... | 2 | 1,236 |
pop up form ajax request not working | <p>i want to add pop up contact form in my site and i take one example from internet and made some changes for it's sending mail and i made it for inserting data into database. so here my first file index.php</p>
<pre><code><!doctype html>
<html lang="en">
<head>
<title>A Slick Ajax Contac... | 2 | 3,881 |
Waiting for IE's "This page can't be displayed" Page | <p>I'm trying to create an explicit wait with Selenium that waits for the visibility of the "This page can't be displayed" message in Internet Explorer when a page cannot be reached. Selenium, of course, has a problem with the apostrophe in xpaths. The code I'm working with is the following ...</p>
<pre><code>String... | 2 | 1,198 |
Security errors on startup with Nashorn when deploying Spring application on server | <p>I have a Spring Webapp that throws some confusing errors on startup when I deploy it to my production server (they don't happen when I run it locally)- the errors don't seem to impact anything, so this question is more out of curiosity than a true need for help.</p>
<p>Here is the stacktrace:</p>
<pre><code>20-Apr... | 2 | 1,903 |
Expected ',' instead of 't' in Postman | <p>I am a beginner when it comes to API's and JSON serialization. I'm encountering a weird output. It seems that my JSON output is being wrongly formatted? I am using spring boot 1.59 and when I check my result in postman I am getting the following error:</p>
<h2>controller</h2>
<pre><code> /**
*
* @return... | 2 | 2,893 |
How to draw svg markers on PixiOverlay? | <p>I am trying to draw svg markers on a <a href="https://github.com/dzwiedzmin/Leaflet.PixiOverlay" rel="nofollow noreferrer">PixiOverlay.js</a> (a drawing overlay using Pixi.js). Completely new to Pixi myself, I think I have put something together that draws a diamond shape, see first code snippet (if it is not correc... | 2 | 3,399 |
Error when reverting an auto-generated migration for renaming a table in Django | <p>I'm having issues with <em>reverting</em> a Django (1.8.7) migration that contains the renaming of a table. Even though it seems to be able to rename it in Postgres, it then tries to add a constraint using the <em>old</em> table name.</p>
<p>Here's the traceback:</p>
<pre><code> cursor.execute(sql, params)
Fi... | 2 | 1,373 |
C : non blocking sockets with timeout : how to avoid busy waiting? | <p>The following code allows for a server to wait for a client to connect to a (already binded) socket.
It terminates either when a client connects to the socket, or when "server_run" takes the value 0: this allows other part of the code to shutdown the server when suitable to do so.</p>
<pre><code>static inline int ... | 2 | 4,707 |
How to debug binding an XDocument to a WPF ListView | <p>I think I'm missing something fundamental in WPF data binding here:</p>
<p>I have this XML file:</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<WindowList>
<Window Height="10" Width="10" ALL_MODEL_MODEL="xyz0" ALL_MODEL_MANUFACTURER="leidi"/>
<Window Height="20" Width="20" ALL_MOD... | 2 | 1,275 |
Can't use uuid module when running tests with Jest | <p>I have a very simple Node.js (<code>12.16.3</code>) application that uses Express <code>4.17.1</code>. I'm trying to use Jest <code>26.0.1</code> to run the test suite, but the same is failing due to some issue with the <code>uuid</code> module (version <code>8.1.0</code>) used across the entire project:</p>
<pre c... | 2 | 1,053 |
Passing value from page to Html.ActionLink | <p>My problem is:</p>
<p>I have two fields, and when i call my @Html.Actionlink method it send a null value for these two parameters.</p>
<p><strong>This is my page code:</strong></p>
<pre><code> <div id="new-skill" class="row">
<label for="Description">Descreva brevemente a su... | 2 | 1,419 |
Getting java.lang.RuntimeException: Cannotserialize while passing array list of byte to web service using ksoap2 in android | <p>I have db file of about 5 mb in size , I have converted to byte array list and want to pass it to my web service for saving on server but I am getting can not serialize error. I am attaching my code below...</p>
<pre><code> SoapObject soap_request = new SoapObject(NAMESPACE, METHOD_NAME1);
f... | 2 | 1,049 |
Why does phone state listener get fired multiple times for same state for one call? | <p>I am working on fetching recent call log as call get disconnected(outgoing , incoming) either answered or unanswered.</p>
<p>I am using Phone state listener to fire broadcast when call get disconnected but it getting fired multiple time for one call why so..??</p>
<p>So Please tell me how to fire receiver only on... | 2 | 1,399 |
Change Naming Convention for Images Pipeline | <p><em>Update</em></p>
<p>This is embarrassing, but it turned out that the problem with my original pipeline was that I'd forgotten to activate it in my settings. eLRuLL was right anyway, though.</p>
<hr>
<p>I'm at the stage where I have a working spider that can consistently retrieve the information I'm interested ... | 2 | 1,503 |
I have error in material UI tabs as "Failed prop type: The prop `children` is not supported. Please remove it" | <p>I'm using Material UI tabs for the first time in my project, everything works fine but there is one error in console while running the project here is:</p>
<pre><code>Failed prop type: The prop `children` is not supported. Please remove it
</code></pre>
<p>Here is my react index.js code:</p>
<pre><code>import { Brow... | 2 | 1,405 |
Credentials passed from client to WCF do not make it there | <p>Im trying to pass windows credentials into WCF service that requires windows authentication but it seems like my credentials are not making it into the service. My service does not throw any errors but when I check either of the 2 below they are empty.
<code>var user = WindowsIdentity.GetCurrent().User;
var calle... | 2 | 1,028 |
Summed area table (integral image) returns nonsenses on rectangle sum | <p>So here on wikipedia you can see an article describing <a href="http://en.wikipedia.org/wiki/Summed_area_table" rel="nofollow noreferrer">how summed area table (integral image) works</a>. It's a very important part of computer vision and image analysis.</p>
<p>I'm trying to implement it. The concept is really simpl... | 2 | 1,225 |
How to show Bootstrap dropdown above everything? | <p>I have this problem:</p>
<p><a href="https://i.stack.imgur.com/GyEp7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GyEp7.png" alt="enter image description here"></a></p>
<p>(sorry for the Greek).</p>
<p>I want this dropdown menu, positioned on top of everything else on the page.
I don't think... | 2 | 4,346 |
R- represent glmm (Package MuMin and lme4) with categorical and numeric variable | <p>I have a table with Ancylostoma's infection, vs sex (2 factor), location (2 factor), year, management (2 factor), ancestry (4 factor) and viremia like categorical variable, and the I have HL an age like numeric variable.**</p>
<p>I made a glmm:</p>
<pre><code>glm_toxo<-glmer((Ancylostoma) ~ as.factor(Sexo)+(Ed... | 2 | 1,797 |
SolrException: Error loading class 'solr.RunExecutableListener' + '/var/tmp/sustes' process | <p>Prehistory:</p>
<ol>
<li>My friend's site started to work slowly.</li>
<li>This site uses <code>docker</code>.</li>
<li><code>htop</code> told me that all cores loaded on 100% by the process <code>/var/tmp/sustes</code> with the user <code>8983</code>. Tried to find out what is <code>sustes</code>, but Google did n... | 2 | 1,295 |
Can't deploy application in Jboss7, with spring and hibernate, postgresql | <p>I can't deploy my application on Jboss 7.1.1, I'm using Spring 4.1.2.RELEASE.</p>
<p>I have error like : </p>
<pre><code>14:08:39,106 WARN [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-1) Exception encountered during context initialization - cancelling refresh attempt: o... | 2 | 8,932 |
C# data.fill (conversion failure) | <p>Using C#, .NET 4, SQL, visual studio 2010 and sql server manager 2008.</p>
<p>Hi guys, Seems like that same old easy to solve 101 question, but something has been bugging me.</p>
<p>My program runs a query and grabs the data and fills a dataset.</p>
<p>One of my fields is called pg (product group) and is set to a... | 2 | 2,551 |
How to make RecyclerView inside ViewPager | <p>I am planning to make a recyclerview inside ViewPager of SlidingTabLayout..
But I keep getting this error E/RecyclerView: No adapter attached; skipping layout</p>
<p>I tried the same recyclerview on other project without SlidingTabLayout and it works.. </p>
<p>Can anyone help me, I am facing this problem for over... | 2 | 1,974 |
Call SensorManager from AsyncTask? | <p>How do I call the SensorManager from inside -</p>
<pre><code>protected String doInBackground(String... params) {
.....
}
</code></pre>
<p>I have to log the acclerometer data on to a file. This application runs in the background. Hence I am using AsyncTask to implement it. I need to start and stop the logging by pr... | 2 | 1,494 |
Multiple conditionals with ng-show AngularJS | <p>I have a ng-repeat that builds a table from a web service. I render 6 values like this: <code>med:1 lab:1 pl:1</code> in one cell. I need to make a decision based on those 6 values. My <code>ng-repeat</code> code is like this:</p>
<pre><code><tr ng-repeat="(pid, value) in patient|groupBy:'pid'">
<td>... | 2 | 1,189 |
How can I fix 'Unhandled Promise Rejection' for my Vue application? | <p>For my Vue application I encounter the following issue in IE: <strong>'Unhandled Promise Rejection undefined'</strong>. </p>
<p>I tracked the issue down to the authentication of the application. But I'm not sure how to tackle it. I've tried try-catch blocks around the next() functions. </p>
<p>Below the code of th... | 2 | 1,358 |
ERROR: Class does not expose a management interface | <p>I am installing our ERP Solution developed in Java onto my IBM System X3750 M4 Server. I have downloaded and installed the JRE from IBM; the package name is: <code>ibm-java-x86_64-jre-7.0-5.0.x86_64</code>.</p>
<p>My Application Server is JBoss 6.0 and Client Server is Apache Tomcat 7.0.14 and Database is MYSQL 5.1... | 2 | 3,140 |
Javascript/jQuery - target table row and pass parameters to AJAX script Ask | <p>I have a table that displays some names and numbers - it is limited to 20 rows at at time. I'm using PHP to find some records from the database and output them in the table. I have a button at the top of this page that displays a modal window to initiate a VOIP call.</p>
<p>So far so good - the window appears and t... | 2 | 2,647 |
JavaScript Method results in Non Secure Item IE6 | <p>So I am baffled by this one. I have a function that is responsible for a non-secure item warning message to appear when viewing my web page from with IE6 on SSL. If I comment out the entire function the message goes way. If I just comment out the one method call it remains. What is really driving me nuts is if I rem... | 2 | 1,498 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.