title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Signing and Verifying rsa signature in polarssl c | <p>I am working on using RSA encryption in an embedded system. for this i'll be using polarssl code. </p>
<p>I had got the encryption working on 128 bit but i am having trouble with the signature part.
When i run the code, i get a padding error on the verify (POLARSSL_ERR_RSA_INVALID_PADDING -0x4100... | 1 | 1,334 |
Jquery Validate errorPlacement | <p>I'm validating a form with jquery validate, and having a little trouble consistantly setting the error placement. The input field have different levels of nesting, some are in div some are in nested divs. However for all errors I want to be placed in the span with the class 'warming' above the input field in quest... | 1 | 1,736 |
Accessing files in S3 bucket from pyspark | <p>I am trying to access a file stored in the S3 bucket from pyspark code. It is giving me the attached error message.
The program works fine when working with files stored locally.
I tried using s3://, s3a:// and s3n:// but none of them seems to work.</p>
<p><strong>code:</strong></p>
<pre><code>ACCESS_KEY = "******... | 1 | 1,567 |
Body overlaps fixed, horizontal nav bar up top - CSS/HTML | <p>I have to make a website for an assignment, and I'm having a bit of trouble. I've created a navbar up the top, and it's in a fixed position. However, when I scroll, everything shows through it. What I want, is essentially for the webpage to start under the navbar, so it's there at the top, and when I click 'About Me... | 1 | 1,354 |
How do I put data in my Google spreadsheet using React JS | <p>I used this as reference <a href="https://github.com/ruucm/react-google-sheets" rel="nofollow noreferrer">https://github.com/ruucm/react-google-sheets</a>
but i kept getting a gapi <strong>404 error</strong> whenever i would run this
I have a hunch that the github link does not exists and therefore my app could not... | 1 | 1,542 |
how to join 4 table in linq | <p><br/>
i'm starter in linq and EF. i Have 4 table </p>
<p>CurrencyUnit</p>
<pre><code>CurrencyUnitID CurrencyName
-------------------------------
1 Dolar
2 Pond
</code></pre>
<p>Request</p>
<pre><code>RequestID WayBillNo
--------------------------
1 10000
2 ... | 1 | 1,542 |
Highchart, bar chart with multiple series | <p>How can I display a bar chart with multiple series:</p>
<p><a href="http://jsfiddle.net/qyd6w5tx/1/" rel="nofollow">http://jsfiddle.net/qyd6w5tx/1/</a></p>
<pre><code>$(function () {
$('#container').highcharts(
{
"chart": {
"style": {
"fontFamily": "Arial, sans-serif"
... | 1 | 4,201 |
Changing Project Metadata in Visual Studio 2013 C# | <p>I've got a Visual Studio 2013 package written in C# where I need to <strong>make some changes in the items and their attributes in a C++ project file while Visual Studio 2013 is running</strong> and has the project loaded. Actually, it could also be OK to save the project file at the point when the whole solution is... | 1 | 1,137 |
C#: Unable to receive large data on TCP Server | <p>I have created a TCP server. I am facing one problem. my TCP Server is not receiving data larger than 30000 bytes.</p>
<p>here is code to receive data</p>
<p><strong>MAX_TCP_DATA = 64000</strong></p>
<pre><code>private void Process()
{
if (client.Connected == true)
{
... | 1 | 1,233 |
JavaFX getting path of image store in Imageview with the help of filechooser need help D: | <p>my question is that I need help with getting the path from a image within a imageview in fxml file as I need to store the path of the image in an object. I am using a filechooser to input image into the imageView. I am planning to store that path into a object and claim it out at a later time like a profile page wou... | 1 | 3,634 |
how to include qt directories and library with cmake | <p>here's my cmake file:</p>
<pre><code>cmake_minimum_required(VERSION 3.13)
# set the project name
project(calculateur_interest VERSION 0.01)
# specify the C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
#Qt5
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
#set(CMAKE_P... | 1 | 1,292 |
Xamarin datatemplate with bindings in code behind not working | <p>I have tried to make a page in my app where all controls are generated dynamically via C# code behind. I am using a Nuget Packages, <code>DLToolkit, flowlist</code> to create a flow list.</p>
<p>I have already used this package in my project before using <strong>Xaml</strong>, and it fully works.
However when I try... | 1 | 2,733 |
How to run ElastAlert with supervisor | <p>I have elastalert set up on aws and I can invoke it directly in the terminal using commands <code>python -m elastalert.elastalert --verbose --rule example_rules/example_frequency.yaml</code> or <code>python -m elastalert.elastalert --config ./config.yaml --verbose</code> and the output in terminal and send an email ... | 1 | 2,105 |
python socket connection refused on Mac but not on Windows | <p>This is not a duplicate of <a href="https://stackoverflow.com/questions/12394950/connection-refused">connection refused</a>. This questions asks about the difference between <code>MacOS</code> and <code>Windows</code>. In addition the firewall on my <code>Mac</code> is off.</p>
<p>I'm trying to communicate with a d... | 1 | 1,504 |
Thymeleaf not working (th:fragment/th:replace) using bootstrap | <p>I'm trying to use thymeleaf for the first time to separate the bootstrap navbar and javascript into it's own seperate html file away from my main html page. I have the setup exactly as the thymeleaf tutorial laid out but it won't display the content correctly when I run Spring. </p>
<p><strong>index.html</strong> &... | 1 | 12,825 |
Rails action controller routing error | <p>I try to add an administration area to my website. So I added a namespace that contains the controllers "posts" and "category".
In the routes.rb file, I added </p>
<pre><code>namespace :admin do
resources :posts , :categories
match '/' => 'posts#index', :via => :get
end
</code></pre>
<p>but with the url:</... | 1 | 3,513 |
plot_partial_dependence() from scikit-learn incorrectly raises NotFittedError for properly fitted models (e.g. KerasRegressor or LGBMClassifier) | <p>I'm trying to create partial dependence plots using <code>sklearn.inspection.plot_partial_dependence</code> on a model that I successfully built using keras and the keras sklearn wrapper utility (see code block below). The wrapped model successfully builds, it can use the fit method, and after fitting it can use the... | 1 | 3,049 |
React Js Updating a value inside a array with onChange to a child component | <p>I have a list with opening_hours that I map inside my render function. I map them to a child component. I want to change the value of each object inside my parent state when the child component state is changed. Only problem is that my values don't change in the child component nor the parent state. I have passed th... | 1 | 2,125 |
UNIX pipes on C block on read | <p>I'm struggling to implement a shell with pipelines for class.</p>
<pre><code>typedef struct {
char** cmd;
int in[2];
int out[2];
} cmdio;
cmdio cmds[MAX_PIPE + 1];
</code></pre>
<p>Commands in the pipeline are read and stored in <code>cmds</code>.</p>
<p><code>cmdio[i].in</code> is the pair of file d... | 1 | 1,264 |
Jackson: "Conflicting setter definitions for property" in JUnit Tests | <p>I have an application that queries EC2 <code>Instance</code> data using Amazon's AWS SDK for Java. The Instance is serialized to a JSON String using the <code>Jackson</code> wrapper class included in the AWS SDK. Later, I'm able to use the <code>Jackson.fromJsonString(String, Class)</code> method to deserialize th... | 1 | 1,935 |
Cannot set property 'date' of undefined when setting up AngularJS UI Bootstrap Datepicker | <p>Please consider this <a href="http://plnkr.co/edit/2LkwT05PKPTDI4x9VyOV?p=preview" rel="nofollow">Plunk</a>.</p>
<p>I have this code to set up the datepicker (basically a (very minorly modified) verbatim copy paste from <a href="https://angular-ui.github.io/bootstrap/#/datepicker" rel="nofollow">UI Bootstrap</a>).<... | 1 | 2,094 |
Invalid Parameter Error when calling System.Drawing.Image.Save | <p>i am getting Invalid Parameter Error when calling System.Drawing.Image.Save function.
i google and found a few suggestions but nothing works.
what i am trying to do is that, when i upload an image and if it's lager than 100kb i would like to reduce the image size to half. please help.</p>
<pre><code> System.Dra... | 1 | 1,865 |
Xamarin - Refresh listview after Post | <p>I am developing a <strong>Xamarin Forms App</strong>, it has a tabbed page. One of the tabs contains a <code>ListView</code> control showing data consumed from a Rest API. If I tap the add button a modal shows where I can create new items and send post to the Rest API. After success I pop the modal from navigatio... | 1 | 2,187 |
How to make Flask-WTFoms update labels dynamically from list of label names? | <p>I use WTForms to define form for data filtering it is defined like this (My goal is to have user specified labels for BooleanFields set, I let each user to name labels for fields and I save name of fields to Google Datastore):</p>
<pre><code>class MainFilterForm(FlaskForm):
"""
Represents main filter form.
... | 1 | 1,941 |
Illegal start of expression? | <p>I'm trying to build a simple Android app that increments a number displayed every time a button is pressed, but I can't work out how to fix the "illegal start of expression" error I keep getting.</p>
<p>My code:</p>
<pre><code>package com.clicker;
import android.app.Activity;
import android.os.Bundle;
import andr... | 1 | 1,177 |
PowerShell Find Driver Version | <p>Using DevCon utility, I ran this command to get the list of all of the drivers installed in the computer.</p>
<pre><code>devcon.exe driverfiles * > drivers.txt
</code></pre>
<p>The output looks like this:</p>
<pre><code>USB\ROOT_HUB20\4&361B340A&0
Name: USB Root Hub
Driver installed from C:\win... | 1 | 2,091 |
Transferring Yii site over to new server | <p>I'm getting this PHP error when I transferred the site accross another hosting with new domain. I have changed all the database settings correctly. I am new in Yii and not sure how to set this up correctly. Some say this is issue with PDO but I'm not too sure.</p>
<p>How can we fix this issue?</p>
<pre><code>Desc... | 1 | 1,513 |
Sending Binary File TcpClient - File Is Larger Than Source | <p>To put my toe in the water of Network programming, I wrote a little Console App to send a png file to a server (another console app). The file being written by the server is slightly bigger than the source png file. And it will not open.</p>
<p>The code for the client app is:</p>
<pre><code> private static void... | 1 | 1,193 |
react router 4 query parameters example not working | <p><strong>problem</strong>: trying to implement react router query parameters example on my local environment. code below from their website.</p>
<pre><code>import React from "react";
import { BrowserRouter as Router, Link } from "react-router-dom";
function ParamsExample({ location }) {
let params = new URLSearch... | 1 | 1,551 |
Why It requires the default constructor instead of using my factory method directly? | <p>Using <strong>Visual Studio 2017</strong> I have an <strong>ASP.NET Core</strong> MVC application. I registered the necessary method of my factory, because in the model each instance of each my class can be created only through the factory:</p>
<pre><code>public void ConfigureServices(IServiceCollection services)
{... | 1 | 1,110 |
Passing multiple tables to stored procedure with multiple table-valued parameters problem | <p>I am trying to pass DataTables to a stored procedure that accepts multiple table-valued parameters. The problem is, it seems that all the parameters are being passed to the first one so I am getting errors like this:</p>
<blockquote>
<p>Trying to pass a table-valued
parameter with 13 column(s) where the
corre... | 1 | 1,205 |
mvn Deployment failed: repository element was not specified in the POM | <p>When I run mvn clean deploy on my project I get an error</p>
<p>Also my project in eclipse displays the following errors which I don't know if they are related to my current problem.</p>
<p>Project configuration not up-to-date with pom.xml
plugin configuration not covered by lifecycle configuration</p>
<p>In addi... | 1 | 1,040 |
Can't read mongo database after deployment on heroku, returns 503 error, but it works locally | <p>After executing npm run build and having fixed path bugs on my server.js it works nice in localhost. But once I deploy it to Heroku the data never charges and ends up with these messages in chrome console:</p>
<blockquote>
<p>Failed to load resource: the server responded with a status of 503 (Service Unavailable)</p... | 1 | 2,327 |
Retrieving Selected Row/Cell Values in DataGridView From one form to another | <p>I am new to C#.net . I want to get the dataGridView cell click cell values to textbox of another form but couldn't found the right method. I have two forms 1. UserPanelfrm and 2. frmAddProjects . UserPanelFrm consists of dataGridView which shows the list of projects from database . I want to show the cell informatio... | 1 | 1,711 |
scikits audiolab installation error | <p>I am using mint Linux Mint 13 maya (linux 3.2.0-23-generic x86-64)<br>
I am trying to install scikits.audiolab for performing some audio signal processing. I have downloaded all prerequisites i.e. (python-dev python-numpy python-setuptools libsndfile-dev).
I have made site.cfg as</p>
<pre><code>[sndfile]
include_... | 1 | 3,467 |
Cannot attach database within transaction | <p>I am working on an application in which I have to work with two databases. I want to add records from tables of new database to tables of old database, I have put new database on asset folder of my project and I am able to query with new database as well as old database.</p>
<p>The problem is when I am trying to at... | 1 | 2,814 |
nodejs / grunt usemin plugin | <p>I'm using yeoman and grunt to build my project and grunt-css plugin for using 'cssmin' instead of 'css' built-in with grunt.js</p>
<h2>index.html</h2>
<pre><code><!-- build:css styles/styles.css -->
<link rel="stylesheet" href="styles/main.css"/>
<!-- endbuild -->
<!-- build:js scripts/script... | 1 | 1,430 |
Getting a Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control error | <p>I'm getting a "Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control." error message. I've looked here to see what others have said about that error. It looks to me as though some people have gotten the binding syntax wrong. I believe I am using the correct da... | 1 | 1,090 |
How to correctly use grpc asynchronously (ClientAsyncReaderWriter) | <p>I can't find a grpc example showing how to use the ClientAsyncReaderWriter <em>(is there one?)</em>. I tried something on my own, but am having trouble with the reference counts. My question comes from tracing through the code.</p>
<p><a href="https://github.com/grpc/grpc/blob/3640b4084ac8485ef99ab3162cae7b8b079b... | 1 | 1,310 |
Generate a calendar table with hours of the day using SQL Server 2012 | <p><strong>Problem Statement:</strong>
I work for a fire department and I am working on statistical analysis of my data. One issue is to generate the number of calls for service for every hour of every day for a calendar year. I need a table that can be joined to the fire incidents that has every day of the year and e... | 1 | 1,495 |
MVC Tabs and Partial Views | <p>Im quite new to MVC and have this huge application which requires using tabs and partial views . I have a ViewModel whose fields are lists of my EF classes. Im passing this view model class (ProjInfoVM) into my ProjInfo View. The view has 3 tabs which are form representing each of the EF Classes- they all require to... | 1 | 2,149 |
Populating a chlid jSF selectOneMenu - implicit value validation error | <p>As you can see in the screenshot, I am having a <strong>JSF implicit value validation error</strong> for the property "member.city".
The purpose is to -through ajax - populate the city select One Menu after selecting a country on the previous Country Select one menu.
This is achieved by using <strong>selectOneMenu c... | 1 | 2,282 |
How do I cause SecurityTokenServiceConfiguration to load configuration information from the app.config? | <p>I am creating an STS with the WIF framework included in .NET 4.5. I am self-hosting this STS (for now), using the <code>WSTrustServiceHost</code> class. In order to do that, I am doing the following:</p>
<pre><code>var conf = new SecurityTokenServiceConfiguration("isser name here", true)
{
DisableWsdl ... | 1 | 1,202 |
"Failed to transform class with name" error when mocking a class with a static enum class | <pre><code>java.lang.IllegalStateException: Failed to transform class with name com.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX$ReadSets. Reason: null
at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:219)
at org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLo... | 1 | 2,432 |
Apache POI 4.0.0 compilation error on CellType | <p>Compilation fails with this error :</p>
<pre><code>cannot find symbol
case FORMULA:
symbol: variable FORMULA
</code></pre>
<p>The same error occurs on next cases.</p>
<p>I'm using Apache POI 4.0.0 with Java 8.</p>
<p>My code is :</p>
<pre><code>try (Workbook wb = WorkbookFactory.create(inputStream)) {
Sheet... | 1 | 3,294 |
Tackling Class Imbalance: scaling contribution to loss and sgd | <p><strong>(An update to this question has been added.)</strong></p>
<p>I am a graduate student at the university of Ghent, Belgium; my research is about emotion recognition with deep convolutional neural networks. I'm using the <a href="http://caffe.berkeleyvision.org/" rel="noreferrer">Caffe</a> framework to impleme... | 1 | 1,106 |
How do i Show selected grid image in Full Screen | <p>i created a grid view app using a tutorial:</p>
<p><strong>Please see Tutorial Link:</strong> <a href="http://techiedreams.com/android-custom-gridview-scalable-auto-adjusting-col-width/" rel="nofollow">http://techiedreams.com/android-custom-gridview-scalable-auto-adjusting-col-width/</a></p>
<p>and i want to add n... | 1 | 9,675 |
SmtpClient "Request failed; Mailbox unavailable" | <p>Im trying to send and Email with SmtpClient at the yahoo smtp server </p>
<blockquote>
<p>"smtp.mail.yahoo.com", 587</p>
</blockquote>
<p>The first time trying, I got an email telling me to change my account settings to allow smtp requests to work, but after doing that, the mailbox is unavailable.</p>
<p>SendMa... | 1 | 1,787 |
Display matplotlib graph in browser | <p>I am using matplotlib library of python for plotting graphs. My program is to detect the outliers in the system. I am making an interface for this. I have to show this graph in browser on clicking the button. Here is my php file code :- </p>
<pre><code><?php
if (isset($_POST['button']))
{
echo s... | 1 | 1,103 |
C# console programming how to run perl script in command prompt? | <p>I would like to ask a few questions:</p>
<p>•How to execute the command "C:\strawberry\perl\bin\perl.exe C:\temp\bin\mactime.pl -b C:\temp\bin\testing.bodyfile -z UCT-8 > C:\temp\bin\testing2.txt" in a C# console program?</p>
<p>•How do I display the results of the console? Should I use "console.writeline"?</p>
<... | 1 | 1,102 |
Unable to run my program using JETTY | <p>I am finding it difficult to run my project on Jetty. I am following the <a href="http://viralpatel.net/blogs/2010/11/spring3-mvc-hibernate-maven-tutorial-eclipse-example.html" rel="nofollow">following tutorial so all codes are obtained from it</a>. The steps i took to run my project is as follows;</p>
<p>1.) I wr... | 1 | 5,962 |
Changing the width of the y-axis label area in jqplot | <p>Ok, I've got a bar chart.
And it basically works... but the labels on the y-axis are kinda long and wrap and then run into each other.</p>
<p>I've tried changing the css, but it gets overidden by JS.
I tried scanning thru the jqplot library to find out where it happens but i got lost.
Any ideas? is there just an o... | 1 | 1,099 |
Concurrent requests via Apache Http Client (and java.util.concurrent) seem to finish correctly but crash my OS | <p>i am currently learning to use the the concurrent features of Java provided by the package java.util.concurrent. As an exercise i tried to write a little program that could be used to performance test a HTTP API. But somehow my program is not terminating correctly very often. It even crashes my OS.</p>
<p>Following... | 1 | 2,994 |
Spring Data MongoDb - how to use "findAll" method which return only valid documents | <p>I use Spring data mongo as ORM for accessing to my MongoDb.
I need to read a MongoDb collection containing documents that I don't manage content and its validity.
And I'm facing an issue: Documents are not all valid and when I use 'findAll' method, I just catch an exception. Instead of this behaviour, I would like t... | 1 | 2,697 |
Azure Mobile App - UpdateAsync - waiting for activation "Error" | <p>I have two projects</p>
<p>First is <strong>Mobile App with Xamarin.Forms</strong> </p>
<p>Second is <strong>Windows Form Application</strong></p>
<p>and both have the same API that was created using <strong>Azure Mobile App.</strong></p>
<p><strong>in Windows form</strong>
when I'm trying to update a row in t... | 1 | 1,521 |
log4net with MinimalLock locking model not working when setting file name programmatically | <p>When dynamically setting the log file name, the <code>RollingFileAppender</code> used with the <code>log4net.Appender.FileAppender+MinimalLock</code> locking model
does not seem to log anything to the file. However, when using the appender without this locking model, logging works.</p>
<p>In the config file below,... | 1 | 1,155 |
Redux-saga: [...effects] has been deprecated in favor of all([...effects]), please update your code | <p>I've upgraded redux-saga to the latest 0.15.x release, and I've tackled a lot of deprecations in terms of <code>[...effects] has been deprecated in favor of all([...effects]), please update your code</code></p>
<p>There is only one deprecation left, and I've identified it in this part of the code. Can anyone take ... | 1 | 2,040 |
error with project in spring, hibernate | <p>This the error that I'm getting:</p>
<p>SEVERE: StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usuarioControlador': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not au... | 1 | 1,390 |
How to stop text going past footer? | <p>If I put a lot of text in my element, the text flows past my footer. How can I make my footer stay at the bottom regardless if there is a lot of text or no text.</p>
<p>Here is my HTML:</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<t... | 1 | 1,500 |
jersey webservice returns a 415 when executing a PUT from Ext.Ajax.request | <p>So, I've got a pretty simple RESTful jersey webservice, and I'm wanting to call it from my javascript code. I have no problem executing a GET request, but for some reason, when I execute a PUT, I get back a "415 Unsupported Media Type" error. Any idea what I'm doing wrong?</p>
<p>Here's my webservice :</p>
<pre>... | 1 | 1,968 |
Get pixels from IDirect3DSurface9? | <p>I want to get a fast access to the pixels of a game which uses directX9 or 10. Therefore I used the D3D9 library. Do I have to use the D3D10 library when it is a directX10 game? If this is true, the next part is irrelevant. </p>
<p>The following code works except I'm only get zeros in <code>qDebug("%.2f, %.2f, %.2f... | 1 | 1,299 |
How to generate a license key using java | <p>How to generate 25 digit license key using java program.how to convert the given string into 25 digit license key using encoding and decoding formats.</p>
<p>I use the following code .but it will give first seven digits in license key as AAAAAAA then the license key will change after that first seven digits.how can... | 1 | 3,455 |
Is this possible to join tables in doctrine ORM without using relations? | <p>Suppose there are two tables.</p>
<pre><code>Table X--
Columns:
id x_value
Table Y--
Columns:
id x_id y_value
</code></pre>
<p>Now I dont want to define relationship in doctrine classes and i want to retrieve some records using these two tables using a query like this:</p>
<pre><cod... | 1 | 1,161 |
FLUTTER: How can I show the weather Icon from Open Weather Map? | <p>I Would like to show open weather icons on my app but I'm not sure how I can do so. A sample of the data I'm getting from <code>openweather</code> map is below, and I've also included an example of how I'm getting the other data.</p>
<p><strong>My Code:</strong></p>
<pre><code>import 'dart:ui';
import 'package:flu... | 1 | 4,456 |
How can I transliterate Hindi text between Hindi and Latin characters using Java? | <p>How to convert a hindi meanig written in english alphabet to Hindi using Java?</p>
<p>eg.</p>
<p>Input text is: anil NE lath marke apko Ganga me hi Fenk diya.</p>
<p>in Hindi </p>
<p>Output text is: अनिल ने लात मार्के आपको गंगा में ही फेंक दिया</p>
<p>How to convert using Java or any Java API?</p>
<p>... | 1 | 4,460 |
Creating a multiple y-axis combo chart | <p>I'm looking at further improving a combo chart I created here by making it first a dual y axis combo chart then a multiple axis combo chart.</p>
<p>As seen <a href="https://jsfiddle.net/S5bKq/1304/" rel="nofollow noreferrer">here</a> I've figured out how to create a basic combo chart using the tutorial.</p>
<p><di... | 1 | 1,214 |
Java Loops -- Strings of First and last characters of every word | <p>I am currently in an Intro to Programming class at San Jose and as part of our assignment we were to create a class with methods that either return a string with the first letters of each word or the last letters of each word. </p>
<p>The instance variable "phrase" holds the phrase that is accessed in the methods. ... | 1 | 1,242 |
How to run boost asio resolver service on more threads? | <p>I am using boost::asio::ip::udp::resolver in an SNMPV2 implementation to determine wheather a host is reachable or not.</p>
<pre><code>using Resolver = boost::asio::ip::udp::resolver;
Resolver resolver(ioService);
Resolver::query query(connectOptions.getHost(),
connectOptions.getPort());
Resolver::iterator ... | 1 | 1,661 |
Postcss-loader not minifying css output | <p>I'm using webpack and postcss-loader to autoprefix and minify my CSS, before loading it into css-loader to use css-modules. I'm having trouble with minifying CSS. Examining the emitted .js file by webpack shows the CSS isn't minified with cssnano (because I can still see whitespace characters). What am I doing wrong... | 1 | 1,679 |
I got bad matching results with OpenCV and SIFT. How could I improve it? | <p>I tried to create a matcher which uses sift to detect and match key-points. I tried to use it but I didn't get the results what I expected. It turns out it's not so scale and rotation invariant in my implementation. What is wrong with my code?</p>
<pre><code>import numpy as np
import cv2
from matplotlib import pypl... | 1 | 1,501 |
Android Wifi DPP (Wi-Fi Easy Connect) | <p>Since Android 10+ doesn't let you connect to wifi networks programmatically anymore (you can only suggest/add networks to the list but they may never connect if you have an existing wifi connect), I'd like to use WiFi Easy Connect
<a href="https://source.android.com/devices/tech/connect/wifi-easy-connect" rel="nofol... | 1 | 1,158 |
Erlang and its consumption of Heap Memory | <p>I have been running a highly concurrent application on my HP Proliant Servers. The application is a file system indexer i coded in erlang. It spawns a process per Folder it finds on the file system and records all file paths in a fragmented Mnesia Database. (Database consists of <code>disc_only_copies</code> type of... | 1 | 4,380 |
CS7036 C# There is no argument given that corresponds to the required formal parameter of c# | <p>I created bool dropIndexes to void ladujZBazy and created if (dropIndexes) beacuse When I checked items on list in checkedListBox1 and search some items using textBox1 my previous check is gone. </p>
<p>I have some problem with no argument was given for the "dropIndexes" formal parameter of the "dbopakowania.ladujZ... | 1 | 2,805 |
Input Format to pcolormesh | <p>I'm attempting to make heat/intensity map using Basemap. My inputs are a set of lats, lons, and intensity at that point. The dataset looks like this:</p>
<pre><code>lat[0], lon[0] = intensity[0]
lat[1], lon[1] = intensity[1]
...
lat[n], lon[n] = intensity[n]
</code></pre>
<p>At each index the lat and lon correspon... | 1 | 1,060 |
Why mm_struct->start_stack and vm_area_struct->start don't point to the same address? | <p>As far as I understand memory management in Linux kernel, there is a mm_struct structure responsible for address space in each process. One important memory region is stack. This should be identified by vm_area_struct memory region and mm_struct itself has a pointer mm_struct->stack_start which is stack's address. <... | 1 | 1,314 |
Importing Google-Play-Services in the android project removes R file | <p>While trying to use google maps v2 for application as suggested by <a href="https://developers.google.com/maps/documentation/android/start#installing_the_google_maps_android_v2_api/" rel="nofollow">this link</a> i went about the procedure to get the key and then followed the <a href="http://developer.android.com/goo... | 1 | 2,143 |
Android How to put a RelativeLayout aligned to bottom? | <p><img src="https://i.stack.imgur.com/xSwIT.png" alt="enter image description here"></p>
<p>I can show you in the prnt screen above the layout i actually have with my xml and the layout i pretend to have. I have made a few changes in the Relative Layout settings but cant solve it.</p>
<p>Here is the code:</p>
<p><s... | 1 | 1,815 |
Elasticsearch RestHighLevelClient missing transitive dependencies | <p>I'm trying to use the RestHighLevelClient via this dependency</p>
<pre><code> <dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-high-level-client</artifactId>
<version>6.0.1</version>
</dependency>
<... | 1 | 2,062 |
terraform templatefile for aws policies list | <p>I have an example of this below from my main.tf.
For some reason it forces double quotes on the template variables to wrap around on my template file while examples from other sources using below without quote wrap:</p>
<pre><code>%{ for i in split(",",mylist) ~}
Here's a value: ${i}
%{ endfor }
</code></p... | 1 | 1,131 |
SAPUI5 bind JSON Model consisting of objects to sap.m. Table | <p>I have a problem binding my JSON Model to a <code>sap.m.table</code>. The model itself gets generated through an array which itself gets filled throughout the code and in the end it consists of different objects. </p>
<p>Here's a screenshot of the object data:</p>
<p><a href="https://i.stack.imgur.com/RXoEl.png" r... | 1 | 2,725 |
Specifying go build's version of C++ | <p>I'm trying to build a go project that uses a third party library (GDAL) that's written in C and C++. I've run into this error:</p>
<pre><code>In file included from contour.cpp:31:0:
cpl_port.h:187:6: error: #error Must have C++11 or newer.
# error Must have C++11 or newer.
^
In file included from C:/TDM-... | 1 | 1,162 |
GPS provider enabled but getLastKnownLocation(provider) returns null | <p>I'm trying to use a GPS Provider for my app.</p>
<p>The app finds the device’s current location, using the GPS Location Provider.</p>
<p>The app works just fine. But, although my GPS_Provider is enabled, <code>geLastKnownLocation()</code> returns null.</p>
<p><strong>MainActivity.java</strong></p>
<hr>
<pre><co... | 1 | 1,055 |
Recursively adding a node into a .NET TreeView | <p>I need to create a menu structure taken from a database table which uses an ID and a ParentID and a Rank which is used to determine the order of the nodes.</p>
<pre><code>Root(ID 1, ParentID 0, Rank 1)
- Node(ID 2, ParentID 1, Rank 1)
- Node(ID 3, ParentID 2, Rank 1)
- Node(ID 4, ParentID 3, Rank 1)
... | 1 | 2,210 |
Salesforce: An APEX test class for a web service callout | <p>I've been trying to figure out the test class for a web service callout. I have the four different classes. <code>API_Member</code> which has all the parameters with all the information and matching of the fields. I have a <code>API_Response</code> class and I've got an <code>AccountTrigger</code> and <code>AccountT... | 1 | 3,891 |
void android.view.View.dispatchWindowVisibilityChanged(int)' on a null object reference | <p>I have an Activity A [MainActivity] from which I start Activity B [Videoplayer]<br />
<strong>Case 1:</strong> Click a video thumbnail from Activity A => Goes to Activity B => Play video for few seconds (important: you need to play the video for few seconds) => Click Back navigation => comes back to Acti... | 1 | 2,180 |
Why is it that gdb "can't compute CFA" when using a separate debug symbols file? | <p>I'm trying to invoke gdb with a stripped executable and a separate debug symbols file, on a core dump generated from running the stripped executable.</p>
<p>But when I use the separate debug symbols file, gdb is unable to give information on local variables for me.</p>
<p>Here is a log showing entirely how I produ... | 1 | 3,308 |
ConstraintLayout with DataBinding incorrect width in RecyclerView | <p>I am trying to play around with new ConstraintLayout. And I made the layout for my RecyclerView's row. It has ConstraintLayout as root element which width is set to <code>match_parent</code> and when I run my app it renders just as expected</p>
<p><a href="https://i.stack.imgur.com/zOxWv.png" rel="noreferrer"><img ... | 1 | 1,173 |
How to fix "Failed to snapshot build script" | <p>I installed flutter for web and dart sdk. Added to path bin folders. Ran <code>flutter pub global activate webdev</code> and <code>flutter pub upgrade</code>, but after entering <code>webdev serve</code> I always getting error": </p>
<pre><code>[SEVERE] Failed to snapshot build script .dart_tool/build/entrypoint/bu... | 1 | 1,704 |
Keras InvalidArgumentError: Incompatible shapes: [1,8,32] vs. [1,10,32] | <p>It stops training at the beginning of the first epoch. </p>
<p>The error is: </p>
<pre><code>InvalidArgumentError: Incompatible shapes: [1,8,32] vs. [1,10,32]
[[Node: training_8/RMSprop/gradients/loss_8/time_distributed_9_loss/mul_grad/BroadcastGradientArgs = BroadcastGradientArgs[T=DT_INT32, _class=["loc:@tr... | 1 | 1,329 |
webpack,vue.js, can't compile vue file | <p>I'm new to vue.js and webpack and I'm having trouble compiling my vue files. </p>
<p>I'm using Spring boot and pebble as templating technology and I want to generate a single .js file and include it in my index.pebble</p>
<p>Here is my webpack.config.js </p>
<pre><code> module.exports = {
// This is the "mai... | 1 | 1,238 |
Android AlarmManager and Service question | <p>There are some files in my app, but only 3 of them is important now. It's a reminder app with alarm sound and notifications.
I hava a maincode.java file containing a checkbox and its listener. If user checks in the chechbox an AlarmManager sends an intent to AlarmReceiver.java, which starts MyService.java. MyService... | 1 | 1,459 |
Android how to check gps is connected to the satellites? | <p>i got this gps method:</p>
<pre><code>// GPS
private void addGPSListener() {
globalconstant.db.setVersion(1);
globalconstant.db.setLocale(Locale.getDefault());
globalconstant.db.setLockingEnabled(true);
final String gps =
"CREATE TABLE IF NOT EXISTS GPS_Values ("
... | 1 | 3,357 |
HTML5 Audio element - Track length misreported by some Android browsers | <p>I'm working on an audio player using the HTML5 <code><audio></code> element and am trying to iron out a few issues cross-browser.</p>
<p>This player is configured to switch between audio tracks when a link for a different track is clicked. Internally, it pauses the <code><audio></code> element, sets its... | 1 | 1,032 |
Android Studio :Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple errors, see logs | <p>I'm new to Android Studio and I have another problem.<br>
I'm risking my last reputation point btw.</p>
<p>So I'm following the steps from this website: <a href="https://developer.android.com/training/basics/supporting-devices/platforms.html" rel="nofollow noreferrer">https://developer.android.com/training/basics/s... | 1 | 3,920 |
Attaching a PDF to an Email from Android App - File Size is Zero | <p>I am trying to attach a PDF file called download.pdf to an email in my Android App. I am copying the file first to the SDCard and then attaching it the email.</p>
<p>I'm not if relevant, but I am testing on a galaxy tab device. The external storage path returns mnt/sdcard/</p>
<p>My code is as follows :</p>
<pre>... | 1 | 1,090 |
D3.js - Line Graph: Area path goes over x and y axis on zoom | <p>I have a line graph with area path. Everything works great, only when I zoom in, the area path goes over x-axis and also y-axis:</p>
<p><a href="https://i.stack.imgur.com/iV8vQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iV8vQ.jpg" alt="enter image description here"></a></p>
<p>Please help m... | 1 | 3,755 |
How to make Javascript dynamic html table and events on them | <p>I know how to create a table & rows dynamically with DOM but don't able to figure out the onkeyup or onblur event in input type text, please find below my complete code, moreover it can be possible that another separate function is called on keyup in DOM? if so then how?</p>
<pre><code><HTML>
<HEAD>... | 1 | 1,104 |
Jquery changing Selected value in MVC dropdown | <p>I have been searching the internet and reading a lot of different ways to do this, but for some reason, none of them are working for me. There must be something I am missing here. What I am trying to do is update a dropdown list with a particular selected value when a checkbox is checked. </p>
<p>Html for select</p... | 1 | 3,894 |
Using pdh functions to get multiple performance counters | <p>Please have a look on the below code(taken from <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa373228%28v=vs.85%29.aspx" rel="nofollow">here</a>):</p>
<pre><code>#include <windows.h>
#include <stdio.h>
#include <pdh.h>
#include <pdhmsg.h>
#pragma comment(lib, "pdh.lib")
... | 1 | 1,296 |
The author of this Raphael JS extension has vanished from the face of the internet, help me with his script | <p>The extension I'm talking about is the Raphael-zpd: <a href="http://pohjoisespoo.net84.net/src/raphael-zpd.js" rel="nofollow">http://pohjoisespoo.net84.net/src/raphael-zpd.js</a></p>
<p>/* EDIT The script is added to a Raphael document with this command <code>var zpd = new RaphaelZPD(paper, { zoom: true, pan: true,... | 1 | 1,396 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.