title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Same error for all imports: module 'collections' has no attribute 'namedtuple' | <p>Python refuses to import any module, including something as basic as numpy, and throws the same error for all of them.</p>
<p>I am working with Python 3.5.2 and Anaconda 4.2.0 (64-bit) with GCC 4.4.7 (Red Hat 4.4.7-1). I recently installed the following modules via pip:</p>
<ul>
<li>packaging</li>
<li>appdirs</li>... | 1 | 1,355 |
The error "Breaks and labels are different lengths" appears when using grid.arrange | <p>In the following script:</p>
<pre><code>dataset_prices2017 <- read.csv("/home/nasser/Desktop/prices2017.csv")
dataset_prices2018 <- read.csv("/home/nasser/Desktop/prices2018.csv")
dataset_prices2019 <- read.csv("/home/nasser/Desktop/prices2019.csv")
selectedDF <- dataset_prices2017 %>% select(Price,... | 1 | 6,291 |
VBA/Bloomberg API, BCOM_wrapper: get two columns from bulk data | <p>I am using code from this link:
<a href="http://mikejuniperhill.blogspot.com/2013/08/bloomberg-v3com-api-wrapper-update-2.html" rel="nofollow">http://mikejuniperhill.blogspot.com/2013/08/bloomberg-v3com-api-wrapper-update-2.html</a></p>
<p>I want to return this type of data from tester_bulkReferenceData:</p>
<pre>... | 1 | 8,006 |
Why its not following template from formatter | <p>Here is my config file</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Versi... | 1 | 1,482 |
Load balancer does not contain an instance for the service | <p>I want to use Eureka client with <code>spring-cloud-starter-loadbalancer</code>. But when I added configuration I get error. When I remove <code>@LoadBalancerClient(name = "mail-service", configuration = LoadBalancerConfiguration.class)</code> and <code>LoadBalancerConfiguration</code> class configuration ... | 1 | 1,180 |
gnuplot-iostream not linking to boost | <p>Hi I'm trying to use gnuplot-iostream, at the minute I'm just trying to get the code <a href="http://www.stahlke.org/dan/gnuplot-iostream/" rel="nofollow">here</a> working. When I try to combile I get errors in the linker saying:</p>
<pre><code>In function `stream<int, boost::iostreams::file_descriptor_flags>... | 1 | 1,054 |
Spring Boot Data JPA @CreatedBy and @UpdatedBy not populating with authenticating with OIDC | <p>I would like to get Spring JPA auditing to work with Spring Boot,I am authenticating with Keycloak using the latest feature of Spring Security.</p>
<pre><code>springBootVersion = '2.1.0.RC1'
</code></pre>
<p>I am following the sample by spring security team <a href="https://github.com/jzheaux/messaging-app/tree/sp... | 1 | 2,098 |
How to add PARTITION to an existing table with primary clustered index | <p>I want to add PARTITION to an existing table with a primary clustered index, but I don't know the way:</p>
<pre><code>CREATE TABLE [dbo].[AppUsers]
(
[Id] [uniqueidentifier] NOT NULL,
[UserName] [nvarchar](max) NULL,
[NormalizedUserName] [nvarchar](max) NULL,
[Email] [nvarchar](max) NULL,
[Norma... | 1 | 1,510 |
Pytorch error "RuntimeError: index out of range: Tried to access index 512 out of table with 511 rows" | <p>I have sentences that I vectorize using sentence_vector() method of BiobertEmbedding python module (<a href="https://pypi.org/project/biobert-embedding/" rel="nofollow noreferrer">https://pypi.org/project/biobert-embedding/</a>). For some group of sentences I have no problem but for some others I have the following ... | 1 | 1,105 |
CSS: border-radius // insert a background; white corners | <p>So I'm totally new to HTML/CSS. I'm designing a fun project now to learn web development.
I created a search bar and wanted to add the famous round corners with border-radius. So far it works good. The problem is that the white background shines through the edges now, since the search bar is located in the menu bar.... | 1 | 1,923 |
Amazon SES Stops Working | <p>I set up Amazon SES and it initially worked for a few hours, then all of a sudden stopped. All of the e-mails I'm sending as, and our domain, have been verified. We are no sending bulk e-mails - only a few hundred per day. Whenever I make changes to the web.config it seems to allow it work again for another 2-3 hour... | 1 | 1,761 |
QT application crashes on startup (c++ windows) | <p>I have the source code f a qt application which was written by somebody else who is not with my company anymore.</p>
<p>I managed to compile the code using qt 4.8.4. I found that original version used qt 4.7.3.</p>
<p>When I run application it crashes just after start-up inside one of the qt DLL.</p>
<p>I am deve... | 1 | 2,580 |
dijkstra's algorithm running time with array and priority queue | <p>I'm having difficulty understanding the time of the dijkstra algorithm. Below I put the pseudo code I was analyzing for array. Considering that V are the vertices and E the edges. The Q as an array has its initialization with time O(V), the minimum and the for inside the while would have O(V) of while times O(V + E)... | 1 | 1,519 |
pandas.Series.interpolate() does nothing. Why? | <p>I have a dataframe with DatetimeIndex. This is one of columns:</p>
<pre><code>>>> y.out_brd
2013-01-01 11:25:00 0.04464286
2013-01-01 11:30:00 NaN
2013-01-01 11:35:00 NaN
2013-01-01 11:40:00 0.005952381
2013-01-01 11:45:00 0.01785714
2013-01-01 11:50:00 0.008928571
Freq:... | 1 | 1,487 |
How to get the length of the json object in Angular 2 template | <p>I have a array of json like this. </p>
<pre><code>[
{
"variations": {
"title": {
"newValue": "test new value1",
"oldValue": "test old value1"
}
}
},
{
"variations": {
"data": {
"newValue": "new data",
"oldValue": "httpold data"
},
"leng... | 1 | 1,144 |
custom error handler throw error : Cannot read property 'get' of undefined ( Injector ) | <p>I am building a custom error handler in angular 4 to handle different kind of application error with error interceptor</p>
<p>create a base class( <em>app-error.ts</em> ) and other classes ( for eg. to handle 403 errors create class <em>access-denied.ts</em> ) which extend this base class. </p>
<p>in the base clas... | 1 | 1,794 |
Custom ArrayAdapter not Working? | <p>This is one of those cases where I had the code working, tried to add something else, and then found that my previous code has stopped working. It crashes when the program starts. The error seems to lie with the definition of the ArrayAdapter custom class, as if I try using a built in adapter, it works fine. Any hel... | 1 | 1,327 |
Laravel : Redirect with data | <p>I am trying to send data on <code>with()</code> but at the view the login page refreshes but doesn't show anything. I have tried it almost with everything, I have read many questions tried almost every way. </p>
<p>My controller, The if condition is working .</p>
<pre><code>public function authenticate(Request $re... | 1 | 2,733 |
Too many Post were made to semaphore | <p>Hi have developped an sample code to implement.Multiple producer and single consumer problem. </p>
<p>I have taken a Queue and I have restricted the size of the to 20.So I am using semaphore and CrticalSection (windows api)to protect it.If more than 20 thread the queue it wont be allowed.that semaphore should prot... | 1 | 1,087 |
Unable to clone this repository in Windows 8 RC with Github for Windows | <p>I get the following error message when trying to clone one of my GitHub repositories in Windows 8 RC using GitHub for Windows:</p>
<p><em>Unable to clone this repository.
Please check your internet connection.</em></p>
<ul>
<li>When I try to clone the same repository in Windows 7 using GitHub for Windows, it succe... | 1 | 1,107 |
Git clone Gradle Sysnc issues with Error: ASCII | <p>I cloned one of my old androidsutio project in github using git-bash. And I met Gradle Sync issues while loading the project. So I cannot even see my java and src file in android studio project.(the project is cloned perfectly. I was able to see all the files were over there).
I think the problem is with the projec... | 1 | 8,509 |
Mahalanobis distance in matlab: pdist2() vs. mahal() function | <p>I have two matrices X and Y. Both represent a number of positions in 3D-space. X is a 50*3 matrix, Y is a 60*3 matrix. </p>
<p>My question: why does applying the mean-function over the output of pdist2() in combination with 'Mahalanobis' not give the result obtained with mahal()?</p>
<p>More details on what I'm tr... | 1 | 1,066 |
How would you get a switch statement in Java to print out on a GUI? | <p>I want to make a magic 8 ball kind of program but, I don't know how to get the switch case statement to print out on a GUI. I'm not really sure what to do from here. I tried looking in my java books and the internet but, I can't find anything.
Here's my code:</p>
<pre><code>import java.awt.*;
import java.awt.event.... | 1 | 1,054 |
Android - NullPointerException on getReadableDatabase() | <p>I am writing an app that checks if the first value in the database matches a string. When I try to connect to the database, I get a <code>NullPointerException</code>. This happens on both <code>getReadableDatabase()</code> and <code>getWritableDatabase()</code></p>
<p>Here's my code:</p>
<pre><code>public class Da... | 1 | 2,927 |
ColorAnimationUsingKeyFrames changes brush | <p>Well hi, I am kind of new to WPF and this is the first time I tried change styles of WPF controls. Thanks to Expression Blend everything went better than expected until I made this style.</p>
<pre><code> <Style TargetType="{x:Type TextBox}">
<Setter Property="Template">
<Setter.Value>
... | 1 | 1,660 |
Pandas groupby: change values in one column based on values in another column | <p>I'll try to explain my problem as best as possible. But I'm new to Pandas, so please bear with me. I have a Pandas dataframe <code>df</code>:</p>
<pre><code> Random_ID Seq_ID Type Seq Token
0 8 1 User First
1 8 2 Agent Second
2 8 3 User Second
3... | 1 | 1,855 |
Vertically center Bootstrap 3 button within column | <p>I've spent some time trying to figure out why my button will not center vertically inside of a column I figured I would ask here because I think I'm missing something, the HTML:</p>
<pre><code><div class="container">
<div class="row">
<div class="sellthem">
<div class="c... | 1 | 1,421 |
How to use DATETime Column in dynamic query in sql server? | <p>I have a Stored Proc which is using for Search Applicants is written as below:</p>
<pre><code> /*
AUTHOR :
CREATION DATE :
NOTES :
PURPOSE :
MODIFIED BY :
MODIFICATION DATE :
*/
ALTER PROCEDURE USP_GET_ApplicantByFilter
(
@ApplicantName VARCHAR(100)='Ram',
@AgeFrom INT=0,
... | 1 | 1,363 |
Json Lists in arrays ionic return list values | <p>I'm new to ionic and I want to be able to extend a simple json data set to include lists within an array:
My json file looks like this:</p>
<pre><code>angular.module('starter.services', [])
/** A simple example service that returns some data. */
.factory('Bands', function() {
var bands = [
{"id": "0", ... | 1 | 1,121 |
Does LinearLayout with visibility GONE consume zero resources? | <p>I was thinking about how to implement an <em>ImageView</em> that shows an image and while I'm refreshing its content with a new image it shows a "Loading..." text with a circular <em>ProgressBar</em> on the right, so I've written the code attached below.. Is this the correct way to implement what I want? Does the <e... | 1 | 1,834 |
JFree chart by using servlet in jsp | <p>How can i draw a line chart by using Servlets and rendered Image?
I wrote a servlet and create a chart.but i don't know how to display it on my jsp page.</p>
<p>my servlet code:</p>
<pre><code>public class GraphGen extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp) throw... | 1 | 1,192 |
Reflection - SetValue of array within class? | <p>OK, I've been working on something for a while now, using reflection to accomplish a lot of what I need to do, but I've hit a bit of a stumbling block...</p>
<p>I'm trying to use reflection to populate the properties of an array of a child property... not sure that's clear, so it's probably best explained in code:<... | 1 | 1,138 |
Deserializing different JSON payload from same Kafka topic with Spring Kafka | <p>I'm trying to deserialize different JSON payloads from the same Kafka topic. The other questions asked here, guided me to a first attempt, but I was not able to get it running.</p>
<p>As Gary mentioned (<a href="https://stackoverflow.com/a/51695630">here</a>) there is some hint (<em>JsonSerializer.ADD_TYPE_INFO_HEA... | 1 | 2,247 |
Generate xml from csv data in conformance with given xsd schema | <p>I have an xml schema and csv data to generate corresponding xml files.</p>
<p>I found <strong><a href="http://msdn.microsoft.com/en-us/library/bb387090.aspx" rel="nofollow noreferrer">this</a></strong>, how to generate xml files from given CSV file. But with my schema, it's always the same mapping because of the e... | 1 | 3,530 |
How do I plot a projection of 3D scatter data on the XY/XZ/YZ planes? | <p>I have 4D data (3D scatter points + color) plotted using matplotlib's mplot3d library. To aid in parsing how the cloud of points is distributed in space, I'd like to show a projection of the cloud across each of the 3 planes (XY, XZ, YZ) using a 2D histogram/contour plot.</p>
<p>Here is a MWE that uses <code>ax.plo... | 1 | 1,082 |
Deps File Missing for Dotnet 6 Integration Tests | <p>Before I start, I've tried all suggestions from the following and none work:</p>
<p><a href="https://stackoverflow.com/questions/55131379/integration-testing-asp-net-core-with-net-framework-cant-find-deps-json">Integration testing ASP.NET Core with .NET Framework - can't find deps.json</a></p>
<p><a href="https:... | 1 | 1,266 |
How to set an Icon in a ContextMenu's MenuItem when using ItemContainerStyle | <p>So I have a <code>Context Menu</code> And a <code>MenuItem</code> in it which breaks out into a list of names:</p>
<pre><code><ContextMenu>
<MenuItem Header="Set As Default For" ItemsSource="{Binding Source={StaticResource Names}}">
<MenuItem.ItemContainerStyle>
<Style Tar... | 1 | 1,962 |
Python/Sklearn - Value Error: could not convert string to float | <p>I'm trying to run a kNN classifier across my dataset using 10-fold CV. I have some experience with models in WEKA but struggling to transfer this over to Sklearn.</p>
<p>Below is my code</p>
<pre><code>filename = 'train4.csv'
names = ['attribute names are here']
df = pandas.read_csv(filename, names=names)
num_fo... | 1 | 4,961 |
MSER Sample in OpenCV 2.4.2 on Visual Studio 2012 | <p>I'm running OpenCV 2.4.2, on Visual Studio 2012. I want to use MSER to detect text in images. I started off with the sample MSER sample program provided in the OpenCV directory,</p>
<pre><code>#include "opencv2/highgui/highgui.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
... | 1 | 1,275 |
How to use xpath from lxml on null namespaced nodes? | <p>What is the best way to handle the lack of a namespace on some of the nodes in an xml document using lxml? Should I first modify all None named nodes to add the "gmd" name and then change the tree attributes to name <a href="http://www.isotc211.org/2005/gmd" rel="noreferrer">http://www.isotc211.org/2005/gmd</a> as ... | 1 | 1,123 |
How to resolve "Could not load file or assembly 'Microsoft.Practices.Unity" error? | <p>I've run into an error with a test WPF application that I'm using to learn Prism. The error log is below, but the gist of it is that it can't seem to find Microsoft.Practices.Unity version 3.5.1.0. From my understanding this can mean two things: either it can't find any version of Unity, or it's finding the wrong ve... | 1 | 3,156 |
Windows Phone 8 Error with WCF - The remote server returned an error: NotFound | <p>I'm not quite sure where to start!! This problem has been driving me crazy!</p>
<p>I'm trying to develop an app for <code>Windows Phone 8</code> using <code>WCF</code> and while it use to work alright and I do say alright as every so often I was getting same communication error I'm getting now, it would eventually ... | 1 | 1,177 |
updating a record throws 'Multiplicity constraint violated.' in asp.net mvc | <p>I am developing an application in asp.net mvc and using EF code first for my data access. Here is the model I use :</p>
<pre><code> public class Culture
{
[Key()]
public int CultureID { get; set; }
[Required()]
[StringLength(250)]
public string CultureName { get; set; }... | 1 | 1,248 |
ValueError: X must be a NumPy array | <p>I new to python and machine learning. I got an error when trying to implement (decision_regions) plot.
I am not sure I understand the problem so I really need help solving this problem. </p>
<p>I think the problem because the target is string maybe I am nor sure. But I do not know how to fix this problem please I ... | 1 | 1,243 |
absolute path in jsf not working | <p>I am new to jsf. </p>
<p>I have basically 4 jsf files. </p>
<p>1) menu.xhtml</p>
<pre class="lang-html prettyprint-override"><code><h:html xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui... | 1 | 2,102 |
Deserializing arbitrary object json arrays in inner classes with Gson or nested inner class | <p>I am having troubles when I try to deserialize one Json string with Gson. The string goes something like this
(Note: I just simplified it, but leaving the part I am having troubles with and because of that, there might be Json syntaxis errors, but I have checked with an online validator that the string I am working... | 1 | 1,096 |
Service Worker: how to update the cache when files changed on the server? | <p>What cache strategies are you using? I read the Offline Cookbook and the simplest strategy to use is to cache static content and the left out the API calls.</p>
<p>This strategy seems something like this:</p>
<ol>
<li>Check if the request is already in cache</li>
<li>If not add the request, response pair to cache<... | 1 | 1,594 |
The SaveAs method is configured to require a rooted path, and the path '~/Images/FleaMarket/uploadedImages/mitali2054/5.jpg' is not rooted | <pre><code>Private Function UploadPic() As String
Const bmpw As Integer = 300
Const bmph As Integer = 300
Dim itemID As String = MaxItemNo()
Dim filePath As String = "~/Images/FleaMarket/uploadedImages/" & User.Identity.Name.ToString & "/" & itemID & Path.GetExtension(f... | 1 | 1,647 |
JSON string (encoded from large array) got truncated when output to HTTP client | <p>I met an issue that the JSON string output to HTTP client was truncated near to close tag. </p>
<p>An example,</p>
<p>a. expect to see - ... ... "last_update":"2014-06-10 20:46:38","garden_id":"1"}],"message":null}</p>
<p>b. actually it is - ... ..."last_update":"2014-06-10 20:46:38","garden_id":"1"}],"message":n... | 1 | 1,078 |
Getting 404 Page Not Found when accessing my index.php file | <p>I have been working on an Android App, now I want to have a database on the server from where my App will fetch the data.</p>
<p>I found making a REST API with PHP to access a MySQL database is the easiest solution, but am totally alien to php (touching it for the first time).</p>
<p>I am getting "404 Page not fou... | 1 | 2,147 |
How to enumerate an USB hub that is attached to the first port of root hub on Windows Embedded 7 | <p>I am posting here for the first time, I hope this will be clear and readable.</p>
<p>I am currently trying to test the presence of usb devices on an embedded system using a specific HCD and port path programmatically using C++ and Visual Studio 2008.</p>
<p>The idea is to pass in the port number and the hcd value ... | 1 | 3,450 |
How can I show Interstitial ad from Non Activity Class? | <p>I have a non activity class named custom adapter which shows images on main activity which loads images from the internet and sets wallpapers on click
I want to show interstitial ad from Non Activity class,(CustomAdapter) when image view is clicked
Tried many stuff but doesn't work out , plz help me out</p>
<p><st... | 1 | 1,154 |
How to make a smooth dashed border rotation animation like 'marching ants' | <p>I'm working on a css animation that uses 'cogs and chains', but am unable to create a 'smooth' border rotation sequence.</p>
<p>You can see in this <a href="http://jsfiddle.net/5n56dn5b/14/">fiddle</a> How (currently) I'm using a pseudo element to generate a 'rotation' effect. This is done by 'switching' between a ... | 1 | 3,392 |
Using SQLAlchemy's on_conflict_do_update() with unique constraints | <p>I'm using SQLAlchemy 1.3.4 and PostgreSQL 11.3.</p>
<p>I have the following (simplified) table definition:</p>
<pre class="lang-py prettyprint-override"><code>class MyModel(Base):
__tablename__ = 'mymodel'
id = Column(Integer, primary_key=True)
col1 = Column(Unicode, nullable=False)
col2 = Column(... | 1 | 1,522 |
XML Encoding in XMLTYPE column in Oracle DB | <p>I have a table created like this:</p>
<pre><code>create table b (data timestamp, value XMLTYPE);
</code></pre>
<p>I run this script in TOAD 12.6 to store a XML in the table.</p>
<pre><code>DECLARE
lc_Soap CLOB;
lc_Request CLOB;
px_RequestXML XMLTYPE
:= XMLTYPE ('<test><... | 1 | 1,725 |
Anki CSS/HTML align vertically to bottom / center / top | <p>I am editing the template of an <a href="https://ankiweb.net/shared/info/1956010956" rel="nofollow noreferrer">Anki deck</a>, which uses HTML and CSS. What I would like to do here is on the front side, vertically aligning the Japanese character to the middle and the hint to the bottom. I tried manually spacing every... | 1 | 1,822 |
@ Symbol - a solution for Recursive SELECT query in Mysql? | <p>there are a lot of questions about Recursive SELECT query in Mysql, but most of answers is that "There NO solution for Recursive SELECT query in Mysql".</p>
<p>Actually there is a certain solution & I want to know it clearly, so this question is the following of the previous question that can be found at (<a hr... | 1 | 1,245 |
HtmlAgilityPack - Grab data from html table | <p>My program uses HtmlAgilityPack and grabs a HTML web page, stores it in a variable and I'm trying to get from the HTML two tables which are under specific Div Class tags (boardcontainer). With my current code it searches through the whole web page for every table and displays them but when a cell is empty it throws ... | 1 | 12,493 |
Combobox is not populating after form validation fails - Spring 3 MVC | <p>I am using Spring mvc for my web application. I have a simple form with some textfields and combo-boxes. </p>
<p><strong>Problem:</strong> I am submitting the form with null values and it performs the validation. Since the null values are there so validation shows the form again but with blank combo-boxes. When the... | 1 | 1,093 |
A message body writer for Java class java.util.ArrayList, and Java type class java.util.ArrayList, and MIME media type application/json was not found | <p>I am new to using jersy for implementing rest api</p>
<p>I get the below error, when I call the products service.</p>
<pre><code> com.sun.jersey.api.MessageException: A message body writer for Java class java.util.ArrayList, and Java type class java.util.ArrayList, and MIME media type application/json was not foun... | 1 | 1,192 |
CodeIgniter Email Doesn't Work | <p>I configured an SMTP server accessible via localhost.</p>
<p>PHP mail() command works fine, I use it in scheduled tasks to email backups as attachments.</p>
<p>If I use CodeIgniter v1.7.2 email library using the following code, and the CI debug output says the message is sent, but the SMTP server logs show Bad Sen... | 1 | 2,350 |
Cassandra cluster with bad insert performance and insert stability | <p>I have to store around 250 numerical values per second, per client, which is around 900k numbers per hour. It probably will not be a full-day recording (probably between 5-10 hours a day), but I will partition my data based on the client id and the day the reading is made. The maximum row length comes at about 22-23... | 1 | 2,566 |
Retrieve data from a form with GET method using symfony2 | <p>I can't retrieve data from my form, I tried differents ways but no result. My repository : </p>
<pre><code>public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('min_price', 'text', array('mapped' => false, 'label' => 'De la :', 'attr'=>
... | 1 | 2,214 |
How to I keep the text in this Slick.js element from going past it's container? | <p>I'm using <a href="https://github.com/kenwheeler/slick" rel="nofollow noreferrer">slick.js</a> to make slider. In order to keep my text div lined up with my media div, I've added the option :<code>variableWidth:true,</code> to the text div.
With this option, the media div and, text div grow and shrink with each othe... | 1 | 3,634 |
Queue using Array>>shifting elements after popping | <p>I'm trying to implement a queue using an array. Here is my code:</p>
<pre><code>#include <iostream.h>
#define SIZE 5
class queue
{
int *Queue, front, rear;
public:
queue() {
Queue = new int[SIZE];
front = rear = -1;
}
void push() {
if (rear == (SIZE-1)) {
... | 1 | 1,083 |
binding a ref does not work in vue.js? | <p>When I v-bind a element-ref with <code>:ref="testThis"</code> it stops working it seems. Compare <a href="https://codesandbox.io/s/9437494r5w" rel="nofollow noreferrer">this version</a> which works:</p>
<pre><code><template>
<div>
<q-btn round big color='red' @click="IconClick">
... | 1 | 1,288 |
ffmpeg delay in decoding h264 | <p>I am taking raw RGB frames, encoding them to h264, then decoding them back to raw RGB frames.</p>
<pre><code>[RGB frame] ------ encoder ------> [h264 stream] ------ decoder ------> [RGB frame]
^ ^ ^ ^
encoder_write encoder_read deco... | 1 | 2,339 |
Image Loader "SkImageDecoder::Factory returned null" | <p>I pass my view imageview into this imageloader class I have created, but for some reason I am getting this error "SkImageDecoder::Factory returned null" which seems to only happen for some images, that the url's should be fine with. It will only load 3 out of a list of ten. I was wondering if this task wasn't proper... | 1 | 2,553 |
Solr spellcheck: cannot show result, always receiving same error | <p>So, Im quite new on solr, and maybe I have so many understanding problems. </p>
<p>What Im trying to do right now, its an autosuggestion for my search bar.
For example, if you write "glves", the result should be "gloves". This is inside an autocomplete, which works fine right now. But of course, when I type "glves... | 1 | 2,839 |
How to stop event-handler? | <p>To show the live-stream of a camera an event-handler is started. The code for this event is:</p>
<pre><code> private void onFrameEventFocusCam(object sender, EventArgs e)
{
uEye.Camera Camera = sender as uEye.Camera;
Int32 s32MemID;
Camera.Memory.GetActive(out s32MemID);
... | 1 | 1,685 |
How to Lock/Freeze the First Column of Kendo Grid with Hierarchy? | <p>I am using Telerik Kendo UI Grid in ASP.NET MVC. I tried to apply the new feature of Kendo which is the <code>.Locked() and .Lockable()</code> Property to lock/freeze the first column of my grid(<strong>with hierarchy</strong>).But, when I tried to run my program, it got an error. </p>
<p>I have also tried <a href=... | 1 | 1,397 |
Get values other views when onClick. DataBinding | <p>I have xml with android data binding:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<data>
<variable name="presenter" type="com.myapp.presentation.pre... | 1 | 1,626 |
Testing HttpRequestExecutingMessageHandler using MockRestServiceServer | <p>I'm working on an app using Spring Integration that uses the <code>HttpRequestExecutingMessageHandler</code> class to make backend requests to a REST service at regular intervals. I would like to mock out the REST server in testing, and rather than construct a mock server I would prefer to use <code>MockRestServiceS... | 1 | 1,458 |
Cannot Parse a JSON response that is received by RestTemplate | <p>I need to parse a JSON response that I receive from a web service but I am receiving following error message, I puzzled with the this. I tried it without Results class as well to no avail. Any help would be appreciated.</p>
<blockquote>
<p>The request sent by the client was syntactically incorrect.</p>
</blockquo... | 1 | 4,006 |
shouldComponentUpdate equivalent for functional component, to ignore state changes | <p>My code has a component that takes both props and has its own internal state.<br>
The component should rerender ONLY when its props change. State changes should NOT trigger a rerender.<br>
This behaviour can be implemented with a class based component and a custom <code>shouldComponentUpdate</code> function.<br>
How... | 1 | 1,242 |
Error Eigen library on linux | <p>I have implemented this code with Eigen library to have Triplet structure.
This code works very well in my project on my Mac OS X. However the same code don't work on Linux platform.</p>
<pre><code> Eigen::SparseMatrix<double> spdiags(const MatrixXd& B, const
Eigen::Matrix<int, 1,1>&... | 1 | 1,415 |
Foreign Key confusion | <p>I am new to database and making a gym management system, I implemented a database from the tutorials on www.homeandlearn.co.uk. I have completed the project without foreign keys. Now I have to link tables but I am getting this error:</p>
<blockquote>
<p>Update cannot proceed due to validation errors.<br>
Please... | 1 | 1,256 |
Multiple schema validation in Java | <p>I am trying to do multiple schema validation in Java. I don't understand where I am doing wrong. Any help will be appreciated. </p>
<p><strong>abc.xsd</strong></p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xn="project-xml-r4j_another.... | 1 | 1,814 |
Graph API Facebook timeout | <p>I have Facebook pages which I need to extract sum data every day(like,post,shar...), but I run my script hi got data for 2 or 3 page Facebook max and hi stoped with sum error</p>
<p>my script</p>
<pre><code>include '../webroot/fb/facebook.php';
//Get Facebook SDK Object
$config = array(
... | 1 | 2,004 |
Bulk Insert Multiple Semicolon Delimited Files into SQL Server | <p>I have 400 csv files with semicolon as its delimiter.</p>
<p>Example: the column headers (all in one field in Excel):</p>
<pre><code>CUST_NAME;Transdate;Transnum;UNIT_PRICE;QTY;STYLE_NUMBER;country
</code></pre>
<p>Sample data in Excel file (all in one column):</p>
<pre><code>Bar Clayn;2012-01-01 00:00:00.0;4572... | 1 | 1,235 |
Passing arguments to callback functions with Scrapy, so can receive the arguments later crash | <p>I try to get this spider work and if request the components to be scraped separately it works, however when try to use Srapy callback function to receive the arguments later i get crashed. The goal is to craw over multiple pages and scrape data while write in output json file in format:</p>
<p>author | album | titl... | 1 | 1,516 |
How to append xml from hash table values in powershell | <p>I am having a hash table where it has Component names as Key and Baseline as Values.</p>
<p>Following lines depict my hash table</p>
<pre><code>Name Value
---- ... | 1 | 1,143 |
EmbeddedKafka failing since Spring Boot 2.6.X : AccessDeniedException: ..\AppData\Local\Temp\spring.kafka* | <p><strong>e: this has been fixed through Spring Boot 2.6.5 (see <a href="https://github.com/spring-projects/spring-boot/issues/30243" rel="nofollow noreferrer">https://github.com/spring-projects/spring-boot/issues/30243</a>)</strong></p>
<p>Since upgrading to Spring Boot 2.6.X (in my case: 2.6.1), I have multiple proj... | 1 | 4,205 |
Material Angular - Compile error - Class 'MatStepper' incorrectly extends base class 'CdkStepper' | <p>I have problems with compiling my angular website. I have installed all necessary dependencies via npm, but it is not working. I use Material Angular too. And this is the problem, without it works.</p>
<p>Log:</p>
<pre><code>webpack: Compiling...
Date: 2017-11-05T13:02:47.880Z
Hash: a4f6320620f5d2e9766f
Time: 665m... | 1 | 1,542 |
Show Icons for Custom UTIs in UIDocumentPickerViewController | <p>The iOS app I'm working on exports a UTI. The relevant parts of the <code>Info.plist</code> look like this:</p>
<pre><code><key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.xml</s... | 1 | 1,509 |
Exception occurs while running both AXIS2 services and JAXWS services in the same application and same server | <p>To do a POC, I have a wrote a JAXWS class in the same package used for AXIS-2 services and configured that class in web.xml (content pasted below)</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSch... | 1 | 3,744 |
Dynamically creating a menu in Tkinter. (lambda expressions?) | <p>I have a menubutton, which when clicked should display a menu containing a specific sequence of strings. Exactly what strings are in that sequence, we do not know until runtime, so the menu that pops up must be generated at that moment. Here's what I have:</p>
<pre><code>class para_frame(Frame):
def __init__(se... | 1 | 1,126 |
How to discover the URL for my organization in Dynamics 365 CRM (online) using Web Api | <p>I cannot connect Dynamics CRM online to discover organization URL using a Web API. The sample code from Microsoft is not working. </p>
<p>I am developing a console application, and want to connect to CRM-online using Web API(we are not using Organization Service since we would like to move to Web API), In the appli... | 1 | 1,380 |
Why does TextView.setText cause the enclosing ScrollView to scroll? | <p>I've got this odd problem which is happening on 1.6, 2.2, and a MyTouch 3G Slide (which is API #7, and listed as "2.1-Update1" in the Android Device Chooser). If anyone can explain what I'm doing wrong & how to fix it (or possibly confirm that this is an Android bug), I'd greatly appreciate it!</p>
<p>The basi... | 1 | 5,346 |
Changing custom colors in JFreeChart stacked 3D bar chart | <p>I have already searched enough on web but with no luck.</p>
<p>I have created a stacked 3d bar chart wherein I am unable to change the default colors. I tried all the advices provided .</p>
<p>Below a small snippet of my code. This is my input.</p>
<p>My Data from Db is:</p>
<pre>
A 0 2
B 15 53
C 0 2
... | 1 | 1,250 |
Extending my Outlook VBA code to use Free/Busy and schedule appts | <p>I sometimes travel internationally and when I do, I have to meet with 5 to 10 internal collegues. Till now, what I do is use the following code to send out introductions and see when they may be free to meet. I put their first and last names in Excel, as well as whether or not I've met them before.</p>
<pre><code>S... | 1 | 1,075 |
How to check if a URL is an image or Youtube video | <p>I have created this method which firsts checks if a URL is valid, and then checks if it links to an image or if it is a youtube video. My program fails when it gets to the </p>
<pre><code>String contentType = connection.getHeaderField("Content-Type");
</code></pre>
<p>portion of the method. Why is this happening?... | 1 | 2,052 |
How to show polyline using OpenLayer | <p>Using the following code I get my desired result i.e I get the polyline on my given latitude, longitude</p>
<pre><code><html>
<head>
<title>OpenLayers Example</title>
<script src="http://openlayers.org/api/OpenLayers.js"></script>
</head>
&... | 1 | 1,515 |
android & libgdx - disable blurry rendering | <p>i'm trying out libgdx as an opengl wrapper , and i have some issues with its graphical rendering :
for some reason , all images (textures) on android device look a little blurred using libgdx . this also includes text (font) . </p>
<p>for text , i thought that it's because i use bitmap-fonts , but i can't find an a... | 1 | 1,184 |
Mysql2::Error: Table 'table_name' doesn't exist: SHOW FULL FIELDS FROM `table_name` | <p>I am using rails 5.1.1 and mysql 5.7. I have a migration class:</p>
<pre><code>class CreateCompanies < ActiveRecord::Migration[5.1]
def change
create_table :companies do |t|
t.string :ragione_sociale
t.references :forma_giuridica, foreign_key: true
t.string :telefono_fisso
t.string :fax
... | 1 | 1,659 |
Masonry : Same Column width in fluid div | <p>I am trying to make a blog page with masonry effect. Check this fiddle <a href="http://jsfiddle.net/V3rJt/" rel="nofollow noreferrer">http://jsfiddle.net/V3rJt/</a></p>
<p>The problem i am facing is that, suppose i have a max width of 1080px and i want 3 equal column with same gutter space then its working fine no ... | 1 | 1,814 |
VS2010 Code Snippet Shortcut Not Showing | <p>I've created a code snippet in VS2010. It isn't showing as a shortcut when I start typing. I've called it propnch.</p>
<p>It is available when I use Ctrl-K, Ctrk-X but when I just start typing prop... it isn't showing as an option.</p>
<p>Have I missed some kind of setting somewhere?</p>
<p>I had screen shots, bu... | 1 | 1,353 |
Convert html to word using c# | <p>I am using Microsoft.Office.Interop.Word to convert html to word.I am creating html file on local machine then converting it to word file.But word file is not showing correct formatting. It is just showing images. I have referred stackoverflow questions.But I found no luck.
My sample html file is as shown below:-</p... | 1 | 1,297 |
Tomcat Connection Pooling - java.lang.UnsupportedOperationException: Not supported by BasicDataSource | <p>I have tried C3po library for connection pooling but I am gettting errors such as <code>abstractMethodError()</code> for my code I then decided to go with the tomcat pooling thing. Now I am getting an </p>
<pre><code> java.lang.UnsupportedOperationException: Not supported by BasicDataSource
at org.apache.tom... | 1 | 2,484 |
An efficient way to implement a custom generic list/queue/stack combination | <p>I have found more than one occasions where a generic collection needs to be treated as a list at one point in time and as a stack or queue at another time. For an an application I'm currently developing, it does not make sense to use three separate objects.</p>
<p>The simplest solution I could think of was to imple... | 1 | 1,106 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.