title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Typescript/yarn workspaces - Referenced project may not disable emit | <p>I'm trying to setup a monorepo project using typescript and yarn workspaces.</p>
<p>The project's structure looks like this:</p>
<pre><code>/example
/packages
/lib1
</code></pre>
<p>Example is an app that used the packages, for development purposes.</p>
<p>When I use <code>yarn tsc --build --force</code> I get the... | 2 | 1,175 |
How to pass a file as SOAP request to Mule SOAP client to consume service | <p>I have a flow which is exposing a webservice :-</p>
<pre><code><flow name="ServiceFlow" doc:name="ServiceFlow">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8082" path="mainData" doc:name="HTTP"/>
<cxf:jaxws-service serviceClass="com.test.services.schema.mainda... | 2 | 1,082 |
OPENCV : CUDA context initialization for different methods | <p>I'm working on a simple c++ program to evaluate the performance of some Opencv GPU methods (cv::cuda).
I am using Opencv 3.1 on Ubuntu 15 (with CUDA 7.5) with a GeForce 770. </p>
<p>I previously read that we need to initialize CUDA environment to avoid slow process at first call. So, I initialize my program with a... | 2 | 1,393 |
Android Studio, Gradle and Card.IO | <p>I am not sure how to get my project to build Card.IO with Gradle. My gradle file looks as follows:</p>
<pre><code>buildscript {
repositories {
maven { url 'http://download.crashlytics.com/maven' }
}
dependencies {
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
}
}
a... | 2 | 1,988 |
Web Scraping with c# and HTMLAgilityPack | <p><a href="https://i.stack.imgur.com/wSfdJ.png" rel="nofollow noreferrer">Screenshot of the code and error message+variable values</a> So, the goal is to take a word and get the part of speech of the word from its google definition. </p>
<p>I've tried a few different approaches but I'm getting a null reference error... | 2 | 1,677 |
Procedurally generate seamless fractal noise textures | <p>I have been generating noise textures to use as height maps for terrain generation. In this application, initially there is a 256x256 noise texture that is used to create a block of land that the user is free to roam around. When the user reaches a certain boundary in-game the application generates a new texture and... | 2 | 1,316 |
How to install a particular tagged commit of an R package | <p>I have a personal R package with helper functions that I use in various projects. However, I would like to get a project working with a particular version of the project and then keep adding code. I understand I could do this with branches, but I'd prefer to do it with commit tags. </p>
<p>Looking at the documenta... | 2 | 1,774 |
CSS menu: dropdown items display as block | <p>Since I am discovering and struggling with CSS dropdown menus, I hope you won´t mind this simple question. I have a fully functioning CSS dropdown menu, but just after I prevented the horizontal menu from wrapping (in case the browser would be resized), I am having trouble displaying the dropdown items below each ot... | 2 | 1,151 |
Google maps api v3 reporting key error | <p>I've been running a site to give directions for wedding guests to find hotels and B&B's in the area local to our reception. No issues with the API for a few months, did my homeowrk and the code is solid and working without issue.</p>
<p>Logged in this evening and I'm getting an invalid key error.
I've done the ... | 2 | 9,536 |
ion-view title does not show when using ng-if | <p>I am doing an intro screen for an app. This screen (3 slides) only appears when on new user. So the way I do it is:</p>
<ol>
<li><p>Default route is always going to this intro screen</p></li>
<li><p>From the intro screen controller, check (cookie) to see if the user has seen this screen before. The depending on tha... | 2 | 4,277 |
netbeans cannot connect to database accdb | <p>im using netbeans and i cant compile the code at my comptuer, it works at my friends computer</p>
<p>and im using microsoft access 2007 for database
im using windows 7 64 bit
so here is the error
is it driver error or what?</p>
<blockquote>
<p>run: Dec 19, 2012 7:26:55 PM DBConnect SEVERE: null
java.sql.SQLEx... | 2 | 2,063 |
Right slide secondary menu in android | <p>I got sliding menu lib from <a href="https://github.com/jfeinstein10/" rel="nofollow">here</a>, i dont no what is wrong here, in this right side slide menu appears but its blank. here is the code</p>
<pre><code>// customize the SlidingMenu
SlidingMenu sm = getSlidingMenu();
sm.setMode(SlidingMenu.LE... | 2 | 1,448 |
SQL - Complex Query LEFT JOIN with WHERE | <p>The query below is a simplified version of the query where i am having errors, this smaller query shown below previously had a where clause which was effectively nullifying my left joins.</p>
<pre class="lang-sql prettyprint-override"><code>SELECT FC_Name, COUNT(F.Findings_ID) AS 'No_of_Findings'
FROM FindingCatego... | 2 | 1,032 |
Append item after last div | <pre><code><div class="follower-list">
<?php if (!$publications) { ?>
Henüz paylaşılan bir yayın bulunmamaktadır.
<?php } else {
for ($i = 0; $i < count($publications); $i++) {
?>
... | 2 | 1,437 |
webview date picker works in android emulator but not on device? | <p>I've used the code example posted here <a href="https://stackoverflow.com/questions/10328117/display-android-datepicker-on-click-of-a-button-in-javascript/28792514#28792514">calling date picker from javascript</a> and this works fine in the android emulator. When I click on the date input box in web view, the androi... | 2 | 1,297 |
ASP.NET Core AddHostedService and AddSingleton relationship | <p>I was using AddSingleton and AddHostedService together to have a long running service (BackgroundService) in the backend while controllers accessing the same service to fetch data.
Here are what I found:</p>
<ol>
<li>If both AddSingleton and AddHostedService were used, the BackgroundService would be initialized twic... | 2 | 1,354 |
Struggling with webkit-transition in javascript | <p>I've tried a few variations of using webkit-transition that I've found from googling but I've not been able to get any to work. I have some audio controls that I make appear on a click event, they appear suddenly and jerky so I want to fade them in. The target browser is iOS so I am trying webkit extensions.</p>
<p... | 2 | 1,030 |
ClickOnce deployment fails to run from URL | <p>I'm having issue with opening a ClickOnce application from my WPF application.</p>
<p>When I try to open <code>http:/myServerName/ReportServer/ReportBuilder/ReportBuilder_3_0_0_0.application?</code> (note that one / is missing intentionally) in Internet Explorer, everything works just fine. <em>Report builder</em> ... | 2 | 2,622 |
Retrieving a particular data from webservice on android eclipse | <p>Can any one tell me how to retrieve a particular data from a web service on android eclipse.
I have done these things so far.Please let me how to mend this source if it is wrong.</p>
<p>please find my sources below.</p>
<p><strong>[WEB METHOD]</strong></p>
<pre><code>package com.android.backend;
public class Fah... | 2 | 1,613 |
Hibernate OneToMany with Mismatched Composite Primary Keys | <p>I have two tables in my database that are mapped together via composite primary key/foreign keys, and I'm having a hell of a time getting Hibernate to work with them. My database looks like this:</p>
<p><img src="https://i.imgur.com/3U6Kja9.png" alt="Simple ERD"></p>
<p>TABLE1 has a composite primary key of foreig... | 2 | 2,402 |
Unexpected Token : (colon) in Vue Typescript file | <p><strong>Update</strong><br>
It turns out the issue is related to the used boilerplate. A workaround is to not extract the TypeScript file, but instead keep it in the <code>.vue</code> file for now.</p>
<p>I'm getting this error in a simple Vue test project:</p>
<pre><code>ERROR Failed to compile with 1 errors
err... | 2 | 1,213 |
How to mock firebase cloud messaging under android with firebase-server | <p>I'm currently trying to <strong>mock firebase cloud messaging service</strong> for an Android unit test and I'm using <a href="https://github.com/urish/firebase-server" rel="nofollow noreferrer">firebase-server</a>, a web-socket emulator for firebase. </p>
<p>Normally, the AndroidStudio tool generates a <code>json<... | 2 | 1,219 |
What's going on in Apple LLVM-gcc x86 assembly? | <p>I'm interested in learning more x86/x86_64 assembly. Alas, I am on a Mac. No problem, right?</p>
<pre><code>$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source f... | 2 | 1,079 |
Remove a nested JSON object with particular key, value with Jackson | <p>I want to remove blob columns from JSON objects.
I need to check if any of the object has "@type": "blob", the entire column should be dropped.
Ex. following is a record from a DB. 'experience', 'hitpoints', 'name', 'uuid', 'image' (optional) are the columns. since the record has a blob column i.... | 2 | 1,269 |
How can I deploy my Spring Boot Application in Equinox OSGi Container. Getting BundleException: Error loading bundle activator | <p>My Activator class:</p>
<pre><code>package com.package.actprovider;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceListener;
import org.osgi.framework.ServiceRegistration;
import com.package.Application;
import org.osgi.framework.ServiceEvent;
/... | 2 | 3,194 |
How to send/"stream" video file to HTML5 video tag | <p>I've tried to send a video file into HTML5 <code><video></code>-tag.<br>
I've found a snippet which dates back to 2010 if not earlier.<br>
It's replicated all over the Internet and still circulates it, with some minor differences in code style, names, used Node.js API versions or libraries.<br>
I have some iss... | 2 | 2,070 |
Spring facet not working, intellij | <p>I had a project which worked, and then suddenly stopped. Spring was failing to inject </p>
<pre><code>@Configuration
@Order(2)
public static class RegularSecurityConfigurerAdapter extends WebSecurityConfigurerAdapter {
@Inject
private Environment env;
@Inject
private AjaxAuthenticationSuccessHandl... | 2 | 1,735 |
Free : Invalid Size : Valgrind | <p>I want to free a malloc by using valgrind :</p>
<p>I receive this error :</p>
<pre><code>MCM : 1900
free(): invalid size
Abandon (core dumped)
</code></pre>
<p>Here is the code I compile :</p>
<pre><code>char test[6][10] = {"MCM", "MCML", "MCMLXXXV", "MCMXC", "MM", "MMVI"};
int size[] = {3, 4, 8, 5, 2, 4};
f... | 2 | 1,546 |
ofstream::write() unhandled exception | <p>So I'm writing a logging library for logging all sorts of things, and when I ran a test on it, it kept on crashing. I narrowed the exception down to the writing function when I write the log message to the ofstream file. I parse the message and stuff, and then I have the actual call to ofstream::write(). here is the... | 2 | 1,331 |
Reactjs-router-dom and cordova always direct to file:///android_asset/www/index.html | <p>Ok so I've been following this method and attempting to create a <code>reactjs</code> application combined with <code>cordova</code>, followed every steps on this <a href="https://github.com/johnkmzhou/cordova-create-react-app" rel="nofollow noreferrer">link</a> and it was working fine but when I try to use <code>re... | 2 | 2,866 |
Java JTable sort with TableCellRenderer | <p>I'm somewhat new to Java and I'm having problems with <code>JTable</code> with sort and <code>TableCellRenderer</code>.</p>
<p>I have a table with 15 columns populated with values where on some columns I use the <code>TableCellRenderer</code> to change the color of foreground to green or red acording the values on ... | 2 | 3,629 |
Wait for asynchronous request result | <p>I would like somehow to asynchronously validate the pin in ABPadLockScreen since pins are not saved on the device. I'm using Alamofire for http requests along with PromiseKit to have promises. </p>
<p>I have tried to use <code>AwaitKit</code> but the problem is that i get into a deadlock. </p>
<p>I have also tried... | 2 | 1,871 |
Trying to make the player rotate perpendicular to the model's meshes. Unity | <p>I'm currently working on a school game project where i need to have the player climb walls and pick up stuff. I am currently stuck in figuring out how to make the player rotate perpendicular to where the model's faces are while he/she moves towards a corner of a wall as shown below.</p>
<p>Something like this:<a hr... | 2 | 1,100 |
Error in eval(expr, envir, enclos) : object 'X' not found | <p>Hello I have the following code</p>
<pre><code>train=jsonlite::fromJSON("/home/felipe/Templates/Archivo de prueba/databritanica.json")
map<-get_map(location="united kingdom" ,zoom=12,source="osm")
p <- ggmap(map) +
geom_point(data=train, aes(x=X, y=Y, color=factor(LSOA_name)), alpha=0.05) +
guides(col... | 2 | 1,646 |
django class based view got an error: 'get_context_data() keywords must be strings' | <p>I am doing migration on a django site, I rewrote the list_object view to class based view which inheritated from django.views.generic.ListView, but I got error when I create get_context_data method</p>
<p>My code here:</p>
<pre><code>class ForumView(ListView):
context_object_name = 'forum'
template_name = ... | 2 | 1,208 |
CannotResolveClassException: org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy | <p>When I am trying to run the JMX file from eclipse through java code, i am getting the error code and error as follows.</p>
<p>I have tried by adding plugin manager. </p>
<pre><code><!-- https://mvnrepository.com/artifact/kg.apc/jmeter-plugins-manager -->
<dependency>
<groupId>kg.apc</group... | 2 | 1,506 |
How can I solve the npm run dev error I'm facing after creating a new Laravel 7 project? | <p>I have created a new Laravel 7 project and after doing so, ran the command npm install and all the packages in my package.json were downloaded into the node_modules directory. Then i tried running the command npm run dev and keeps on failing.</p>
<p>I'm using the following versions</p>
<ul>
<li>PHP 7.4.11</li>
<li>L... | 2 | 1,335 |
EventReceiver to Create folder sharepoint 2010 | <p>I have this event receiver c# class that I am trying to implement on a Sharepoint site. It did not work. I have deployed it from visual studio 2010 after it was build ok. Does anyone see what is the problem? Is the code ok? or is the problem on the SP? Thank you.
- here is the new code </p>
<pre><code> using Sy... | 2 | 1,385 |
how to show error message on submit button? | <p>Can you please tell me how to show an error message on submit button click ?.I am getting an error message after running the program (when I write required :true). I need to show an error message when a user submits the form. I am using this plugin <a href="https://github.com/McNull/angular-febworms" rel="nofollow">... | 2 | 1,049 |
RadAjaxManager OnRequestStart is not fired when press for the second time on a button? | <p>RadAjaxManager OnRequestStart is not fired when press for the second time on a button.</p>
<p><strong>1. Button post back working good.
2. No javascript error.</strong></p>
<p>Code Here:</p>
<p><strong>Rad code block</strong></p>
<p></p>
<pre><code> <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"&... | 2 | 1,425 |
Passing data to a function inside ngAfterViewInit() - Angular 6 | <p>I am new to codding, I am created a canvas in angular, and I am trying to pass data
That I am receiving from my server to my function inside <code>ngAfterViewInit()</code>.</p>
<p>The thing is when I am hard coding the values that I want to pass it works great,
But if I passing this data after I received it from m... | 2 | 1,752 |
Word Break/ Word Wrap not working in jsf panel | <p>I have a jsf page with 3 panels and each panel and columns are assigned css as below. I gave word wrap to each column b but sometimes word wrap does not work. I tried giving a width = 33% for each induvidual panel but still didnt seem to work. Can anyone help me on this?</p>
<pre><code><ui:composition xmlns="htt... | 2 | 2,602 |
How to use Oracle sequence with Hibernate + Spring | <p>Inside my entity class</p>
<pre><code> package com.entity;
// Generated May 23, 2015 10:43:49 PM by Hibernate Tools 4.3.1
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Gene... | 2 | 4,470 |
Save newly created object ASP.NET MVC | <p>I'm using EF Code First and here is my class which references a Professor object.</p>
<pre><code>public class Mark
{
public int MarkId { get; set; }
[Required(ErrorMessage = "Please provide Grade")]
[Display(Name = "Grade Value")]
public int MarkValue { get; set; }
[Requ... | 2 | 1,473 |
Full screen overlay menu (pure css) - Close it by clicking the menu link | <p>HTML</p>
<pre><code><input type="checkbox" id="op">
</input><div class="lower">
<label for="op">click the text</label>
</div>
<div class="overlay overlay-hugeinc">
<label for="op"></label>
<nav>
<ul>
<li><a href="#">Home</a... | 2 | 1,483 |
How to use form builder in codeigniter? | <pre><code><?
$form_options = array(
array(/* Name */
'id' => 'name',
'placeholder' => 'Please Enter Name',
'name' => 'name',
'type' =>'text',
'label' => 'Name:'
),
array(/* Email */
... | 2 | 1,430 |
Enable Disable button on the basis of grid row | <p>Hi I have a grid control where i am binding list of stickers. On the above of grid , that is out side grid i have two buttons Create Sticker and Void Sticker.
Sticker basically have three properties Active , Void and Expired displayed as text in column. There is condition of adding only one sticker at a time. Also i... | 2 | 1,748 |
Spring Swagger2 integration ServletContext autowiring issue | <p>I'm running Spring 4 mvc with embedded Jetty 9.
I tried to plug in Swagger2 tool, but I faced next exception </p>
<p><code>Error creating bean with name 'documentationPluginsBootstrapper'</code></p>
<p>the root cause of this exception is </p>
<pre><code>nested exception is org.springframework.beans.factory.NoSuch... | 2 | 1,504 |
WordPress add meta box allow HTML | <p>I have set up a Meta box which all works fine, however I want to accept HTML, or the just the class really. I have tried to code in this to work however it doesn't and I'm not sure why this is.</p>
<p>My code is:</p>
<pre><code>/**
* Adds a box to the main column on the Page edit screens.
*/
function myplugin_ad... | 2 | 1,283 |
Cannot install php 8.0 on ubuntu, E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy Release' does not have a Release file | <p>I am trying to install LEMP on vultr's Ubuntu 22.04 server.
I can install Nginx <code>sudo apt install -y nginx</code> - no problem.</p>
<p>But when I try to install php8.0 by running these commands</p>
<pre><code>sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
... | 2 | 1,365 |
Password Validation Not Working For Flask Form | <p>I'm trying to implement a form where I want a message to be shown in advance if passwords don't match. I have added a data required validator but password matching validator isn't working.</p>
<p>Here's how a data required validator looks like, I want a similar password matching validator.</p>
<p><a href="https://i.... | 2 | 1,401 |
Aggregation using mathematical operations MongoDB | <p>Good afternoon, how could you make the following query: 10% discount on each of the prices ("Precios") of the items.</p>
<p>I am trying to use the query:</p>
<pre><code>db.tienda.aggregate( [
{
$project: {
"Productos.Nombre": 1,
"Productos.Precio": 1,
"Descuento"... | 2 | 1,395 |
Error with OAuth2Strategy that requires a CLIENTID | <p>I have some error when I start my app :</p>
<pre><code>/api # yarn start
yarn run v1.21.1
$ nodemon server-express.js
[nodemon] 1.19.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching dir(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node server-express.js`
/api/node_modules/... | 2 | 1,047 |
Kendo Grid - PopUp Editing: Differentiate between 'Edit' and 'Add' | <p>I have a Kendo grid which has custom edit buttons and a toolbar which allows you to add new. </p>
<p>The edit/new functionality uses only one template.</p>
<p>How can I tell if I am in 'Edit' mode vs 'New' mode.</p>
<p>My code(Kendo Grid):</p>
<pre><code> @(Html.Kendo().Grid(Model.OtherBreeds)
.Nam... | 2 | 1,150 |
Error on compiling Android App in Eclippse ? | <p>I have freshly installed Ubuntu OS , installed Eclipse and then added Android sdk as well as running ABD fine.But while compiling on Simulator or Device I am getting the following error on console</p>
<pre><code> [2011-11-04 22:28:25 - dealkart] ERROR: Unknown option '--no-crunch'
[2011-11-04 22:28:25 - deal... | 2 | 4,626 |
Bootstrap Datatables Sorting by part of cell contents | <p>I am having trouble sorting my Datatable. I have a column that shows players in a server like this "0 / 50", when I try to sort that column it doesn't sort the numbers properly. It will show in order like this:</p>
<ul>
<li>0 / 50</li>
<li>10 / 30</li>
<li>2 / 40</li>
<li>3 / 30</li>
<li>4 / 30</li>
<li>9 / 25</li>... | 2 | 1,355 |
Selecting data within multiple DATE (year) ranges into named columns SQL Server | <p>I have to select data from a SQL Sever table for multiple date range i.e. </p>
<pre><code>1990-1994, 1992-1996, 1994-1998, 1996-2000, 1998-2002, 2000-2004,
2002-2006, 2004-2008, 2006-2010, 2008-2012, 2010-2014
</code></pre>
<p>I have used this query to get data without DATE ranges i.e. </p>
<pre><cod... | 2 | 1,169 |
"...because this call is not awaited" | <pre><code>using System;
using System.Net.Sockets;
using System.Threading.Tasks;
namespace Rohan.Gateway
{
public class Player
{
private PlayerSocket _mapSocket;
private PlayerSocket _clientSocket;
public int _characterId = -1;
public int _characterType = -1;
public str... | 2 | 1,470 |
C++ Boost read_json crash and I had #define BOOST_SPIRIT_THREADSAFE | <p>Recently other people upgraded our boost library, now I see this coredump when a read_json function is called heavily. Never seen this before. And I have #define BOOST_SPIRIT_THREADSAFE in the code, that's why this didn't happen before. Really need help!Thanks!</p>
<p>Program terminated with signal 11, Segmentation... | 2 | 2,869 |
Kotlin spring JPA. lateinit property has not been initialized exception from getting lazy field of JPA entity | <p>I use Spring Boot, Hibernate, Kotlin</p>
<p>In build.gradle.kts:</p>
<pre><code>apply(plugin="org.hibernate.orm")
tasks.withType<org.hibernate.orm.tooling.gradle.EnhanceTask>().configureEach {
options.enableLazyInitialization = true
options.enableDirtyTracking = true
options.enableAssoci... | 2 | 1,076 |
How to use tf.FixedLenFeature with tf.string with parse_example and input_from_feature_columns? | <p>I have some data stored in TFRecords, with some categorical data stored in byteslist. I am able to examine the data by hand and verify that the data are there. One Example record looks like:</p>
<pre><code>features {
feature {
key: "label"
value {
int64_list {
value: 1
}
}
}
fe... | 2 | 1,095 |
Getting audio files from storage | <p>I am trying to get all the audio files from device both internal and external storage .so i am using mediastorage and cursor .But I am not able to get any proper example of song retrieval. </p>
<p>I used this code:</p>
<pre><code>public class MainActivity extends ListActivity {
Cursor cursor;
@Override
protected ... | 2 | 1,402 |
Why is protobuf-net deserializer so much slower in my code than streamreading csv | <p>I store simple time series in the following format and look for the fastest way to read and parse them to "quote" objects: </p>
<p>DateTime, price1, price2
.
.
.
DateTime is in the following string format: YYYYmmdd HH:mm:ss:fff
price1 and price 2 are strings of numbers with 5 decimal places (1.40505, i.e.)</p>
<p>... | 2 | 1,440 |
unable to install particular version of mini_racer gem | <p>I am trying to set up my local environment for a particular repository when I came across this error.</p>
<pre><code>An error occurred while installing mini_racer (0.1.15), and Bundler cannot continue.
Make sure that `gem install mini_racer -v '0.1.15' --source 'https://rubygems.org/'` succeeds before bundling.
</c... | 2 | 1,334 |
Connection is open and is not closed in asp.net | <p>Hello Friends i am trying to develop a shout box in asp.net but it ends with an error The connection was not closed. The connection's current state is open. Can you please help me out what is the problem in my code .</p>
<pre><code>Shout.aspx.cs
using System.Data;
using System.Data.SqlClient;
using System.Linq;
us... | 2 | 2,213 |
State of calling activity after startActivityForResult and Home key is pressed | <p>I have a launcher Activity called <code>HomeActivity</code>.</p>
<p>And a <code>LoginActivity</code> from where the user has to login to access the other screens.</p>
<p><code>HomeActivity</code> is marked as <code>singleTask</code>.</p>
<p>In HomeActivity's <code>onCreate()</code> method, I launch the <code>Logi... | 2 | 1,309 |
Spark Connection refused for BlockManager process | <p>I have a 7 node cluster setup on CentOS VMs in on-prem fashion.
Earlier the VMs were co-located and everything used to work fine, but since yesterday as the VMs have been spread across the data centre (But in same rack), I am facing <code>Connection refused</code> and <code>IOException: Failed to connect to</code> e... | 2 | 4,204 |
VSCode: How to enable links in a webpage in the Webview | <p><code>vscode.previewHtml</code> got deprecatd in favour of Webview.
I updated my <a href="https://github.com/Denis-net/vscode-ahk-manager" rel="nofollow noreferrer">ahk extension for vscode</a> using this new API.
With <code>hh.exe -decompile Docs AutoHotkey.chm</code> I got a local website version of the main AutoH... | 2 | 1,460 |
python import conflict with flask-security | <p>I run into this "import conflict" fairly often I'm trying to find the most Python way to solve it. My app's <code>__init__</code> instantiates <code>db</code> and over in my <code>user.models</code> file, <code>db</code> is referenced extensively. However, to use Flask-Security, I need to initialize the <code>user_d... | 2 | 1,756 |
How do I get the index out of the optional func didMoveToPage? | <p>I am using uacaps/CAPSPageMenu in my app and I cannot figure out how to get the number of the active page so I can show a webpage corresponding to the page. In the code CAPSPageMenu.swift the following code is used.</p>
<pre><code>import UIKit
@objc public protocol CAPSPageMenuDelegate {
// MARK: - Delegate functi... | 2 | 2,307 |
How to call php-cgi from c++ | <p>So I'm writing a web server (I know, like the world needs another one!) And I want to call php through CGI. I've got a nice working CGI1.1 implementation good enough to run perl cgi scripts for example.</p>
<p>Now I want to run php. But when my cgi module calls the php program it returns a 404.</p>
<p>How do I get... | 2 | 1,534 |
How to wait for downloading thread to finish and then return without blocking UI thread? | <p>I am trying to make a class to download an image, store it and then return it as a <code>Drawable</code>. The file need not be downloaded multiple times, but only just the first time.</p>
<p>Here is my class :</p>
<pre><code>package com.ishan.drawabletest;
..........................
public class DrawableProvider e... | 2 | 1,244 |
Problem using a proxy with Java under Lotus Notes | <p><br>
I've been searching the whole web for a problem that I have with a lotus notes agent. Here is my resquest.<br>
I need to retreive a Webservice (in Java) from an agent in Java too. The problem is that the agent must run on the server because the Jar file cannot be installed on every computer. Now, on the client'... | 2 | 1,780 |
Out of bounds exception - 2D array maze | <p>I am new here and new to coding in general! It's exciting to learn but tedious as ever. I am writing a program where a char needs to solve a maze. I am no where near finished here, but for some reason I am getting an out of bounds exception on any array greater than 3 in length. I have no idea why. There are test ca... | 2 | 3,307 |
Obtain styled attributes for child from parent's style definition | <p>The question title is probably nonsensical. I am creating a bunch of custom views that will be placed in a single parent layout - a custom <code>FrameLayout</code>. </p>
<p>These custom views have their own style attr which are set using the parent's style attr. </p>
<p>As an example, consider <code>Parent</code> ... | 2 | 1,285 |
Transparent background for custom AlertDialog | <p>Strangely, this was working fine, this is how it looks on my app released on Google Play:</p>
<p><a href="https://i.stack.imgur.com/2nxFC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2nxFC.jpg" alt="enter image description here"></a></p>
<p>And this is how it looks now:</p>
<p><a href="https... | 2 | 1,640 |
Unable to make aiohttp requests on AWS Lambda due to "TypeError: A Future or coroutine is required" | <p>I want to make async API get requests on my aws lambda (runtime is python 3.6). I originally tried to use grequests but I don't know how to compile that into a linux compatible bundle to import to AWS lambda (I would encounter the "Gevent is required for grequests error"). Instead, now I am using aysncio/aiohttp. It... | 2 | 1,219 |
Any method of passing the Json data in URL format using JSONObject? | <p>I create a java URL class which contain my Json data and have some function to obtain back my json data for doing some data comparison, I found out it's might not support by JSONObject for passing the data into the JSONObject. Do I need to use JSONArray in my case because my JSON data have array structure as well? <... | 2 | 1,724 |
How to use the http.get method in angular to fetch the json data? | <p>I created a funnel chart in java script . And converted into angular And now I'm trying to use the http.get method in angular to fetch the json data. And I'm stuck here and got confused in this part</p>
<p>And now let me show u my code part</p>
<p>---index.html--- </p>
<pre><code><!DOCTYPE html>
<... | 2 | 2,499 |
C# Sending Serial Commands to Arduino | <p>I am using an Arduino Mega 2560 board to control a strip of LED's. I am trying to use a short C# console program to send serial commands to my Arduino program. In Arduino, I have a library called SerialCommand where I can read a serial string and use it to execute a function and also pass along arguments like so: ... | 2 | 1,091 |
Spring Security RememberMeAuthenticationFilter not fired | <p>Im trying to integrate RememberMe functionality inside a Spring 3 webapp.
The app is working good and doesn't show any other problem.</p>
<p>When I enable the "remember me" check, the cookie is correctly created and sent with any request (i've tested it with Firebug and Chrome DevExtensions).</p>
<p>When I close a... | 2 | 1,211 |
Flutter FutureBuilder snapshot returns Instance of 'Object' instead of data | <p>i am new to flutter and trying to display data from a http post</p>
<p>referencing from [1]<a href="https://flutter.dev/docs/cookbook/networking/background-parsing" rel="nofollow noreferrer">https://flutter.dev/docs/cookbook/networking/background-parsing</a> and [2]<a href="https://flutter.dev/docs/cookbook/networki... | 2 | 1,999 |
Need guidance on a Google Map application that has to show 250 000 polylines | <p>I am looking for advice for an application I am developing that uses Google Map.</p>
<p><strong>Summary:</strong>
A user has a list of criteria for searching a street segment that fulfills the criteria. The street segments will be colored with 3 colors for showing those below average, average and over average. Then... | 2 | 1,863 |
How to Decode Compressed Binary .RAW Files from LTspice with python | <p>I am trying to read from .raw LTSPice files. In the Control panel of LTSPice, there is a possibility to switch between ASCII and binary compression. ASCII is readable without a problem, but it has drawbacks in size and performance, and that's the reason why I want to use binary compression. There is a possibility to... | 2 | 2,378 |
XPC connection interrupted for Xcode 9 | <p>I am a newcomer to Xcode and swift. I am trying to build a tic-tac-toe app, but when I run it, nothing happens. The screen is black. Then in the debugging area it says: "XPC connection interrupted." I tried restarting the simulator and my computer. The same thing still happened.
Just in case you need it, here is my ... | 2 | 3,399 |
how to solve TypeError: list indices must be integers or slices, not str in python | <p><strong>The Situation</strong></p>
<p>I am trying to access values within a json string but receive the error:</p>
<blockquote>
<p>TypeError: list indices must be integers or slices, not str</p>
</blockquote>
<p><strong>The JSON</strong></p>
<pre><code> j={
"type": "FeatureCollection&qu... | 2 | 1,471 |
android: paths to become part of the bitmap when requested | <p>I am learning on canvas and bitmap with paths and currently working on a drawing app where user can draw paths freely on the extended view.
The app also allow allowing user to import bitmap as the background and draw on it. </p>
<p><strong>Extending the View named DoodleView:</strong></p>
<pre><code> public Doo... | 2 | 1,688 |
Android webdriver sample Test run failed: Instrumentation run failed due to 'Process crashed.' | <p>System Info: </p>
<ul>
<li>win7x64 </li>
<li>android sdk 2.3.3</li>
</ul>
<p>when I'm running android-sdk\extras\google\webdriver\TestAnAndroidWebApp</p>
<p>I got an error: <strong>Test run failed: Instrumentation run failed due to 'Process crashed.</strong></p>
<p>The test failed when it executes the line 'Web... | 2 | 7,696 |
Leaflet with Webpack in Rails 6. L.timeline is not a function | <p>This looks just like the question @rossta answered for <a href="https://stackoverflow.com/questions/59042437/gmaps-with-rails-6-webpack">Gmaps</a>, but I don't understand the problem and answer well enough to make his suggestion work.</p>
<p>The error is: <code>Uncaught TypeError: L.timeline is not a function
a... | 2 | 1,705 |
Laravel Mix Vuejs component Syntax error on <template /> | <p>I'm using a Windows 10 OS for development and I created a laravel 8, mix with VueJs project. The file on my <code>./components/app.vue</code> is returning a <code>SyntaxError: Unexpected token (1:0)</code></p>
<p>This is what's inside the app.vue file</p>
<pre><code><template>
<div>
Event Cal... | 2 | 1,164 |
WCF : In what layer to perform translation of POCO Entity to DTO? | <p>This is a follow-up for my question from <a href="https://stackoverflow.com/questions/10278956/where-to-place-dto-entity-translator-in-wcf-service">here</a>.</p>
<p>First of all, I am <strong>not using</strong> DDD in my project.</p>
<p>I have a WCF service with 3 layers:</p>
<ul>
<li>The <strong>service layer</s... | 2 | 2,005 |
Load data from json file with listAction on jTable | <p>I m a new bee in java...
cant work it out and i m sure its very easy so i was wondering if anyone can help me,,pleaseee...
so, i want to view my json data in html using jTable pluging ,,,please some help
using netbeans my test.json file is in the format </p>
<pre><code> {
"Result": "OK",
"TotalRecordCount": 23,
"R... | 2 | 1,877 |
SignalR .Net Client fails with 500 server error on device, on simulator works fine | <p>I'm trying to implement a chat in my app, with azure asp.net web api on back-end and xamarin ios on front-end.</p>
<p>So on back-end I configure my hub with this lines:</p>
<pre><code> var hubConfiguration = new HubConfiguration();
hubConfiguration.EnableDetailedErrors = true;
app.MapSignalR... | 2 | 2,079 |
constraint layout performance as recyclerview item | <p>ConstraintLayout version: 1.1.0 stable.</p>
<p>I am using ConstraintLayout as recyclerview item layout, xml file looks like this:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app=... | 2 | 3,511 |
Metal much slower compared to OpenGL while rendering small textures on a large texture | <p>I am trying to migrate my projects from OpenGL to Metal on iOS. But I seem to have hit a performance wall. The task is simple...</p>
<p>I have a large texture (more than 3000x3000 pixels). On which I need to draw several (a few hundreds) small textures (say 124x124) on each touchesMoved event. And this is while ena... | 2 | 2,093 |
maven surefire plugin executes excludes also | <p>I have the following configuration for using maven-surefire-plugin to execute my integration tests and unit tests..</p>
<pre><code><plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<ver... | 2 | 1,418 |
How to extract data from Finnhub.io? (importing JSON to pandas dataframe) | <p>I am a beginner in any code language. </p>
<p>I want to model and explore data from stock markets, so I tried importing from finnhub, as they suggest.</p>
<pre><code>import requests
import json
r = requests.get('https://finnhub.io/api/v1/stock/candle?symbol=QQQ&resolution=1&from=1572651390&to=157291059... | 2 | 1,327 |
Fastlane Match fails to verify certificates and profiles | <p>I'm trying to run <code>fastlane match appstore</code>. It successfully decrypts the cert repo, says it successfully logs in to Apple Dev Portal, generates a cert and installs it.</p>
<p>But it always fails at "Verifying certificates..." like this:</p>
<pre><code>[13:48:03]: Starting login with user 'xxx@y... | 2 | 2,521 |
How to Add and Remove xml tags of existing data inside xmltype column in oracle | <p>I have created the following table:
<a href="https://i.stack.imgur.com/bKZoh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bKZoh.png" alt="enter image description here"></a></p>
<p>Here is 1 data row sample:</p>
<p><a href="https://i.stack.imgur.com/xH7KK.png" rel="nofollow noreferrer"><img sr... | 2 | 1,084 |
How to create mouse look using the new input system? | <p>I'm trying to create a smooth mouse look for my First-Person game. using the new input system like so:</p>
<pre><code>public class MouseLook : MonoBehaviour
{
[SerializeField] float sensitivityX = 8f;
[SerializeField] float sensitivityY = 0.5f;
float mouseX, mouseY;
[SerializeField] Trans... | 2 | 1,150 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.