title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Issues after updating to IOS11 and Xcode9!! "com.google.Maps.LabelingBehavior", "TIC Read Status" | <p>I have updated my phone and Xcode to the most recent update and I am getting tons of warnings. </p>
<p>First one is <code>2017-09-21 00:23:15.669466+0100 The Kallos[12068:1279021] TIC Read Status [1:0x0]: 1:57</code></p>
<p>and there is literally 2-3 posts about this which doesn't even explain what it is!</p>
<p>... | 1 | 3,741 |
Multiple DataSources In Spring Data JPA with Spring Boot, | <p>When i am trying to write an application with two database in a Spring boot, Spring Data JPA. It's not able to create databases, its given exceptions. Here is my implementation code</p>
<p>Application class</p>
<pre><code>package com.icarat.eshiksha;
@SpringBootApplication
public class Application extends SpringB... | 1 | 10,444 |
Android Drawable mutate() & setLevel() | <p>I am trying to store drawables in a static SoftReferenceMap for a ListView containing progress-bars in every row. Every row has a different progress, but when I set it through setProgress(int) all rows get affected.</p>
<p>I tried doing mDrawable.mutate().setLevel(progress*10000/max), but it still doesn't work.</p>... | 1 | 1,132 |
Node.js Error: Object function has no method | <p>I just started getting into node.js and followed this great tutorial on node.js at <a href="http://howtonode.org/express-mongodb" rel="nofollow">Howtonode</a>, express and mongod. However, I seem to be getting an error that no one else commented on in the comments. The latest comment was about a month ago, so maybe ... | 1 | 1,896 |
Switch to parent window after child window is closed by driver.close() throws Exception | <p>I have a scenario where I perform the following steps:</p>
<ol>
<li>Open browser --> navigate to and click on link which opens a new window</li>
<li>Switch to child window using <code>driver.switchTo().window(handle)</code> --> perform operations on the child window.</li>
<li>Close the child window.</li>
<li>Switch... | 1 | 1,843 |
Captured Closure (for Loop Variable) in Go | <p>Shouldn't Go compiler capture <code>for...range</code> loop variables as a locally assigned closure variable?</p>
<p>Long Version:</p>
<p>This caused me some confusion <a href="https://stackoverflow.com/questions/16264289/captured-closure-loop-variable-in-c-sharp-5-0">in C#</a> too and I was trying to understand i... | 1 | 1,423 |
An error occurred running job Full Analysis Database Sync for team project collection or Team Foundation server | <p>We are running TFS 2012 in our house for around 3 months and in particular "processing of cubes" was working fine till 14/08. At that point is just stopped to work (nothing was done on the server <- or at least I didn't found any changes yet)</p>
<p>What we get in the windows log looks like this:</p>
<blockquot... | 1 | 1,641 |
Custom partitioning with Java kafka client | <p>I was able to write a kafka sample app in Java. It has 3 topics and pub/sub is working fine. But couldn't assign those topics into different partitions. </p>
<p><strong>My Consumer</strong></p>
<pre><code>public class Consumers extends Thread {
private static final List<String> TOPIC_LIST = Arrays.asList... | 1 | 1,665 |
Insert huge number of rows into database using Entity Framework | <p><strong>@EDIT
I followed steps from <a href="https://stackoverflow.com/questions/5940225/fastest-way-of-inserting-in-entity-framework">Fastest Way of Inserting in Entity Framework</a> and got even worse results, so it's not a duplicate.</strong></p>
<p>My goal is to create a seed method to fill one of the tables of... | 1 | 1,527 |
Error compiling tweak in theos | <p>I set a simple tweak using theos following the tutorial <a href="http://brandontreb.com/beginning-jailbroken-ios-development-your-first-tweak/" rel="nofollow">here</a>. However when I run make with the headers from <a href="https://github.com/Fr0stDev/SpringBoard-iOS5-Headers" rel="nofollow">here</a>, I get</p>
<pr... | 1 | 5,782 |
Autocomplete Textbox fetching suggestions from database? | <p>I have created 2 autosuggest textboxes in which one is fetching data from server-side and another is fetching data from client-side.But server-side textbox is not working.Can anyone point out the error in my code.</p>
<p>Following is my HTML Code:</p>
<pre><code><html>
<link type="text/css" rel="stylesh... | 1 | 1,164 |
Make a text view overlay another text view | <p>I am trying to make a text view to overlay the above text view, I have tried the text align with no success; I can accomplish this by adding a large amount of padding but I do not want to use padding because I ran into other issues in android variety in screen sizes. I will post an image of what I'm trying to do and... | 1 | 2,484 |
Old input array AND dynamic fields - Laravel - Blade | <p>After validation fails. The values are flashed to the fields. </p>
<p>Now, I am trying to use old input to display all the dynamic fields where the user-added data.
Therefore, I am using an array called "name" and loop through them to determine how many names are stored in the array. This determines the number of f... | 1 | 4,541 |
Flutter The method '[]' was called on null | <p>I am running my app and getting the error:</p>
<p>"NoSuchMethodError: The Method '[ ]' was called on null. Receiver: null. Tried calling: ."</p>
<pre><code>import 'dart:async';
import 'dart:convert';
import 'package:flutter/material.dart';
import '../model/Lesson.dart';
class MobileModeScreen extends StatefulWi... | 1 | 1,535 |
Segmentation fault in getaddrinfo() | <p>I am getting segmentation fault in getaddrinfo().</p>
<p>This is the stack trace. </p>
<pre><code>Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7ff4b70 (LWP 26872)]
__res_vinit (statp=0xb7ff4df4, preinit=0) at res_init.c:176
176 res_init.c: No such file or directory.
in res_init.... | 1 | 1,722 |
Why foreground service stops when screen is off on Android Oreo? | <p>Android Oreo stops my foreground service when I turn off screen. It happens, when device is unpluged. I test my app on Huawei MediaPad T5. I send test request every 30 seconds with Handler.postDelayed. </p>
<p>I read about background executions limits in Android 8. In migration guide, is written, that foreground s... | 1 | 2,385 |
Convert any type of file into Base64 using javascript if we have URL of the file reside inside client system | <p>How can I convert a file (png/jpg/word/excel etc) to base64 format if I have url of the file (in the browser's sandboxed <code>LocalFileSystem</code>) which is already there in client system using javascript.</p>
<p>I had tried using creating canvas(image).<br>
I also tried file control.<br>
I don't want to use any... | 1 | 1,577 |
NPM require('tar') can not find module error | <p>I installed <code>tar</code> and <code>fstream</code> using npm and after that i ran some commands. output is :</p>
<p>Your environment has been set up for using Node.js 0.10.18 (ia32) and npm.</p>
<pre><code>C:\Users\abc>npm --version
1.3.8
C:\Users\abc>npm list
C:\Users\abc
├── chrome-rdebug@0.0.9
├─┬ fst... | 1 | 1,127 |
Ajax POST request without an html form and in pure JS | <p>Is it possible to make an ajax post without having an HTML form? And if it is how should i do it and what PHP variable is used to fetch the variable? The PHP is inside the fetched file. I'm not using any framework.</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="... | 1 | 1,317 |
IntegrityError: null value in column "user_id" violates not-null constraint (Django Rest Framework) | <p>I am new to Django Rest Framework I get an integrity error which I am trying to resolve</p>
<p><strong>Intro:</strong> I have 2 models <code>Patient</code> and <code>Embryo</code>. Patient is a ForeignKey to Django's default User. There is only 1 user who is a SuperUser. All Patients belong to SuperUser. Each Patie... | 1 | 4,456 |
WPF: How to split Listview columns into sub-columns | <p>I am new to WPF. I'm trying to make a <code>Listview</code> table. I want to split some of the columns. For example:</p>
<pre><code> parent column1 | parent column2
column1.1 | column 1.2 | column2.1 | column 2.2 |column 2.3
</code></pre>
<p>I've found a similar question here: <a href="https://st... | 1 | 1,362 |
Error when decoding JSON - keyNotFound(CodingKeys | <p>I am trying to parse JSON data over the network. Below you can see where the magic is happening. </p>
<pre><code>func getBookingsForDate(date: String, completionHandler: @escaping ([String:String]) -> Void ){
struct bookings: Codable {
var bookieName : String
var bookieNumber: String
var booked: St... | 1 | 1,766 |
spring boot rest for one to many relation | <p>I created spring boot project where I am making rest application. I have used My SQL database and I am using spring data. There is one method which adds orders based on customer id. So I am not able to figure out it will work based on spring data query or custom query and how it will be?
I have attached required cod... | 1 | 3,523 |
Query to return entities that match two link criterias with Left Outer Join | <p>I have a query that should return "A" entities while having links to entity "B" and "C" and these two links have "Left Outer Join" operator so that I can receive "A" entities either from one link or another. </p>
<p>After execution it returns me only one record which is common for two of the link criterias. If I re... | 1 | 1,855 |
How to get a list parameter from a grails view | <p>In my view I have the following:</p>
<pre><code><g:hiddenField name='expandableEducationList[${edIdx}]._deleted' value='false'/>
<button
onclick="dojo.byId('expandableEducationList[${edIdx}]._deleted').value='true'; getContainer(this, 'tr').style.display='none'"
style="widt... | 1 | 1,243 |
NGINX: How do I remove a port when performing a reverse proxy? | <p>I have an Nginx reverse proxy set up which is being used as an SSL offload for several servers such as confluence. I've got it successfully working for taking <a href="http://confluence" rel="nofollow noreferrer">http://confluence</a> and <a href="https://confluence" rel="nofollow noreferrer">https://confluence</a> ... | 1 | 2,092 |
Set image coming directly from web server to imageview | <p>I am working on ImageView in which I want to set an image into Imageview but that Image(byte array) is coming directly from web server.. The concept is:</p>
<p>1) I am sending various parameteres to web server and in return the web server is sending me an image of that particular ID.(Just an Image, not the URL)</p>... | 1 | 1,026 |
Not able to start JBoss 5.1 GA on windows 7 | <p>I have no clue about what am I wrong in here.</p>
<p><img src="https://i.stack.imgur.com/nLRaf.png" alt="enter image description here"></p>
<pre><code>C:\Program Files\JBOSS\jboss-5.1.0.GA\bin>run.bat
Calling C:\Program Files\JBOSS\jboss-5.1.0.GA\bin\run.conf.bat
================================================... | 1 | 4,940 |
get profile picture from facebook and set in imageview | <p>I retrieved details like userID, email, name, etc but I want to set user profile picture in my imageview.<br>
How can it be done?</p>
<pre><code>loginButton.registerCallback(callbackManager, new FacebookCallback<LoginResult>() {
String id;
String name;
String email;
String gender;
@Overr... | 1 | 1,406 |
How to install react-native-track-player | <p>I tried to install the react-native-track-player in a bare (just react-native init) App.</p>
<p>After</p>
<pre><code>yarn add react-native-track-player
yarn add react-native-swift
cd ios
pod instal
</code></pre>
<p>I got the message:</p>
<ul>
<li>[!] CocoaPods could not find compatible versions for pod "react-n... | 1 | 4,059 |
What is AppMeasurementService and why does Android Studio add this service to my app? | <p>I've recently started designing an app with Android studio and it seems Android Studio is adding things to my manifest without my knowledge.</p>
<p>For example it has added a service:<br>
<code>com.google.android.gms.measurement.AppMeasurementService</code></p>
<p>that I have no idea why it's there. And it also ad... | 1 | 1,438 |
Android OpenGL Transparent Texture Draws Black | <p>I'm trying to draw transparent textures (text) in my app. Strangely, it works on the newest Nexus 7 and on my second generation Moto X but on the original Nexus 7 the textures are just black. I've got blending enabled and the texture is 512x512 so it's not a power-of-two issue. I'm also just using GL10 which should ... | 1 | 4,582 |
Email .txt file as an attachment through Oracle Stored Procedure | <p>I have a .txt file in which I have stored my data Semicolon-separated.
The file is stored at backend in a <code>Clob</code>.</p>
<p><strong>File:</strong></p>
<p><code>ABCD;HEAD; 1.0;00204;18.05.2015;00000000;00000000000.00;18.05.2015</code></p>
<p>I need to send this text file as an attachment via Stored P... | 1 | 2,135 |
How to delete all event entries from a specific calendar from Google calendar API .NET | <p>I am trying editing a tool to allow a user to select from a list of their calendars and then clear all event entries / add new ones based on Microsoft project tasks.
Heres the original tool: <a href="http://daball.github.com/Microsoft-Project-to-Google-Calendar/" rel="nofollow noreferrer">http://daball.github.com/Mi... | 1 | 1,043 |
WCF throws FileNotFound exception for "System.ServiceModel" when creating ServiceHost | <p>I'm running into a really strange problem with WCF. I have 2 projects in a solution, each of them starts up some self-hosted WCF services.</p>
<p>Project 1:</p>
<pre><code>myService = new ServiceHost(typeof(MyService1));
</code></pre>
<p>Which runs fine. However, when I try to run my 2nd project, which contains:... | 1 | 1,966 |
Play Youtube video in background using youtube player api | <p>I have successfully played youtube video using <code>youtube player api</code>. But I need to run it in background on back button press.I have googled a lot but found nothing Please help me to achieve this.Thanks in advance</p>
<p>here is my code-</p>
<pre><code>public class FullscreenDemoActivity extends YouTubeF... | 1 | 2,319 |
Pass an expression to be evaluated from Java to JasperReports | <p>I created a report with three parameters which are:</p>
<ul>
<li>name (a String with default value "World")</li>
<li>money (an Double with default value 100)</li>
<li>formatter (default value new DecimalFormat("#,##0.00"))</li>
</ul>
<p>I retrieve two records from database:</p>
<ul>
<li>"\"Hello \" + $P{name}"</l... | 1 | 1,358 |
System.IO.File.Copy Error with file not found | <p>I am trying to create a image upload that can copy the image into a folder. The problem is that when I try to copy the photo to a folder, there is an error which says that it could not find the file. My code is below:</p>
<pre><code>private void btn_Click(object sender, EventArgs e)
{
DialogResult resul... | 1 | 1,836 |
JAXB multiple XSDs in input and duplicate types | <p>I am trying to generate Java code for two XSDs (let's say request.xsd and response.xsd) using JAXB</p>
<p>Request.xsd includes A.xsd which defines a complex type "FOO"</p>
<p>Response.xsd includes B.xsd which defines a complex type "FOO" too (different type with the same name). </p>
<p>Initially, I thought of add... | 1 | 3,270 |
C# FileStream creating new .csv file but not writing to it | <p>Hi I'm trying to write data to a .csv file. My code is creating the new file but isn't writing to it. Here is a shorter version of the code with the name, age, and sex variables already predetermined. In my actual application these variables come from textboxes (I have made sure that the data from the textboxes is a... | 1 | 1,078 |
okHttp doesn't cancel execute | <p>I am using:
Andorid Studio.
Okhttp 2.4.0 with AsyncTask. But I can't cancel a request.
Connected to server on wi-fi. And if server is off then okHttp keeps trying to connect, and I can't cancel it.
time outs is working but i want to cancel before timeouts</p>
<pre><code> private OkHttpClient client = new OkHtt... | 1 | 1,074 |
Database normalization for Addresses | <p>I am trying to build a database for a limousine company and I got stuck on how much Normalization should I do for Addresses related to Customers, Drivers, Affiliates and Orders.</p>
<p>Basically the Affiliate and Driver addresses look like this:
address_line_1, address_line_2, city, state, zipcode, country</p>
<p>... | 1 | 1,282 |
Find Xml attribute by value, and change its other value | <p>So, below I made a code which lists my 2 items in comboBox1 by its name(Selena and Maria) on load, and when I select one of those, lets say Maria, and click on button1, it populates my 3 textboxes with Maria's name,usn and pawd attribute values, and it looks like:
Display name: Maria
Username: mary26
Password: d4e5r... | 1 | 1,224 |
Pagination with AngularJS? | <p>I've tried pagination with AngularJS but I'm not able to implement certain things, like. </p>
<p>I'm able to navigate through using the '<strong>next</strong>' and '<strong>previous</strong>' but am not sure how to achieve it by just clicking on that particular '<strong>page number</strong>' <em>button</em>. And I ... | 1 | 1,164 |
Picasso Images are loading slow in android, why? | <p>The images from the Picasso libery are loading in the emulater after a few clicks and very slow. Why are they loading so slow? And what do I have to do to make them load faster. I tried it with png files and jpg.</p>
<p>Java code</p>
<pre><code> private int a;
ImageView ivImageFromUrl;
protected void onCreate(... | 1 | 1,093 |
JQUery Hide DIV clicking outside the DIV | <p>Let's assume i have the following control :</p>
<pre><code> <div class="slControlWrapper">
<div class="slControlLabel">
<asp:Label ID="lblSL" CssClass="lblSL" runat="server">Clickable Label</asp:Label>
</div>
<div class="slControlSeparator">
... | 1 | 4,712 |
iOS and SSL: Unable to validate self-signed server certificate | <p><br>
I'm fairly new to consuming webservices using SSL channel. After fairly good search I had found a way to perform SSL/HTTPS authentication using NSURLConnection delegate APIs. Following is the code snippet that does the actual authentication thing:
<br></p>
<pre><code>- (void)connection... | 1 | 1,164 |
How to Pass Multiple Objects via the Pipeline Between Two Functions in Powershell | <p>I am attempting to pass a list of objects from one function to another, one by one.</p>
<p><strong>First function</strong>: generate a list of users (objects) near expiry;
<strong>Second function</strong>: send an email to each user (object)</p>
<p>The first function works fine and outputs a group of objects (o... | 1 | 1,239 |
Keep the last selected path using OpenFileDialog / C# / .Net | <p>I want to keep the last path which is selected. This is the code: </p>
<pre><code>private void testFileButton_Click(object sender, EventArgs e)
{
fd = new OpenFileDialog();
fd.FileName = testParameters.testFileFile;
fd.InitialDirectory = testParameters.testFileDir;
if (fd.ShowDialog() == Dialog... | 1 | 1,740 |
Stop or Detection dll injection loadlibrary | <p>I want to detect dll injector.below code work as dll injector.I need Your help in c# source code which help me to detect then i will close my application.i search in google.com a lots but tired to get solution.please help and give me source code in c#</p>
<pre><code>public partial class Form1 : Form
{
[DllImpor... | 1 | 2,431 |
Localhost refused to connect on WSL2 when accessed via https://localhost:8000/ but works when using internal WSL IP adress | <h5>What I'm Trying to Achieve</h5>
<p>To access localhost from my local machine during the development of a Symfony web app.</p>
<h5>My Environment</h5>
<ul>
<li>WSL2 running on Windows 10</li>
<li>Linux, Apache2, MySQL, PHP-7.4 stack (with Xdebug3 intalled)</li>
<li>Debian 10</li>
<li>Symfony 5.4 (although not sure o... | 1 | 1,133 |
jQuery Steps stop next step if the input is not valid | <p>I have a simple form with jquery steps and jquery validate.</p>
<p>I have a lot of field with specific format (example: only accepting one of these numbers <code>/^(6|8|10|12)$/)</code>.</p>
<p>I'm using regex to check input format so that user know there is something wrong. For the moment, the wrong format just ... | 1 | 1,326 |
java.sql.SQLException: No suitable driver | <p>I have create one <strong>maven</strong> project.</p>
<p>I am try to connect MSSQL (Microsoft SQL Server 2014) with my J2EE application.
But it throws following exception</p>
<pre><code>org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
at org.apach... | 1 | 2,399 |
BadParcelableException: ClassNotFoundException when unmarshalling: (empty classname) | <p>I have a class named AllStatStruct. This class contains three attributes, which are objects of my classes StatStructCycle, StatStructHistory and MatrixStruct. Every class extends the class DataStruct and implements the Parcelable interface. In the implementation of the interface, every class is read and written by u... | 1 | 1,550 |
Swift string manipulation causing EXC_BAD_ACCESS | <p>I'm working on a time calculator to try to learn Swift, and I'm running into an issue where formatting the user's input is causing bad access errors.</p>
<p>Here is the code that's causing the crash (originally contained in a loop but broken up to try to find the problem):</p>
<pre><code>var outputString : String ... | 1 | 4,842 |
What's the proper way to request permission group Location at runtime in Marshmallow? | <p>I was trying to make a test app so I can play around with the LocationManager but I can't even get passed the new stupid permissions request at runtime. What am I doing wrong and why did they make this so confusing/complicated?</p>
<pre><code>public class MainActivity extends AppCompatActivity {
private static... | 1 | 1,092 |
Target WSGI script cannot be loaded as Python module - Flask | <p>I am trying to open the website in my browser at the appropriate IP address and I get a 500 internal sever error. I am using Digital Ocean and an Ubuntu 14.04 server with apache2. After I get the 500 error I run</p>
<pre><code>$ tail -f /var/log/apache2/error.log
</code></pre>
<p>and then I get the following</p>
... | 1 | 1,353 |
Excel VBA Grouping - HOWTO Multiple Groups in One Group Level | <p><strong>Excel Sheet Layout:</strong> 10 tables of data stacked vertically, with one blank row inbetween each table.</p>
<p><strong>Goal:</strong> Group & hide the blank data rows within each of the 10 tables (since not all rows in each table will return data).</p>
<p><strong>Code:</strong> Tests each table ind... | 1 | 2,676 |
VideoView don’t play m3u8-files | <p>I cannot get the player to play all of the m3u8 playlists. Without any problems, direct links to mp4 files are played. There are only 1-2 m3u8 files I managed to find which could be played (one of them is: <a href="http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8" rel="nofollow noreferrer">http://qthttp.... | 1 | 1,337 |
GCMRegistrar.register does not work | <p>I am Trying to use GCM on my app, but <code>GCMRegistrar.register</code> always returns empty string. Here is my Manifest :</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
</code></pre>
<p></p>
<pre><code><uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="17" />
<uses-per... | 1 | 2,951 |
Java.lang.IllegalStateException: attempt to re-open an already-closed? | <p>I got error from my Sqlite Android. I have code like this:</p>
<pre><code>public int UpdatePhotoUser(String foto_user, int metode) {
SQLiteDatabase db = this.getWritableDatabase();
ContentValues values = new ContentValues();
int update = 0;
if (metode == 1) {
values.put... | 1 | 1,576 |
Trying to Quicksort a linked list in python | <p>my professor has asked me to perform a Quicksort for a linked list. It is getting quite confusing as all the recursion and links are still very new to me. The issue seems to be with something unintentionally being assigned as None
This is my code so far:</p>
<pre><code>class Node:
def __init__(self, d, n):
... | 1 | 1,184 |
Using dependency injection over laravel facades | <p>I have read a number of sources that hint that laravel facade's ultimately exist for convenience and that these classes should instead be <a href="https://stackoverflow.com/a/33465977/817379">injected</a> to allow loose coupling. Even <a href="https://phpnews.io/feeditem/response-don-t-use-facades" rel="noreferrer">... | 1 | 1,184 |
How to configure http_upload error for prosody | <p>I am using conversation an android client for xmpp server. I have used prosody for the server and bought a domain to direct the ip. The app is working fine with the text messages, but it is giving me error can't connect to server. </p>
<p>i have tried seperate component for http_upload though i am using 0.10 versio... | 1 | 1,154 |
maven not creating jar correctly, creates folder instead? | <p>I have a dependency jReddit.jar in my local repo. When I build my project that has a reference to jReddit in it's pom, I keep getting error when server startup because it can't find jReddit.jar in the target web inf. I check the target web inf, and the jReddit is there, only its a folder and not a jar. It looks like... | 1 | 8,156 |
.NET 2 DataTables in one single DataSet | <p>I got a Dataset that fills a gridview. The gridview has to be filled with one dataset and multiple queries (or datatables in this instance).</p>
<p>As you can see in the code I used 2 DataTables. These Datatables are filled from a database (with sql server). The Datatables are added to one Dataset. In the ASP code ... | 1 | 2,280 |
jQuery reaching document.ready() despite .holdReady() call. Slickgrid error - Slick is not defined (5 out of range 4) error - dependencies | <p>In the following script utilizing jQuery and slickGrid, I keep getting an error saying <code>Slick is not defined (5 out of range 4)</code> or <code>Slick is not defined (6 out of range 4)</code> - Both in FireBug, and in Chrome I get:</p>
<pre><code>Uncaught ReferenceError: Slick is not defined
$.ready.$.css.opaci... | 1 | 5,398 |
groovy.lang.MissingMethodException: No signature of method: java.lang.String.name() is applicable for argument types: () values | <p>Java 1.8
Groovy Version 2.4.7</p>
<p>I am passing an xml to a variable called rollbackxmlResp, i am trying to parse and get the value of it.</p>
<p>Xmlcontents of <code>rollbackXmlResp</code> :</p>
<pre><code><?xml version=\"1.0\" encoding=\"EUC-JP\"?>
<Root>
<data>
<e... | 1 | 1,055 |
.Net Core 2.0 Authorization always returning 401 | <p>After adding <code>[Authorize]</code> to a controller, I'm always getting a 401 from it. While debugging, I see the <code>return AuthenticateResult.Success</code> being reached, but the code of the controller never is.<br>
What am I doing wrong?</p>
<p>Below is the code for my Startup class and Custom auth classes.... | 1 | 1,139 |
Getting an exception error when crawling with Scrapy | <p>I am starting to test Scrapy in order to crawl a site but when I test my code I get an error which I can't seem to understand how to solve.</p>
<p>Here is the error output:</p>
<pre><code>...
2012-12-18 02:07:19+0000 [dmoz] DEBUG: Crawled (200) <GET http://MYURL.COM> (referer: None)
2012-12-18 02:07:19+0000 ... | 1 | 1,618 |
SVN error while taking checkout using script | <p>I am getting below error when taking checkout from svn using a script.</p>
<pre><code>**[Test] $ /bin/sh -xe /tmp/hudson8576425899836211909.sh
+ sh /cvsrx/rxapp/build_dir/Jenkins_Scripts/test.sh
Could not load program svn:
Could not load module /opt/freeware/lib/libssl.so.
Dependent module /usr/lib/libcrypto.a(... | 1 | 1,050 |
How to zip more than 8 mono using a combinator function | <p>I'm enriching data by calling multiple web services for each item returned as the result of a previous webservice call (Ie - fanning out).</p>
<p>I'm using Kotlin, Spring Boot 2 and the new reactive WebClient.</p>
<p>In this snippet I'm showing just the code fanning out to the webservices, however in reality this... | 1 | 1,219 |
How to Bind The Database value in Datagridview textbox? | <p>I am using Windows form and C# and MySQL.</p>
<p>In that i add three unbound columns in Datagridview with the help of control tag witch is in Datagridview right top.</p>
<p>column1 is DataGridViewCheckBoxColumn.
column 2 and 3 is DataGridViewTextBoxColumn.</p>
<p>After that i wrote code to fill the Datagrid view.... | 1 | 1,176 |
Minimum configuration to make "Add Service Reference > Discover" work | <p>I have already a few WCF + Windows Service tested and working correctly as run as a Windows Service on remote dev machines. Except for one.</p>
<p>In order to debug, I tried to host the WCF (without the Windows Service) using the built-in "Add Service Reference" and then hosting it in visual studio (don't know what... | 1 | 1,038 |
Downloading a text file using Intent from FTP Server. | <p>I am downloading a text file from server using ftp connection.
But unfortunetly I am getting exception: </p>
<pre><code>android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.PICK dat=64.78.178.19 typ=vnd.android.cursor.dir/lysesoft.andftp.uri (has extras) }
</code... | 1 | 1,588 |
Android Mediaplayer buffering does not complete | <p>I have implemented a standard MediaPlayer like the one in the Android API sample. For some reason my video only buffers to something like 47% and then stops. I don't think it's an internet connection issue since it stops at 46% or 47% every single time. The file buffers and plays fine through the native android vi... | 1 | 3,202 |
ValueError: The number of classes has to be greater than one; got 1 | <p>I am trying to write an SVM following this tutorial but using my own data. <a href="https://pythonprogramming.net/preprocessing-machine-learning/?completed=/linear-svc-machine-learning-testing-data/" rel="nofollow noreferrer">https://pythonprogramming.net/preprocessing-machine-learning/?completed=/linear-svc-machine... | 1 | 1,078 |
Error when trying to send HTTP status code in Phoenix | <p>I am a Phoenix/Elixir beginner and am trying to write an API to allow users to sign up in my application.</p>
<p>The API endpoint works as expected unless I try to set the HTTP status code of the response. When I include lines A, B and C (indicated in the code below), I get a <code>FunctionClauseError</code> with t... | 1 | 1,457 |
How to parse this JSON which starts with two square brackets? | <p>I have a JSON File that starts with two square brackets. How do i parse the data from it?
The type of the JSON is class 'list'. I have gone though many Stackoverflow solutions but none of them helped. I am new to python and trying to use API extraction.</p>
<pre><code>[
[
{
"previous": null,
"stor... | 1 | 4,196 |
Header/Footer navigation react-router-dom and antd menu and router problems | <p>I am working on a reactjs application - and I've created two menus - header/footer -- I've noticed a bug on the "active" state when I navigate on the pages.</p>
<p>// Current problems</p>
<ol>
<li>When arriving on home page the home link is active on the header menu, but when clicking on the footer menu - privacy ... | 1 | 2,242 |
ioctl complains a tty device is not a tty device | <p>I am writing a program to open, setup, and write to a tty for rs485. I have played a bit with the tty device, and now I can't seem to open it anymore.</p>
<p>Here is the relevant code:</p>
<pre><code>int rs485_enable(const char *dev_name, const speed_t speed)
{
int fd = open(dev_name, O_RDWR);
if (fd < ... | 1 | 1,354 |
Gradle 5 with jdk 11 build failing due to java.lang.NoClassDefFoundError: org.gradle.api.internal.ClosureBackedAction | <p>I have upgraded my java application from gradle version 3.1 to 5.4.1 and jdk version from 8 to 11. I have also upgraded the gradle wrapper and build it with gradle-version 5.4.1 . When i try to clean my project with ./gradlew clean it gives the following error and fails on a line in build.gradle :</p>
<pre><code>a... | 1 | 8,219 |
Pipeline Groovy error with custom step and libary | <p>I have the following issue with my Jenkins 2.0 pipeline library and custom step</p>
<p>My <code>Jenkinsfile</code> from repo <code>X</code> contains:</p>
<pre><code>@Library('acme-pipelines@dev')
import acme.jenkins.*
node {
runGradle {
version = '3.3'
cmd = '--version'
}
}
</code></pre>
... | 1 | 2,178 |
Create Jar of maven spring boot project | <p>I have following POM</p>
<pre><code><groupId>CafeWebSocket</groupId>
<artifactId>CafeWebSocket</artifactId>
<version>1.0.RELEASE</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>... | 1 | 1,301 |
Read the Excel value using JSF | <p>I need to read an Excel file and display its content.
I have a backing bean code which reads a particular Excel file and displays its content in the console. I have to display the contents inside a text editor. Using PrimeFaces I have got the <code><p:fileUpload></code> and <code><p:editor></code>. </p>
... | 1 | 1,425 |
Performing a Sum or Grouped Query in SuiteScript 2.0 | <p>Can any give a solid example of how to perform a grouped or summed query, ie "<strong>How many sales orders has Jane Smith done this month</strong>" in suitescript 2.0. The NetSuite Help Center examples and docs for 2.0 are so scattered and half-baked imho.</p>
<p>Any help would be appreciated. Below is the code im... | 1 | 1,514 |
Class not found when unmarshalling: Parcelable (Android) | <p>I am trying to pass array of objects from one activity to another activity using parcelable. Here i faced this problem Class not found when unmarshalling: </p>
<p>First Activity code</p>
<pre><code> intent.setExtrasClassLoader(MenueItemDetails.class.getClassLoader());
intent.putExtra("menue",myArray);
</code></... | 1 | 1,114 |
Problem with install.packages ("stringi") on R | <p><strong>On windows 10, RStudio. I've tried using the command install.packages, but it aways appear this messages:</strong></p>
<pre class="lang-r prettyprint-override"><code>> install.packages ("stringi")
There is a binary version available but the source version is later:
binary source needs_c... | 1 | 1,101 |
React 16.3 Context API -- Provider/Consumer issues | <p>I have been doing some experiment on React 16.3.1 ContextAPI. and I encountered into something that I couldn't fathom. I was hoping I could use your help.</p>
<p><strong>Note:</strong> The problem have been solved but, its not the solution I am looking for. </p>
<p>Let start with first experiment on multiple compo... | 1 | 2,648 |
Cross-platform graphics 3D with .NET | <p>I'd like to program a .NET app that provides a 3D render of an animated world. I'm coding on a Windows PC, but many of my target audience will be on Linux.</p>
<p>There are a bunch of frameworks out there that look useful, categorised into high and low level as best I can:</p>
<p><em>Low Level Graphics</em></p>
<ul... | 1 | 1,070 |
Angular production error: Property does not exist on type 'object' | <p>I have an Angular 7 app that is retrieving data from two separate endpoints:</p>
<ol>
<li><code>http://localhost:1337/sms</code></li>
<li><code>http://localhost:1337/total</code></li>
</ol>
<p>I can successfully make a GET request to these endpoints in development. However, I get the following error when I run <co... | 1 | 1,216 |
Navigate to different screen from a button in a header | <p>I am using the new <a href="https://github.com/react-community/react-navigation" rel="noreferrer">React-navigation</a> from react-native. I have the navigation as follows:</p>
<p>StackNavigator:</p>
<ol>
<li>TabNavigator // HomeNavigation</li>
<li>TabNavigator // NotificationNavigation</li>
</ol>
<p>Full code:</p... | 1 | 1,025 |
Customise iOS8 Callout bubble (Swift) | <p>I want to customise the iOS8 MapView Callout bubble which get visualised when clicking on a MKAnnotationView. The Default bubble is a bit limiting (having only Title,Subtitle and 2 accessory view) so I'm struggling to find an alternative solution. Here two possible ways and the relative problems I'm facing:</p>
<p>... | 1 | 1,259 |
jQuery - dynamically loading ASP.NET partial view into modal | <p><strong>Question background:</strong></p>
<p>I have an MVC project where I am attempting to create a partial view <code>modal</code> content that is then concatenated to the rest of its respective <code>modal</code> markup and then finally appending to a 'main' <code>modal</code> div.</p>
<p><strong>The code</stro... | 1 | 1,039 |
error CS0119: 'ServiceClient' is a type, which is not valid in the given context | <p>I am getting <strong>error CS0119: 'ServiceClient' is a type, which is not valid in the given context</strong> in my project . In my project I have a web reference and in that I'm getting this error . The details are below. Please help guys as I don't understand how to solve this .</p>
<p><strong>CODE</strong></p>
... | 1 | 2,904 |
jQuery tabs - make current tab highlighted from separate navigation | <p>First question here as a user, so please take it easy on this noob!</p>
<p>Anyway, had a quick question concerning jQuery tabs. Not the UI version, rather, a different version. What I'm trying to do is be able to activate a link from a separate navigation area, but get the selected tab to appear as "current" Here's... | 1 | 1,117 |
onWebView No views in hierarchy found matching: WebView with JS enabled | <p>I am trying some basic webView testing:</p>
<pre><code>public class TheMainActivity {
@Rule
public ActivityTestRule<MainActivity> activityTestRule = new ActivityTestRule<MainActivity>(MainActivity.class, false, false) {
@Override
protected void afterActivityLaunched() {
... | 1 | 9,905 |
Java - ssh-tunneling to mysqldatabase with JSch | <p>I already tried to search for solutions through Google and Stackoverflow. There´re plenty of topics about this but nothing helped me out, yet.</p>
<pre><code>import java.util.logging.Level;
import java.util.logging.Logger;
public class GTEVDatabaseConnection {
private Connection connection = null;
private static ... | 1 | 3,319 |
How to work with HTTPS request in JQuery | <p>I am using JQuery ajax for authenticating username and password, however due to security reason I need to call HTTPS request.</p>
<p>Below is my <strong>JQuery Code:</strong> where I need to implement the HTTPS call.</p>
<pre><code> //Submitting the form
$("#loginDetails > form").submit(function()
{
//Hid... | 1 | 1,748 |
How to deserialize WCF message using OperationContract | <p>I succeeded in building a WCF client generated by svcutil.exe from the WSDL. Using the generated client proxy class I can call the web service of an external service supplier. I also succeeded in coding a message inspector, as I need to log both raw XML request and response as full SOAP message to the database.</p>
... | 1 | 1,058 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.