title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
loading spinner using rxjs BehaviorSubject | <p>I created a loading spinner component for my <strong>angular 4</strong> app that should show during AJAX calls but I have trouble displaying it with a subscription to a <strong>BehaviorSubject</strong>.</p>
<p>This question is related to <a href="https://stackoverflow.com/questions/44940104/how-to-show-a-spinner-ti... | 1 | 1,499 |
Out Of Memory Exception - Using SqlDataReader and OpenXML | <p>Edit:</p>
<p>Due to memory issues, I am attempting to now use: <a href="http://blogs.msdn.com/b/brian_jones/archive/2010/06/22/writing-large-excel-files-with-the-open-xml-sdk.aspx" rel="nofollow">http://blogs.msdn.com/b/brian_jones/archive/2010/06/22/writing-large-excel-files-with-the-open-xml-sdk.aspx</a></p>
<p>... | 1 | 1,602 |
Configuring Minio server for use with Testcontainers | <p>My application uses <a href="https://min.io" rel="noreferrer">Minio</a> for S3-compatible object storage, and I'd like to use the Minio docker image in my integration tests via <a href="https://www.testcontainers.org" rel="noreferrer">Testcontainers</a>.</p>
<p>For some very basic tests, I run a GenericContainer us... | 1 | 1,220 |
npm install and fails on node-gyp rebuild with ```gyp: No Xcode or CLT version detected!``` caused by new macos catalina update | <p>gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: <code>gyp</code> failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/Users/synapse/.nvm/versions/node/v8.8.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:344:16)
gyp ERR! stack at emitTwo (even... | 1 | 1,210 |
Python- IndexError: list index out of range, while in for loop | <p>I'm new to python. I am trying to write a code to take input from text file like</p>
<pre><code>6 6
* o o o o *
o o * o o o
o o * o o *
o o * o o o
o o o o * o
o o o o o o
</code></pre>
<p>and count the number of "*" near each string and update each string with the new count like:</p>
<pre><code>6 6
* 2 1 1 1 *
1... | 1 | 1,194 |
TypeError: expecting numeric data | <p>I am having trouble figuring out what this error means as there is not much help with this question online already.</p>
<p>Is it saying that my Oracle table needs to only receive numbers not letters? That can't be the case because I have my columns set to allow <code>VarChar</code> so that both numbers and letters ... | 1 | 4,356 |
IllegalArgumentException: Navigation action/destination packagename/action_xxx cannot be found from the current destination | <p>I am having an issue with the Android Navigation Architecture component when I try to navigate from one Fragment to another within a viewpager, I get this error:</p>
<pre><code>java.lang.IllegalArgumentException: Navigation action/destination
com.gigaweb.mysales:id/action_mainFragment_to_addTransactionFragment cann... | 1 | 1,545 |
ERROR 1054 (42S22): Unknown column '' in 'where clause' | <p>The MySQL query got following error.</p>
<blockquote>
<p>ERROR 1054 (42S22): Unknown column 'scope.full_name' in 'where clause'</p>
</blockquote>
<p>Here are two tables as below.</p>
<p>1.scope:</p>
<pre><code> +-----------+----------+-------------+--------------+------+----------+--------------+
| handle_... | 1 | 1,451 |
Android app crashes with Vitamio Library | <p>I have wrote a simple code for streaming videos on Android App. I have used Vitamio Library, followed all necessary steps to integrate into the project. The Video doesn't play and the App crashes when loaded.</p>
<pre><code>package com.test.bufferapp;
import io.vov.vitamio.LibsChecker;
import io.vov.vitamio.MediaP... | 1 | 7,275 |
Android ScrollView inside LinearLayout | <p>I have problem with layout (buttons) in Andoid. What I want is to display buttons inside ScrollView but the ScrollView must be below a RelativeLayout or with other words, the first two buttons from the ScrollView are not displayed on my phone..</p>
<p>here is the picture:
<a href="https://i.stack.imgur.com/goDAw.jp... | 1 | 1,410 |
How to copy a range of data to another google sheet using google apps script? | <p><strong>Source:</strong>
<a href="https://i.stack.imgur.com/OElZQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OElZQ.png" alt="enter image description here" /></a></p>
<p><strong>Destination:</strong>
<a href="https://i.stack.imgur.com/n6EFE.png" rel="nofollow noreferrer"><img src="https://i.st... | 1 | 1,147 |
Invalid type for Http* method: system.RestRequest in apex | <p>Hi i am trying to create an apex rest service but getting error
Invalid type for Http* method: system.RestRequest</p>
<p>here is the function where i am getting this error .</p>
<pre><code> @RestResource(urlMapping='/v.9/scorecard/*')
global with sharing class ScorecardRestSvc {
/**
* @date July 26, 2011
... | 1 | 2,832 |
multiply two varchars in sql | <p>This what I have tried but it is giving errors:</p>
<pre><code>MariaDB [test]> create table table1 (length varchar, breadth varchar);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server ver... | 1 | 2,850 |
C# Windows Service Events | <p>So I am just messing around here nothing production just proof of concept with my first ever Windows Service.</p>
<p>I am trying to essentially create a windows service that sits as the listener for a signalr connection. In essence, I will have a windows application and a windows service. The win service will handl... | 1 | 1,708 |
StackExchange.Redis - Is it possible to prioritize Endpoints? | <p>My setup:</p>
<ul>
<li>4 Windows servers</li>
<li>A Redis Node and a Sentinel Process on each of theses servers</li>
<li>The same webapplication deployed on each of these servers</li>
<li>The webapplication connects to the redis servers via the StackExchange.Redis driver</li>
</ul>
<p>Everything works great but I ... | 1 | 1,027 |
TLS/SSL with System.IO.Pipelines | <p>I have noticed the new System.IO.Pipelines and are trying to port existing, stream based, code over to it. The problems with streams are well understood, but at the same time it features a rich echosystem of related classes.</p>
<p>From the example provided here, there is a small tcp echo server.
<a href="https://b... | 1 | 1,756 |
Android 11 Media store - cannot record new videos on relative path. It works with Environment.DIRECTORY_MOVIES path but not not with sub folder | <p>My code runs perfect on any Android lower then Android 11.
On Android 11 (specifically on Pixel2 & Pixel3 emulator and real devices) the file descriptor fail to find the file after inserting it to the media store.</p>
<p>If I change the relative path on the second line to be only the Environment.DIRECTORY_MOVIES... | 1 | 1,562 |
Can't extract mp3 audio from video with ffmpeg | <p>My input is a .mp4 video file.</p>
<p>Try #1</p>
<pre><code>ffmpeg -i pipe:0 -y -map a media/73.mp3
</code></pre>
<p>Error:</p>
<pre><code>ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers
built with Apple LLVM version 8.1.0 (clang-802.0.42)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3... | 1 | 1,648 |
CALayerInvalidGeometry exception during HTML5 video play | <p>After updating to the iOS 4.2 SDK, I receive the following exception in my app:</p>
<pre><code>Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 22]'
</code></pre>
<p>(Please see below for the copy of call stack)</p>
<p>Details:</p>
<p>'- <code>UIWeb... | 1 | 1,491 |
Syntax error or access violation: 1253 COLLATION 'utf8_unicode_ci' is not valid for CHARACTER SET 'utf8mb4' | <p>MySQL 5.6 database calling a stored procedure.</p>
<p>I can find nowhere in the database where utf8mb4 is set on anything.</p>
<pre><code>+----------------------+-----------------+
| Variable_name | Value |
+----------------------+-----------------+
| collation_connection | utf8_general_ci |
| col... | 1 | 1,800 |
Cross-Origin Request Blocked: Azure App Service Issue | <p>Any Ajax / JQuery call to APP Service(<a href="http://xxxx.azurewebsites.net" rel="nofollow noreferrer">http://xxxx.azurewebsites.net</a>) throw bellow error</p>
<blockquote>
<p>Cross-Origin Request Blocked: The Same Origin Policy disallows reading
the remote resource at
<a href="http://api-xxx.azurewebsites.... | 1 | 1,056 |
UIView block animation transitions with animated content on showing/hiding keyboard | <p>In my app I have a text field on some view which is covered by the keyboard when it shows up. So I have to scroll the view (or even rearrange the subviews). To do this I:</p>
<ol>
<li><p>register for keyboard notifications:</p>
<pre><code>[[NSNotificationCenter defaultCenter] addObserver:self
... | 1 | 1,970 |
Spark - Return Dataframe and accumulator from function | <p>I have a function that returns a <code>DataFrame</code> and two accumulators. Running manually with <code>spark-shell</code> (calling the function from the jar) it works as expected. Doing a <code>.count</code> on the <code>DataFrame</code> populates the accumulator.</p>
<p>But if I call the function from <code>sp... | 1 | 1,102 |
Spring WS seems to ignore mapped endpoint | <p>I'd like to add a consumable contract-first webservice to a Spring MVC application - the application is the webservice provider. In <code>web.xml</code> I added a second servlet which should take care of the requests:</p>
<pre><code><servlet>
<servlet-name>webservices</servlet-name>
<se... | 1 | 2,522 |
Setting null string as xsi:nil=true | <p>I have this class</p>
<pre><code>package com.ni.schemas.provider_framework._1.providers;
import java.math.BigInteger;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
*
*... | 1 | 1,724 |
use Google map with php and mysql to display locations | <p>i have a map page that include a Google map to display users static locations using the php and mysql because the <strong>longitude and lattitude</strong> are stored in the database in <strong>village table</strong> but the <strong>village id</strong> is in the a foreign key in the user table so i used the <str... | 1 | 2,770 |
Encrypt and Decrypt by AES algorithm in both python and android | <p>I have python and android code for AES encryption. When I encrypt a text in android, it decrypt on python successfully but it can’t decrypt in android side. Do anyone have an idea?</p>
<p>Python code :</p>
<pre class="lang-py prettyprint-override"><code>import base64
import hashlib
from Crypto import Random
from... | 1 | 2,359 |
Set thresholds in PySpark multinomial logistic regression | <p>I would like to perform a multinomial logistic regression but I can't set <code>threshold</code> and <code>thresholds</code> parameters correctly. Consider the following DF:</p>
<pre class="lang-python prettyprint-override"><code>from pyspark.ml.linalg import DenseVector
test_train_df = (
sqlc
.createDataFrame([... | 1 | 2,977 |
AngularJS fade-in div element when requirement is met with ng-show | <p>I would like this fade class div to show on the page with a slow fade-in effect when the ng-show requirement has been met. In jQuery I could do this in a jiffy but it's proving difficult in Angular due to lack of working examples. Here is the working code:</p>
<p>Here is the <code>index.html</code>:</p>
<pre><code... | 1 | 1,770 |
How to use LINQ to group by and order by certain column | <p><strong>UPDATED</strong>: added a new column combining the Date and Time column which are string fields into DateTimeCombined column which is a DateTime field</p>
<p>So what the LINQ should do is group by name column and get the row for each name that has the earliest date+time. Then it should add the rest of the r... | 1 | 4,643 |
Importing module with "current-directory" imports | <p>I have the following code to load a module dynamically:</p>
<pre><code>def load_module(absolute_path):
import importlib.util
module_name, _ = os.path.splitext(os.path.split(absolute_path)[-1])
try:
py_mod = imp.load_source(module_name, absolute_path)
except ImportError:
module_root =... | 1 | 1,272 |
XML / XSL: The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document | <p>I have been debugging this for days and I can't seem to know why the error keeps telling me that <code>The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document.</code></p>
<p>What could be the problem? here's the code I have been working through:</... | 1 | 4,670 |
MySQL ODBC Update Query VERY Slow | <p>Our Access 2010 database recently hit the 2GB file size limit, so I ported the database to MySQL.</p>
<p>I installed MySQL Server 5.6.1 x64 on Windows Server 2008 x64.
All OS updates and patches are loaded.</p>
<p>I am using the MySQL ODBC 5.2w x64 Driver, as it seems to be the fastest.</p>
<p>My box has an i7-3... | 1 | 1,595 |
Rails 4: combining has_many :through association with polymorphic association | <p>In my Rails 4 app, I have the following models:</p>
<pre><code>User
has_many :administrations
has_many :calendars, through: :administrations
has_many :comments
has_many :calendar_comments, through: :calendars, :source => :comments
Calendar
has_many :administrations
has_many :users, through: :administrations
has... | 1 | 2,465 |
How to order by count of many-to-many relationship in SQLAlchemy? | <p>I'd like to order by the count of a many-to-many relationship on a table.</p>
<p>My starting point was the (excellent) response to <a href="https://stackoverflow.com/questions/5973553/sqlalchemy-ordering-by-count-on-a-many-to-many-relationship">this</a> thread. However, in my case, there is a third table involved ... | 1 | 1,965 |
jsonpath predicate filter not working in java | <p>I am using com.jayway.jsonpath 2.2.0 to see if attributes are in a series of JSON records.</p>
<p>Here's an example of a JSON record being used</p>
<pre><code>{
"data":
{
"sampleTime": "2017-06-02T11:47:37.040Z",
"target":
{
"gateway": "TEST1",
"probe": "ze... | 1 | 1,083 |
Fragment type error in Android Studio | <p>I was following the directions from <a href="https://stackoverflow.com/questions/32944798/switch-between-fragments-with-onnavigationitemselected-in-new-navigation-drawer">this</a> post on how to switch between fragments within the Sliding Drawer Activity in Android Studio and I'm positive I've followed the steps cor... | 1 | 1,080 |
3D Probability Density Plots in Python | <p>I am working on a data set consisting of 'pulse length' values and 5 or 6 'voltage values' corresponding to each of the pulse lengths. The first value is pulse length followed by voltages. Find the table below.</p>
<p>15 -56V -47V -53V -50V -50V</p>
<hr>
<p>16 -49V -46V -52V -47V -50V</p... | 1 | 1,292 |
Color specific excel cells based on match condition in python | <p>I got an excel sheet with weekly data for number of people</p>
<pre><code>Sam Tony Michael
10 34 25
10 22 25
10 22 33
10 22 33
</code></pre>
<p>Requirement is to compare the rows with first value in their respective column and then color the cells which do not match th... | 1 | 1,131 |
How to get the screenshot of the desktop from back buffer with DirectX | <p>I asked <a href="https://stackoverflow.com/questions/12859894/the-desktop-capture-with-directx-does-not-work">how to take the screen shot in DirectX</a> and "Use GetFrontBufferData()" was answered. However, "This function is very slow, by design, and should not be used in any performance-critical path" was described... | 1 | 1,331 |
C++11 threads to update MFC application windows. SendMessage(), PostMessage() required? | <p>After spending a bit of time with simple UWP applications with C++/CX and ++/WinRT I have begun to enjoy some of the features of targeting that environment for Windows UI app development.</p>
<p>Now having to go back to a more familiar MFC application development I want to change my approach to something that is si... | 1 | 3,090 |
jquery ajax call to MVC controller failing | <p>The Chrome debugger is showing the name as "GetPurchaseOrdersComponent" and the path as "/Cost", whereas calls made by Telerik grid controls have the name "4485" and path "/Cost/GetPurchaseOrders" (and they are working). Also, the type on my call (when viewed in Chrome's debugger) is text/html, whereas on the workin... | 1 | 1,214 |
Exception of An asynchronous read operation is already in progress on the StandardOutput stream | <p>I'm trying to use C# to control a command line application background, which can be downloaded here: <a href="http://www.ti.com/litv/zip/spmc015b" rel="nofollow">http://www.ti.com/litv/zip/spmc015b</a></p>
<p>This is an app for motor voltage control, when I enter the app, like "b.exe -c 1", the console seems a kind... | 1 | 1,968 |
Next.js (React) & ScrollMagic | <p>I would like to implement an animation to fade sections, like in <a href="https://alvarotrigo.com/fullPage/extensions/fading-effect.html" rel="noreferrer">this example</a>, into my application. Therefore I've had a look at fullPage.js.</p>
<p>However, since I need to integrate it into a <a href="https://github.com/... | 1 | 1,227 |
Python pytest mock fails with "assert None" for function call assertions | <p>I am trying to mock some calls to boto3 and it looks like the mocked function is returning the correct value, and it look like if I change the assertion so it no longer matches what was passed in the assertion fails because the input parameters do not match, however if I make them match then the assertion fails with... | 1 | 1,687 |
Optimizing N-queen with openmp | <p>I am learning OPENMP and wrote the following code to solve nqueens problem.</p>
<pre><code>//Full Code: https://github.com/Shafaet/Codes/blob/master/OPENMP/Parallel%20N- Queen%20problem.cpp
int n;
int call(int col,int rowmask,int dia1,int dia2)
{
if(col==n)
{
return 1;
}
int row,ans=0;
... | 1 | 1,218 |
Source command not working through Java | <p>From last day, I have been trying to execute a command on Terminal (MAC) using JAVA but whatever I do nothing is working. </p>
<p>I have the following 2 commands that I want to execute and get the output back in JAVA</p>
<pre><code>source activate abc_env
python example.py
</code></pre>
<p>Till now, I have tried ... | 1 | 1,355 |
SQL query for SQLite / java.text.ParseException: Unparseable date | <p>I compiled this, but this code occurs java.sql.SQLException and java.text.ParseException at resultSet.getDate() method.</p>
<pre><code>import java.sql.Connection;
import java.sql.Date;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
class Main {
... | 1 | 1,094 |
ASP.NET Core 2.2 authorize attribute with roles not working | <p>I am migrating an ASP.NET 4.6 MVC app to Asp.Net Core 2.2. I have managed to migrate all the data. I have checked the AspNetUsers, AspNetRoles, and AspNetUserRoles tables and they have the migrated data. I scaffolded the Login and AccessDenied pages using the Razor Class Library as per the offical docs</p>
<p>[<a h... | 1 | 2,018 |
How to define sequelize associations in typescript? | <p>I have a Product table and an AccountingPeriod table, with a <em>belongsTo</em> relationship from Product.manufacturingPeriodId to AccountingPeriod.id.</p>
<p>The code below compiles but blows up with <strong>"Naming collision between attribute 'manufacturingPeriod' and association 'manufacturingPeriod' on model Pr... | 1 | 1,274 |
Getting "inject() must be called from an injection context" after upgrading to Angular 11 | <p>After upgrading to Angular 11, I am not able to <code>ng serve</code> my web application anymore.</p>
<p>I am generating the client using Spring Doc and the latest OpenAPI generator gradle-plutin (5.0.0).</p>
<p>The problem appears to be related to my (generated) REST-client. Opening https://localhost:4200 will writ... | 1 | 1,443 |
Meteor returning [object Object] | <p>I'm creating a simple app to learn Meteor and am having trouble understanding how to query the DB properly. After changing the structure of my data, I now get [object Object] in my template instead of the information that was originally showing. The DB and API call seem to be working properly. I think this has somet... | 1 | 1,249 |
What MiFare Cards Can You Emulate On Android Phones | <p><strong>Please Help!</strong></p>
<p>I was hoping someone could help me understand the whole idea behind Host Card Emulation on Android. </p>
<p>I am working on a project at University where the idea was to provide access to RFID enabled access gates via NFC on smartphone. I have been researching for the last 2 we... | 1 | 1,682 |
NodeJs in Typescript | <p>I would like to use this way when I'm writing app.ts file.
There are some issues concerning .d.ts imports, I don't get full api exposed of <code>express</code>. The issue is that I don't get full autocompletion in Webstorm2016 (haven't tried it vscode - not relevant for me for now).</p>
<pre><code>///<reference ... | 1 | 1,649 |
False positives for `no-unused-vars` | <p>I'm getting a lot of incorrect ESLint/TS warnings saying enum cases are "Assigned a value but never used" or that imports are "defined but never used". Here's some code.</p>
<p>All the imports are saying they're defined but never used (though you can see they are in the types at the bottom).</p>
<p>All the enum ca... | 1 | 1,387 |
LoadError: cannot load such file -- minitest/reporters | <p>I am getting an error while testing my database.</p>
<p>I have two models. When I added the second one and the Active Admin gem I started getting the error.</p>
<pre><code> bundle exec rake test:models --trace
** Invoke test:models (first_time)
** Invoke test:prepare (first_time)
** Execute test:prepare
** Execute... | 1 | 3,181 |
JBoss war file deployment issue | <p>I am trying to deploy a KM.war file on jboss server. Its getting following error trace.</p>
<pre><code>16:12:07,680 ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfs:///F:/software/servers/jboss-6.0.0.Final/server/default/deploy/OpenKM.war state=ClassLoader mode=Manual requiredState=Pos... | 1 | 4,722 |
This SourceBuffer has been removed from the parent media source | <p>I'm trying to readStream an mp4 file and send chunks back to the client. I'm using the mediasource api. The code is failing on:</p>
<pre><code> sourceBuffer.appendBuffer(new Uint8Array(mediaChunkBuffer));
</code></pre>
<p>with the error: <strong>This SourceBuffer has been removed from the parent media source</str... | 1 | 1,046 |
Caused by: java.lang.AbstractMethodError: com.myapp.webapp.config.WebConfig$$EnhancerBySpringCGLIB$$b5f5a3c0.configureContentNegotiation | <p>I have a small project with <code>hibernate</code>+<code>jpa</code>,<code>Spring</code>, <code>Spring MVC</code>(without <code>SpringBoot</code>). Now I'm trying to add <code>Spring Security</code>. </p>
<p><code>UserDetailsServiceImpl.class</code>:</p>
<pre><code>public class UserDetailsServiceImpl implements Use... | 1 | 5,128 |
React-Redux @connect syntax error | <p>I'm new to using React and Redux, I'm building a simple todos application. I am writing my application using the create-react-app tool in the command line.</p>
<p><strong>The issue</strong></p>
<p>I went to other blogs and post and others have mentioned that I am missing an npm plugin to transform decorators "tran... | 1 | 1,108 |
Argument "data" is not a valid Document. Input is not a plain JavaScript object | <p>I am getting below error .</p>
<pre><code>Error: Argument "data" is not a valid Document. Input is not a plain JavaScript object.
at Object.exports.(anonymous function) [as isDocument] (/user_code/node_modules/firebase-admin/node_modules/@google-cloud/firestore/src/validate.js:86:15)
at WriteBatch.set (/use... | 1 | 1,088 |
The prefixIcon of TextField widget in flutter disappears on focusing TextField. How to solve? | <p>Was just exploring flutter and got stuck. The prefixIcon disappears on clicking field and it appears back when focused out. How to solve this ? The code is as below. Tried removing the key of form. I want the icon to stay even if focused in or focused out. Is there any other property to set?
Couldn't be able to fin... | 1 | 2,024 |
Create a boolean column based on data in another column in R | <p>I have a data set and would like to do two things:</p>
<ol>
<li><p>Set certain row values in Col A to 0 based on values in Col B</p></li>
<li><p>Create a new column with values of either 0 or 1 based on the edited values in Col A</p></li>
</ol>
<p>My current approach is shown below - the issue is I occasionally ge... | 1 | 1,264 |
xv6 Scheduler - proc never != 0 | <p>Basically, I'm implementing a scheduler for the xv6 kernel that is implementing a multilevel priority queue. I'm having a serious issue I do not understand, the TAs for my course do not understand, and I've missed the deadline for this project, so helping me right now will not gain me any extra points - but I WANT t... | 1 | 4,934 |
How to loop over nested array in react? | <p>Let's say I have this faq array as one of my states:</p>
<pre><code>this.state = {
faqs: [
{
section: "Section One",
faqList: [
{
question: "Q1",
answer: "A1"
},
{
question... | 1 | 1,025 |
Webpack alias with Angular - Cannot use namespace 'UtilsService' as a type | <p>I have a project with Angular 6, Typescript, webpack 4.</p>
<p>I want to use <a href="https://webpack.js.org/configuration/resolve/#resolve-alias" rel="nofollow noreferrer">alias in webpack</a> in order to make my import statement clearer.</p>
<p>This is the code I have in webpack:</p>
<pre><code>resolve: {
ali... | 1 | 1,395 |
Emotion Js and TypeScript problems when passing props to styled | <p>i got this errors:</p>
<pre><code>No overload matches this call. Overload 1 of 2, '(...styles: Interpolation<Pick<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | ... 264 more ... | "value"> & { ...; }>[]): StyledComponent<...>', gave the fo... | 1 | 2,179 |
New Relic Class Not Found ... I don't even use new relic | <p>I don't even use new relic and I'm getting errors for them. It just happened all of the sudden.</p>
<p>I'm using the latest Android Studio build (0.61). Even my master branch has the same error. There are other projects on my machine that use new relic, but not this one. This project does not use new relic in any w... | 1 | 5,393 |
Why does my email look like s**t in outlook? | <p>I am working on an email right now, which is mostly based on images. The email looks good if you open it with the browser, but very bad, if opened with Outlook. I heard that Outlook uses some sort of rendering process. Is that true? What can I do to protect my email from getting smashed? </p>
<p>Have a look at my e... | 1 | 2,182 |
ADO.NET: Safe to specify -1 for SqlParameter.Size for all VarChar parameters? | <p>We have an existing body of C# code that calls parameterized ad-hoc SQL Server queries in many places. We never specify SqlParameter.Size, and it's documented that in this case, the SqlParameter class infers the size from the parameter value. We just recently became aware of the SQL Server plan cache pollution issue... | 1 | 1,223 |
Exception org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type is defined: expected single matching bean | <p>I am practicing Spring 4; I have an Interface (Person) with 2 its implementer classes (Professor and Student). the configuration is Automatic with Java (AutomaticBeanConfiguration.java)</p>
<p>When I try to access Person object:
Person person = ctx.getBean(Person.class);
person.showAge();</p>
<p>it throws the fo... | 1 | 1,490 |
Docker + Laravel issue [SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution] | <p>I have docker installed on ubuntu machine and I'm trying to run a laravel app.</p>
<p>MySQL service has <code>service_name: mysql</code> in docker-compose.yml file and .env file has <code>DB_HOST=mysql</code>.</p>
<p>As I remember .env file should figure out that <code>DB_HOST=mysql</code> points to the mysql dock... | 1 | 1,268 |
intermittent GLSL vertex shader compile errors | <p>I've been getting intermittent errors compiling a vertex shader, preparing for the first render of a newly created OpenGL context. It's the same vertex shader that usually works, on the same hardware. After the failure, the info log returned by <code>glGetShaderInfoLog</code> usually shows this:</p>
<pre><code>Vert... | 1 | 1,487 |
Google Maps API v3: Driving directions over a map which first loads 2 positions | <p>I have a map which displays two locations with markers (and automatically centers between these 2 locations), you can see it live here: <a href="http://goo.gl/rRDCE" rel="nofollow">http://goo.gl/rRDCE</a>
I'm trying to integrate it with the Directions service, exactly like this demo: <a href="https://developers.goog... | 1 | 1,627 |
Using ASPX Web User Control with Visual Studio 2010 | <p>I am trying to implement a Web User Control into one of my APSX pages but keep getting the following warning: </p>
<blockquote>
<p>Element 'IntFilter' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.</p>
</blockquote>
<p>The user control ... | 1 | 1,393 |
FFMpeg: Resampling from AV_SAMPLE_FMT_S16 to AV_SAMPLE_FMT_FLTP divides bitrate by 2 | <p>I am very new with FFMpeg and I am currently trying to convert audio data from PCM AV_SAMPLE_FMT_S16 format to Mp3 AV_SAMPLE_FMT_FLTP format. </p>
<p>For this I am using the AudioResampleContext from FFMpeg</p>
<pre><code> av_opt_set_int( audioResampleCtx, "in_sample_fmt", m_aplayer->aCodecCtx-&g... | 1 | 1,381 |
Take image from gallery and convert to base64 issue | <p>sorry for asking silly question.but it solved yet my me.please help i had tried all codes on stackoverflow and follow other tutorial but it wont help at all.i am taking image from galary and convert to base64 it works perfectly fine when taking image on camera but why it dont work on galary i dont know please help m... | 1 | 8,357 |
When do I need to specify DbSet in EF's DbContext? | <p>I'm a little bit confused. Until today I thought that every table (used by EF) must be specified in <code>DbContext</code> class. But it looks like I need <strong>ONLY one</strong>! really?</p>
<p>Let me explain, Here's my DbContext:</p>
<pre><code>public class MyDbContext : DbContext
{
public MyDbContext()
... | 1 | 1,299 |
ng-file-upload file.$valid is undefined | <p>I'm trying to implement file uploading using the Angular [ng-file-upload[(<a href="https://github.com/danialfarid/ng-file-upload" rel="nofollow">https://github.com/danialfarid/ng-file-upload</a>) directive. I've followed the docs as closely as possible. I want the user to be able to fill in a form, attach an image, ... | 1 | 1,444 |
Call multiple different charts in flutter - charts_flutter 0.5.0 Package | <p>I have this Simple Bar chart from the package charts_flutter 0.5.0 and i want to call it in another page like this, or what my goal is, is to get more charts into it like pie charts and some other once.</p>
<pre><code> Widget build(BuildContext context) {
List<Series> seriesList;
return Scaffold(
... | 1 | 1,292 |
Align a logo and a Search Box using CSS | <p>I having problems trying to get a log and a search box to go side by side. The logo on the left and the search box on the right. </p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>header {
... | 1 | 1,779 |
To what extent are Applicative/Monad instances uniquely determined? | <p>As described <a href="https://stackoverflow.com/q/19774904/1333025">this question/answers</a>, <code>Functor</code> instances are uniquely determined, if they exists.</p>
<p>For lists, there are two well know Applicative instances: <code>[]</code> and <a href="https://hackage.haskell.org/package/base-4.8.1.0/docs/C... | 1 | 1,039 |
Errors in attrs.xml | <p>All of sudden I come across a problem. It may be silly to ask but posting this because I have no idea what to do in such cases. </p>
<p>I am not aware if its an error or not.</p>
<p>Actually, I am getting problem in <strong>attrs.xml</strong> and whenever I am trying to save the project console prompt with followi... | 1 | 1,140 |
How to build a viewpager that acts infinite and detects which side it was swiped? | <p>I understand that a viewpager can be used, but I am having a hard time finding a good resource explaining how to use a viewpager with the following additions.</p>
<p>The view to record if the swipe was left or right, and either way just reload a new content (if left I want it to record no, right for it to record ye... | 1 | 2,446 |
Valgrind and CUDA: Are reported leaks real? | <p>I have a very simple CUDA component in my application. Valgrind reports a lot of leaks and still-reachables, all related to the cudaMalloc calls.</p>
<p>Are these leaks real? I call <code>cudaFree</code> for every <code>cudaMalloc</code>. Is this valgrind's inability to interpret GPU memory allocation? If these le... | 1 | 1,103 |
Why i can not get the update value in an AngularJs factory? | <p>I am trying to update and then get the update value of an AngularJs factory, I am setting the value in one scope and trying to get it in another, I am setting a factory to handle the pop up messages in my app so instead of repeating my self I want just one factory to handle the messages.</p>
<pre><code>myApp.factor... | 1 | 1,289 |
Android network bridge between USB tethering & WiFi hotspot interfaces | <p>I have following hw environment:
- dev board;
- Android device;
- Ubuntu laptop;</p>
<p>Android connected to the board by USB cable.
Laptop connected to Android dev by wifi hotspot.</p>
<p>From Android I able to ping a board throw USB tethering (and vise versa).
Also from Android I able to ping a laptop throw wifi... | 1 | 1,274 |
Filter records in gridview | <p>I wrote a small program to filter records in a grid view, filter by what is entered into a text box by the user. the problem with this are, the user cannot type fast,gridview takes time to display. I want to make it faster so the user doesn't notice a delay. any suggestion to make this work better?</p>
<pre><code>... | 1 | 2,550 |
Bootstrap Show LI side by side | <p>How can I display LI.parent side by side?</p>
<p>I'm using Bootstrap 3 and my HTML is:</p>
<pre><code><ul role="menu" class="dropdown-menu">
<li class="item-001 dropdown parent">
<a href="/abc">ABC</a>
<ul role="menu" class="dropdown-submenu">
<li class="item-1">... | 1 | 1,211 |
Error: The operator '[]' isn't defined for the class 'Future<dynamic>' | <p>I am getting the following error for my weather app. How can I fix it?</p>
<p>Compiler message:
<code>lib/loadingscreen.dart:38:41:</code> Error: The operator '[]' isn't defined for the class 'Future'.</p>
<ul>
<li>'Future' is from 'dart:async'.
Try correcting the operator to an existing operator, or defining a '[]'... | 1 | 1,280 |
Matlab Huffman Encoding in matrix | <p>I am trying to encode a matrix that i have (after calculating frame differences) with Huffman code but i am having difficulties completing it</p>
<p>The matrix i wish to encode with huffman is called "amp"</p>
<p>Something that i found is this:</p>
<pre><code>function y = mat2huff(x)
%MAT2HUFF Huffman encodes a m... | 1 | 1,249 |
SVG path d: I expected ('M' or 'm'), but got "NaN 0,0..100" | <p>I used [<strong>skylake</strong>] library == <strong>svg morphing animation menu</strong> and wanted to do the same menu animation(svg morphing animation) like this one : <a href="http://jemimahbarnett.com" rel="nofollow noreferrer">http://jemimahbarnett.com</a> . When your mouse entered the svg menu is opened &... | 1 | 2,043 |
Quaternion-based First Person View Camera | <p>I have been learning OpenGL by following the tutorial, located at <a href="https://paroj.github.io/gltut/" rel="noreferrer">https://paroj.github.io/gltut/</a>.</p>
<p>Passing the basics, I got a bit stuck at understanding quaternions and their relation to spatial orientation and transformations, especially from wor... | 1 | 1,180 |
How do I use Serde to deserialize structs with references from a reader? | <p>I have these structs:</p>
<pre><code>#[derive(Debug, Serialize, Deserialize)]
pub struct GGConf<'a> {
#[serde(alias = "ssh")]
#[serde(rename = "ssh")]
#[serde(default)]
#[serde(borrow)]
pub ssh_config: Option<SSHConfig<'a>>,
}
#[derive(Debug, Serialize, Deserialize)]
pub struc... | 1 | 1,041 |
MongoDB driver unable cast custom serializer to IBsonSerializer during filter by Id | <p>I am working on an application in C#. I have some problem getting a document by Id from MongoDB.</p>
<p>My Id is not ObjectId but Guid.</p>
<p>Model is simple POCO. </p>
<pre><code>public class Folder
{
public Guid Id { get; set; }
public int OrgId { get; set; }
// rest props is not im... | 1 | 1,064 |
How to draw a point on top of a QImage for Qt5 | <p>I am fairly new to Qt and I am completely stuck at this point. My only option was to turn to the experts. I have designed a GUI that will load an image into a Qlabel on a QMainWindow. I then want to draw multiple points on the image itself. However, what seems to be happening is that the point is being drawn behind ... | 1 | 1,595 |
Unity 2D collision detection with kinematic rigidbody | <p>Just starting out with Unity so please be patient :) We are building a Zelda like game - top down, no physics / gravity, tilemaps for the map. We don't want to use the dynamic rigidbodies because of all the physics behind it.</p>
<p>The tilemap has "Walls" with a CompositeCollider2D and Static rigidbody, our player... | 1 | 1,110 |
Doc comment for parameter $parameters does not match | | actual variable name $resource | <p>I have this error when i try commit to push my work .. I write parameters in comments annotation ... in codfe i write multiple function content parameters and resources and also options and all type this parameters is array and also content type parameters int </p>
<p><a href="https://i.stack.imgur.com/F0gAx.png"... | 1 | 1,361 |
How can I refresh my TableView in titanium? | <pre><code>PopupFirstNameButton.addEventListener('click', FirstNameFunction);
function FirstNameFunction(){
infoWin.close();
dispalyFirstName = 'false';
var row = Ti.UI.createTableViewRow({
className:'sectionrow',
height:50
});
row.add(FirstNameTextField);
tableview.heig... | 1 | 1,400 |
Using Spynner module in Python (need to select a Javascript element) | <p>Trying to select a Javascript element using the Python module Spynner.</p>
<p>(NOTE: Username and Password not real)</p>
<p>Here's the list I am trying to pull it from:</p>
<pre><code><tr>
<td valign="middle" align="right">
<select onkeypress="javascript:if ( event.keyCode == 13 ){valid();}" style=... | 1 | 2,246 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.