title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to return image file using custom route to cache the image file? | <p>I'm having a hard time figuring out on how to cache the image from a blob stream.<br>
This is my first code and it works to download the return the image file: </p>
<p><strong>HTML PART:</strong></p>
<pre><code><img src="@Url.Action("GetImage", "Asset")?photoId=@SessionData.ProfilePic.PhotoID&type=3"/> ... | 1 | 1,097 |
Disable editing on specific rows in Gridview asp.net | <p>I have one Gridview that Shows my Customer table. In my gridview it's possible for the user to Insert new customers and also edit existing customers. </p>
<p>Now to my question. I have two customers that shouldnt be able for the user to edit but i want them to be showed in the gridview. Can i somehow disable the ed... | 1 | 8,037 |
Custom adapter does not called getVIew | <p>Here is the code of my custom adapter... it doesn't call my get view... returns only white blank page without nothing. I don't know what is the problem. Does anybody can help. Thanks a lot previously! </p>
<pre><code> public class ProductShopsAdapter extends ArrayAdapter<ProductShop> {
private Context ... | 1 | 1,599 |
Trying to create a drop-down navigation menu with images instead of text, need assistance linking | <p>I have been trying to find a way to have a drop down menu with images (not text) for my navigation and I seem to have found a solution but now my problem is adding a link to the images. I have done this all with CSS via this post: </p>
<p><a href="https://stackoverflow.com/questions/9508029/dropdown-select-with-ima... | 1 | 1,319 |
Javascript - Import not found | <p>I'm trying to make a text-mask GitHub repository work with my laravel project, With this, I want to use a certain addon which allows me to mask an input field as a price. The GitHub repository I'm talking about is <a href="https://github.com/text-mask/text-mask/" rel="nofollow noreferrer">linked here</a></p>
<p>The... | 1 | 1,035 |
Python: calculate the magnetic field of a wire using biot-savart-law | <p>I want to calculate the magnetic field of a wire using biot-savart-law. Some people recommend to use numpy arrays. At first i did it with vpython and it worked. But know I want to use Matplotlib for visualisation. Therefore I need arrays right? But I stuck now. </p>
<p>I also posted this question to codereview, but... | 1 | 2,716 |
Onsen 2.0 - Adding event listener to Ons-Switch with Javascript | <p>I fear I am missing something really simple, but I have tried multiple attempts with various errors. On to the code:</p>
<pre><code><script>
document.getElementById("optStats").on("change", function(e) {
alert("Switch changed!");
});
</script>
<ons-switch modifier="list-item" id="o... | 1 | 1,164 |
Use Return Value of JSON in jQuery.Ajax Script Correctly | <p>I have 2 DropDownList, like Master-Slave.
This is my Default.aspx:</p>
<pre><code><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<... | 1 | 3,097 |
iPhone app crashing when turning device while keyboard is showing | <p>I have an iPhone app with a webview that redirects to a forum at some point.</p>
<p>I noticed that the app will crash when I do these steps:</p>
<p>1) Browse through the forum (vBulletin)<br>
2) Open a thread and try to post a message<br>
3) Click into the textarea so the keyboard shows up
4) Then type and/or turn... | 1 | 1,931 |
How do I share weights across different RNN cells that feed in different inputs in Tensorflow? | <p>I'm curious if there is a good way to share weights across different RNN cells while still feeding each cell different inputs.</p>
<p>The graph that I am trying to build is like this:</p>
<p><a href="https://i.stack.imgur.com/k4OeI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k4OeI.png" alt="... | 1 | 2,458 |
Invoke AWS Lambda with AWS API Gateway | <p>I'm moving some scala code to AWS Lambda and I intend to have it exposed via AWS API Gateway, but I've been struggling to make the whole thing work as soon as I have one parameter.</p>
<p>My (very simple) code looks like this:</p>
<pre><code>class HelloService {
def hello(name: String) = {
"hello there, " + ... | 1 | 1,794 |
Extracting specific lines (based on the line number) using batch file | <p>I have a need to extract specific lines from a text file (input.txt). I have already found a solution but have some clarifications why it is not working when used with <code>setlocalenabledealyed expansion</code>. Below is the example</p>
<p>My <strong>input.txt</strong> <code>(numbered using findstr /n)</code>. In... | 1 | 1,425 |
Entity framework - Index (zero based) must be greater than or equal to zero | <p>I've been having error for a while now, and while reading all the other posts her on SO, I didn't get much more cleaver.</p>
<p>When making a database call I get the error:</p>
<pre><code>Index (zero based) must be greater than or equal to zero
</code></pre>
<p>I have the following method which gives me the error... | 1 | 3,660 |
jquery, array and dynamically add & delete text input | <p>I have a situation here where I need to be able to add, delete and reset the passenger name list dynamically, with maximum 10 passengers.</p>
<p>Below is the code for html interface:</p>
<pre><code><div id="add_passenger">
<br>
<input type="button" id="add_pax" name="add_pax" value="Add Passenger Na... | 1 | 1,195 |
Console Chat Using QTcpSocket and QTcpServer | <p>I want to write a console chat program in qt framework.I have a problem with sending messages.</p>
<p>Client sends messages to server but server doesn't take the messages until client program is closed.When client is closed, server displays all messages.I don't want that.I want server to get my messages when i send... | 1 | 2,135 |
jQuery / Cordova history issue - iOS 9 history broken? | <p>i'm just working on an application. After i started last week i added a few pages. Today i tried to implement the backbutton and i lose my head... four hours now i tried to get it working but i'm not able to because there are some strange behaviours in iOS 9.</p>
<p>So my hardware setup for better understanding:</p... | 1 | 1,271 |
how to filter json from dropdown in flutter | <p><code>enter code here</code>hey all of master , i have code for filter data on api json, i want my user can select specific teacher by specific locatioin on drop down. the search by name are already work, but the dropdown i don't know how to implement it, to take effect on my json api slection.</p>
<p>here is my co... | 1 | 3,661 |
add score to elasticsearch completion suggester inputs | <p>I need to implement <a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html" rel="nofollow noreferrer">elasticsearch completion suggester</a>. </p>
<p>I have an index mapped like this:</p>
<pre><code>{
"user": {
"properties": {
"username": {
... | 1 | 1,416 |
Error in Python Pandas when Reading CSV File | <p>I am trying to read a CSV File, but its throwing an error. I am not able to understand whats the problem with my syntax or do I need to add more attributes to my read_csv.</p>
<p>I tried the solution on </p>
<blockquote>
<p>UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position
21: invalid start ... | 1 | 3,474 |
Spring Autowired DAO with hibernate.cfg.xml | <p>I have a Spring Maven DAO Project which is packaged into a jar. It was originally a Spring DAO Ivy project, but I converted it to maven. This was a legacy project which used Spring 3.2.0 and Hibernate 3.5, and now I created a new project and updated to Spring 3.2.3.RELEASE and Hibernate 4.2.3.Final. I do try to... | 1 | 5,347 |
How to add a path with 'd' attributes to a svg dynamically | <p>I'm having a problem dynamically generating path elements inside an empty svg with javascript. I'm not interested in using third-party libraries, I'd like to understand how it works in vanilla javascript. For the following <a href="http://codepen.io/anon/pen/bdJgrd" rel="nofollow">codepen</a>, I'm using jQuery for s... | 1 | 1,185 |
python unbound method again | <p>This gets me into difficult time (sorry, i am still very new to python)
Thank you for any kind of help.</p>
<p>The error</p>
<blockquote>
<pre><code>print Student.MostFrequent() TypeError: unbound method
</code></pre>
<p>MostFrequent() must be called with
Student instance as first argument
(got nothing in... | 1 | 1,287 |
Is possible overwrite a css class with another css class | <p>I think this question is only related with css... but I will give you some context:</p>
<p>I am working with the zk framework and I have some comboboxes in my zul page... ZK render its components and turn them into html components with some predefined styles (css classes)... I can override those styles... but I want... | 1 | 1,842 |
I'm having problems with my first servlet | <p>This is the code to my servlet...</p>
<pre><code>import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloWorld extends HttpServlet {
private String message;
public void init(){
message="Hello World";
}
public void doGet(HttpServletRequest request,HttpServle... | 1 | 1,569 |
discord.js v12 Unban Command | <p>I made a unban command using discord.js v12. I keep getting the same error every time I run it saying DISCORD API ERROR: NOT FOUND. Even though I send a correct user ID or mention</p>
<pre><code> const Discord = require("discord.js");
module.exports = {
name: "unban",
category: &q... | 1 | 1,548 |
Phase Angle between two signals | <p>I'm working on a project where I calculate the phase angle between two signals. But to keep the math/code simple I'm using simple sine/cosine function to generate the signal. </p>
<p>My method is as follows - </p>
<ol>
<li><p>Generate Sine/Cosine signals</p></li>
<li><p>Select a sample size of the signal (to speci... | 1 | 1,288 |
Unable to run JUnit 5 test in IntelliJ 2018.2.2 w/ Gradle 4.9 | <p>I'm attempting to run a single JUnit 5 unit test from Intelli 2018.2.2 Community Edition. The project is using Gradle v4.9.</p>
<p>For whatever reason, when attempting to run the test method individually or as a test class, the same output results:</p>
<pre><code>Aug 29, 2018 3:37:47 PM
org.junit.platform.launche... | 1 | 1,566 |
paypal express checkout problem | <p>Hi I am integrating paypal with my website. I want that user enter their all information on my site (creditcard information and personal information).</p>
<p>I have down loded paypalfunctions.php from paypal developer website.</p>
<p>My code is :- </p>
<pre><code>if(isset($_POST['submitCard']))
{
$firstName =tr... | 1 | 1,965 |
Webpack with babel-loader not emitting valid es5 | <p>I have a webpack config that is based off <a href="https://github.com/vuejs-templates/webpack-simple/blob/master/template/webpack.config.js" rel="nofollow noreferrer">https://github.com/vuejs-templates/webpack-simple/blob/master/template/webpack.config.js</a>
It uses vue-loader and babel-loader. The issue is I canno... | 1 | 1,477 |
Configure drools with spring. xsd errors | <p>I'm trying to create spring roo application with Drools. But I faced with errors in applicationContext.xml.</p>
<p>Error:</p>
<blockquote>
<p>Multiple annotations found at this line:
- Unable to locate Spring NamespaceHandler for element 'drools:execution-node' of schema namespace 'http://drools.org/schema/
... | 1 | 1,147 |
Flutter image cache: Images are reloading | <p>I am making a wallpaper application in which it displays many HD images from a list in a GridView.builder (around 90 HD images) and the images are not getting cached. They reload every time when I scroll up and down. I tried using the normal network image and even CachedNetworkImage but same result. Any solution? </... | 1 | 1,734 |
Load balancing for ASP.NET MVC and ASP.NET WebAPI | <p>I am working in two projects. One is using ASP.NET MVC and another one is using ASP.NET WebAPI. Our client wants to implement load balancing but they're concerned that once it is done, it may affect the login feature, as user's authentication token may not be shared among the servers. I am assigned to research on th... | 1 | 2,458 |
.ashx ASP.NET Handler Image not displayed in html img-element | <p>I have a strange problem.</p>
<p>I created an ASP.NET Handler (AccidentMap.ashx) that gets a bitmap and returns it.</p>
<p>Here is the handler:</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Drawing;
namespace BackOffice... | 1 | 1,164 |
Update using one to one relationship hibernate | <p>I have one parent object as Employee and child object as Address. I just need to update the both objects using Employee object. But when updating using employee object i just getting emp_id should not be null. Here is my table and entity</p>
<pre><code>CREATE TABLE `employee` (
`employee_id` bigint(20) NOT NULL AUT... | 1 | 2,099 |
Supermarket Simulator using Queue | <p><img src="https://i.stack.imgur.com/ZDAL4.png" alt="enter image description here" /></p>
<p>I posted this problem earlier and i asked for help on how to approach it. I ended up creating a customer class that generates a random first and last name and also assigns random number of grocery items to a customer every ti... | 1 | 1,728 |
shunting yard algorithm(in Javascript),handling negative numbers | <p>I have written shunting yard algorithm in JS which works fine for almost all the scenarios, however if I have a negative number scenario then it fails, say for example if I give this expression 9-(3*(-6)) then it won't give a result...Any hint would be much appreciated
...I don't want to use regex. I have written my... | 1 | 2,533 |
Parsing SQLite Database Schema in sqlitedb file? | <p>I wrote a program for parsing SQLite file, i can parse all data from b-tree pages to record, column & values but i need to parse schema of tables, i found something like <strong>database schema stored in page 1 (root page)</strong> and i can see it with <code>Hex Editor</code>, and i found structure of <code>sql... | 1 | 1,538 |
CommandLine Java Calculator | <p>I've just learned java but from my old experience coming from C++ i tought that i can write a commandline calculator wich supports all 4 basic operators with just one line. But i am having a bit of problem.</p>
<p>This is my code:</p>
<pre><code>import java.util.Scanner;
public class omg {
public static void ... | 1 | 1,359 |
SSL Configuration issue in AEM6 | <p>I am having issues in configuring my AEM instance SSL configured. I am using below command to generate the keystore.</p>
<pre><code>user@user/media/vivek/Misc/SelfWork/Author/ssl$ keytool -genkeypair -keyalg RSA -validity 3650 -alias cqse -keystore /Misc/SelfWork/Author/ssl/cqkeystore.keystore -keypass password -st... | 1 | 1,080 |
Unity - The current type is an interface and cannot be constructed. Generic repository DI | <p>I have generic repository:</p>
<pre><code>public interface IRepository<T> where T : class
{
void Add(T entity);
void Update(T entity);
void Delete(T entity);
void Delete(Expression<Func<T, bool>> where);
T GetById(long id);
T GetById(string id);
T Get(Expression<Func... | 1 | 1,248 |
http post giving illegal state Exception | <p>this is code which I use for HTTP post </p>
<pre><code>public void postData() {
//DineOutActivity doa = null;
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("192.168.1.112/andro/index.php/androctrl/test/");
try {
//food item
Spinner spinner = (Spinn... | 1 | 5,418 |
How to reset form fields in angular js after form submit | <p>I am submitting form using angular js.
I want to <strong>reset form fields after submit</strong>.</p>
<p><strong>DEMO_ANGULAR JS</strong></p>
<pre><code> $scope.addUser = function()
{
$scope.errors = [];
$scope.msgs = [];
$scope.errors.splice(0, $scope.errors.length); // remove all ... | 1 | 3,488 |
Can't write to external storage unless app is restarted after granting permission | <p>App unable to write to external storage on Android 6.0 (I'm testing on emulator), even after WRITE_EXTERNAL_STORAGE has been granted at runtime; unless the app is killed and restarted.</p>
<p>Snippet from AndroidManifest.xml</p>
<pre><code><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE... | 1 | 1,477 |
I am getting this gem install error for kgio gem when i do a bundle install | <p>I added unicorn to my Gemfile and after that when i do a bundle install I get this error</p>
<pre><code> em::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/adim86/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb
checking for CLOCK_MONOTONIC in time.h... *** extconf.rb ... | 1 | 1,592 |
KendoUI - How to create controls at runtime based on user input? | <p>Is there a way to create different type of controls in a KendoUI grid column at runtime? The scenario is, I have 2 columns in my grid. The first column displays a dropdown list which has the some strings like, 'Name', 'StartDate', etc. When user selects a value from it, I want to show an appropriate control in th... | 1 | 3,742 |
Load denied by X-Frame-Options: "http://test.test.net/Feedback/Create?appId=TestApp" does not permit cross-origin framing using MVC5 | <p>I'm working on a website that's hosted on my company network and only accessible from within the network, so I have no concern with cross-domain requests. </p>
<p>Anyways, this particular website I'm working on I added a "Provide Feedback" link in the navigation bar. This "Provide Feedback" link opens a jQuery mo... | 1 | 1,159 |
How does this pthread_cond_wait() example work? | <p>I got the below code from this website:</p>
<p><a href="https://computing.llnl.gov/tutorials/pthreads/#Abstract" rel="nofollow">https://computing.llnl.gov/tutorials/pthreads/#Abstract</a></p>
<blockquote>
<p>This simple example code demonstrates the use of several Pthread
condition variable routines. The main ... | 1 | 1,502 |
No resource method found for options, return OK with Allow header: org.jboss.resteasy.spi.DefaultOptionsMethodException | <p>I am trying to make a post request from my Ionic 3 application to a Java resource but it bursts that error that is in the title, below is the method for which I am making the request:</p>
<pre><code>@POST
@Path("/loginCpf")
@Produces(MediaType.APPLICATION_JSON)
public Integer validarBeneficiarioCpf(BeneficiarioLogi... | 1 | 3,087 |
Waiting on asynchronous methods using NSCondition | <p>I am downloading four plist files asynchronously over the internet. I need to wait until all four files are downloaded, until I either on the first run, push a UIViewController, or on all subsequent runs, refresh the data, and reload all my UITableViews.</p>
<p>On the first run, everything works perfectly. When ref... | 1 | 2,502 |
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error applying layout : main | <p>What does this error message means and how can I fix it?</p>
<pre><code>Sep 16, 2013 2:28:59 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [default] in context with path [] threw exception
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error app... | 1 | 6,059 |
groovy.json.JsonException: expecting '}' or ',' but got current char | <p>I am trying to get a piece of code working for me and not having much luck. So I have broken the code down to this little snippet that is causing me grief. </p>
<p>Can anyone help identify why in the world this error is happening?</p>
<pre><code>import groovy.json.JsonSlurper;
String index = '[{accessCode=d20in9t... | 1 | 1,442 |
apache HttpClient to access facebook | <p>Any examples, tips, guidance for the following scenario?</p>
<p>I have used Apache HttpClient to simulate the functionality of browser to access facebook through java application. to do that first i have to provide user credentials. i have used examples provided in the following web site.</p>
<p><a href="http://sv... | 1 | 2,156 |
Error stacktrace with angular 2 and webpack 2 | <p>I am trying to setup dev environment with angular2/webpack2 stack and i have next webpack config:</p>
<pre><code>// Helper: root() is defined at the bottom
var path = require("path");
var webpack = require("webpack");
// Webpack Plugins
var autoprefixer = require("autoprefixer");
var CommonsChunkPlugin = webpack.o... | 1 | 1,267 |
Can we use composable functions from other classes inside another class? | <p>I am just practicing jetpack compose and trying to get used to it and I made a directory inside my app called Views and I am making different kotlin classes inside that directory each with a different composable function for different peices of my UI. The problem is that I cannot call a composable function from a d... | 1 | 3,485 |
LDAP Authentication with CakePHP | <p>I'm trying to create an app where the authorization part is done by checking the input criteria against LDAP, on CakePHP. I'm following the text <a href="http://lanrat.com/ldap-authentication-for-cakephp/" rel="nofollow">linked in this page</a> but I'm having issues. I don't want to use any users table, I have no in... | 1 | 1,178 |
Strange behaviour with border-collapse and colspan | <p>I am trying to make an organisational chart in HTML. The code is fairly simple, but I have some problems with the rendering in Chrome/Safari and Opera.</p>
<p>Here is what the result should look like, as it works in Firefox and IE:</p>
<p><img src="https://i.stack.imgur.com/eEIOL.png" alt="Desired result, Firefox ... | 1 | 1,252 |
C# Updating UI in Windows Forms from background thread | <p><a href="http://www.codeproject.com/KB/threads/winformsthreading.aspx" rel="nofollow">http://www.codeproject.com/KB/threads/winformsthreading.aspx</a></p>
<p>I'm attempting to use the above, and while it works in some sense (it doesn't lock up my application), it isn't updating the labels on the UI unfortunately. A... | 1 | 1,246 |
Use ggplot and ggplotly instead of plot_ly to create a pie chart | <p>Hello I have a simple shiny app which creates a pie chart based on the input <code>FacilityName</code> of my dataset. I want every time that I choose a different facility my pie chart to display the share between EXT/INT (<code>OriginId</code>). Also every piece should display the share and the number of "kunden".Un... | 1 | 1,578 |
Successfully reading data from printer with ReadPrinter Winspool.drv | <p>I'm having some problems when sending raw command to a FGL-enabled Practical Automation ITX3002 ticket printer. I've been searching the whole day and I wasn't able to find a working example of using the ReadPrinter method from the winspool.drv Windows library. </p>
<p>Most code samples I've found, were related to n... | 1 | 1,472 |
Clear LocalStorage from server-side | <p>Hello I need to clear() my localstorage from the server-side.</p>
<p>The right moment is after inserting some info in the db (info took from the localstorage) and then I need to redirect and clear the localstorage..</p>
<p>I tried with node-localstorage but i can't do it from the controller...</p>
<p>edit:</p>
<... | 1 | 1,580 |
How to use Date in Javascript for prehistoric dates? | <p>I’m working on a project where the JavaScript Date isn't big enough.</p>
<p>I want to place multiple events on the same time axis, some of them have month and day and some don't, so just using year is not an option. I want to be able to have the moon landing and big bang on the same axis.</p>
<p>It would help a lo... | 1 | 2,808 |
Vue.js data table only showing data in first column | <p>I am trying to iterate through an object, pulled from database using axios. I am able to make the object show up in my data table, but i am unable to make it break the data to the specified columns</p>
<p>first snippet is the parent component. the tr and td for the actual list i broke out to a separate component bu... | 1 | 1,396 |
How do I check the inbound header "content-type" response in mule? | <p>I've got a flow that processes the response from a REST service:</p>
<pre><code> <http:outbound-endpoint method="GET"
address="http://www.SomeAddress.com"
exchange-pattern="request-response">
...
<response>
<json:j... | 1 | 1,580 |
Android:java.util.concurrent.ThreadPoolExecutor | <p>In my app there is <code>RecyclerView</code> with tons of images in it.Images are loaded as user scrolls RecyclerView with this code:</p>
<pre><code> if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
loader.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,url);
else
loader.execute... | 1 | 1,682 |
Cmake fails missing pthread.h | <p><a href="https://askubuntu.com/questions/499238/cmake-cant-find-pthread">There was once a bug related to cmake and pthread but it is now fixed</a>.</p>
<p>I use cmake version 3.5.1 on Mac OS. It compiled previously but in the meantime I installed, changed, or updated things. I don't have much knowledge about cmake.... | 1 | 2,259 |
Undefined reference when linking libopencv_gpu.so with OpenCV | <p>I get an error when trying to compile a single .cpp file</p>
<p>Main.cpp:</p>
<pre><code>#include "opencv2/core/core_c.h"
#include "opencv2/core/core.hpp"
#include "opencv2/flann/miniflann.hpp"
#include "opencv2/imgproc/imgproc_c.h"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/video/video.hpp"
#include... | 1 | 1,199 |
Amazon S3 Upload error PermanentRedirectException | <p>I've installed the Amazon SDK for PHP using composer. I copied the example code and implemented into my system, but when I attempt to upload a file, I'm getting the following (i've made the paths generic for security):</p>
<blockquote>
<p>Fatal error: Uncaught exception 'Aws\S3\Exception\PermanentRedirectExceptio... | 1 | 1,096 |
Spring mvc static resource configuration issues | <p>I am working with spring mvc 3 on tomcat 7. I have been having issues getting my static resources to load. </p>
<p>My directory structure is as follows:</p>
<pre><code>-static
-common
- paths to static
- WEB-INF
</code></pre>
<p>I have already made sure that the statics were not getting caught up in a request... | 1 | 6,343 |
(Spatial) Efficient way of finding all points within X meters of a point? | <p>I have a large spatial dataset (12M rows). The geometries are points on a map. For each row in the dataset, I'd like to find all the points that are within 500 meters of that point. </p>
<p>In r, using sf, I've been trying to do this by parallel looping through each row and running st_buffer and st_intersects, then... | 1 | 1,288 |
UITableView segue not working | <p>I followed the SimpleDrillDown app example in the docs for a workout app that shows workout names in the first UITableView and exercises in the second UITableView.</p>
<p><strong>My app is in Dropbox here: <a href="http://db.tt/V0EhVcAG" rel="nofollow noreferrer">http://db.tt/V0EhVcAG</a></strong></p>
<p>I used st... | 1 | 1,327 |
How create a DICOM image from byte (DCMTK) | <p>I want to use the DCMTK 3.6.1 library in an existing project that can create DICOM image. I want to use this library because I want to make the compression of the DICOM images. In a new solution (Visual Studio 2013/C++) Following the example in the DCMTK official documentation, I have this code, that works properly.... | 1 | 2,035 |
OpenGL Frame Buffer Object for rendering to textures, renders weirdly | <p>I'm using python but OpenGL is pretty much done exactly the same way as in any other language.</p>
<p>The problem is that when I try to render a texture or a line to a texture by means of a frame buffer object, it is rendered upside down, too small in the bottom left corner. Very weird. I have these pictures to dem... | 1 | 1,067 |
Strange Error When Using System.DirectoryServices.AccountManagement.PrincipalContext.ValidateCredentials with SAM | <p>I am hosting a WCF Web Service with IIS 6.0. My application pool is running under a local Administrator account, and I have other local users defined for accessing the Web Service. I've written the following code to validate users:</p>
<pre><code>
//Any public static (Shared in Visual Basic) members of this type ar... | 1 | 1,232 |
Parsing email with Email::MIME and multipart/mixed with subparts | <p>I'm a perl novice and have been working with Email::MIME to figure out how to parse emails with multiparts correctly. I've just identified another combination that my current efforts have not been able to properly read.</p>
<pre><code> Content-Type: multipart/mixed; boundary="===============1811908679642194059=... | 1 | 1,028 |
Open Database for ReadWirte not possible on specific device | <p>I simply try to open a database in READWRITE Mode. I get the following error: "not an error (code 0): Could not open the database in read/write mode." When opening the DB the same way but READONLY is works. On my 3 devices this is not a problem opening in READWRITE, but 2 users reported that following error.</p>
<... | 1 | 1,143 |
Serilog logs collected by Fluentbit to Elasticsearch in kubernetes doesnt get Json-parsed correctly | <p>Using the EFK Stack on Kubernetes (Minikube). Have an asp.net core app using Serilog to write to console as Json. Logs DO ship to Elasticsearch, <strong>but they arrive unparsed strings</strong>, into the "log" field, this is the problem.</p>
<p>This is the console output:</p>
<pre><code>{
"@timestamp": "2019-... | 1 | 2,219 |
Simple example TLS client connection with Smack 4.0.* | <p>I'm trying to use the Smack 4.0.5 Api to connect to the Vines XMPP as part of the Growing Object Oriented Software Guided by Tests worked example. I've struggled to find any documentation that describes how to connect using TLS. Several threads have presented samples like below, but this (as I believe insecure) opti... | 1 | 2,371 |
MediaStyle notification is not responding to RemoteControl events. | <p>We are in the process of migrating our ongoing playback notification to MediaStyle notifications introduced in Lollipop. RemoteControlClient seems to be deprecated, and the MediaStyle notification is not handling the media button events (such as pause/play through headphones remote). </p>
<p>Did anyone get this wor... | 1 | 1,302 |
Modbus Error: [Invalid Message] Incomplete message received, expected at least 2 bytes (0 received) | <p><strong>Problem</strong></p>
<p>pymodbus master/client can send a request to the slave/server. The slave/server make the things to return ready and is waiting for the master/client to pick them up. Despite the readiness of the server/slave, the master/client just returns the error "Modbus Error: [Input/Output] Modb... | 1 | 3,535 |
Jquery Validation plugin with Asp.net masterpage not working | <p>hello i'm using jquery validation plug-in, its not showing any message</p>
<p>my javascript is</p>
<pre><code><script type="text/javascript">
$(document).ready(function () {
$('#mainform').validate({
rules: {
DishNameTextBox: { required: true, min... | 1 | 5,958 |
Could not type any text inside textfield | <p>I am using redux-form-material-ui for my form. With below code, i cannot type anything on the textfield. I mean to say nothing gets type in the textfield. There are two textfield in my form and one Autocomplete. One is for device name and another for timeout value. Autocomplete works though. Why is it not showing th... | 1 | 1,964 |
Testing with Jest, Babel, Webpack, and React. Support for the experimental syntax 'classProperties' isn't currently enabled | <p>Okey I have a huge problem trying to enable Jest on my React-native app. And every single answer from this topic gives me a different configuration for my webpack or my package.json. I hope to find an answer here. </p>
<p>For this simple test: </p>
<pre><code>import 'react-native';
import React from 'react';
impor... | 1 | 4,195 |
Typo3 Default language label and flag | <p>I'm working with Typo3 v6.1 and trying to set up multi-language site. The problem is that I can not change the default language label. What am I doing wrong?</p>
<p>According to <a href="http://typo3.org/documentation/document-library/core-documentation/doc_l10nguide/1.0.0/view/1/2/" rel="nofollow">this</a> and <a ... | 1 | 1,112 |
jQueryUI Autocomplete - how to match search words with a list of keywords and show the matched results? | <p>I'm trying to use jQueryUI Autocomplete to implement a site quick searching feature for various functionality pages in my site. I guess you could say it is like Google Instant Search but it's indexing pages on my site.</p>
<p>So when they search for "create" it will bring up the Create user option and the Create or... | 1 | 1,726 |
Plotly: Remove legend title using template | <p>Even after passing <code>'title':None</code> inside <code>layout.legend</code> in the template, the chart still shows a legend title, whereas it should change the default setting to no legend title.<a href="https://i.stack.imgur.com/by4Ub.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/by4Ub.png" ... | 1 | 4,859 |
react-native get current location | <p>I tried to use react-native-maps and get my current location.
I tried to use not only 'react-native-geolocation-service' and '@react-native-community/geolocation'.
Map still indicate google HQ maybe in San Francisco.
({"coords": {"accuracy": 20, "altitude": 5, "heading": 0, "latitude": 37.4219983, "longitude": -122... | 1 | 1,394 |
Haskell/Parsec: how do I use Text.Parsec.Token with Text.Parsec.Indent (from the indents package) | <p>The <em>indents</em> package for Haskell's Parsec provides a way to parse indentation-style languages (like Haskell and Python). It redefines the <code>Parser</code> type, so how do you use the token parser functions exported by Parsec's <a href="http://hackage.haskell.org/packages/archive/parsec/3.1.3/doc/html/Text... | 1 | 2,952 |
creating a webservice that accepts a file (Stream) doesnt want other params | <p>I have a File i want to upload to a Webservice, but it needs additional params, so I create some hidden fields with the associated name:value pairs to get pushed to the server request. The issue though is the definition of the service.</p>
<p>[Error]</p>
<p><strong>Operation 'NewImage' in contract 'IFormServices'... | 1 | 1,338 |
ASP.NET ModalPopupExtender appears when calling Alert JavaScript function | <p>I'm facing a buggy behavior from ASP.NET Ajax Controls Toolkit ModalPopupExtender, when I call <code>Alert()</code> JavaScript function from server-side the modal appears in the back ground. I don't know why this is happens.</p>
<p>here is the code:</p>
<p>vb:</p>
<pre><code>Sub ShowAlert(ByVal message As String)... | 1 | 1,218 |
Play framework upload file not working | <p>I wanted to upload a CSV file and from there get the details in order to fill up a MySQL database. I am using Play! framework 2 with Java but i am having difficulties to implement this solution.</p>
<p>This is my Java code</p>
<pre><code> public static Result uploadfile() {
File fl = request().body(... | 1 | 3,304 |
Update Recyclerview List After Deleting Row | <p>I have tried most answers from this site without getting the desired result.</p>
<p>I have recyclerview with a list of items and a button contained in each row. When the button is clicked, I want the entire row to be deleted and list updated automatically.</p>
<p>Here's my adapter class code:</p>
<pre><code>publi... | 1 | 1,850 |
I'm unable to get Device token in an ionic app as a result of Cannot read property 'onTokenRefresh' of undefined | <p>I followed two tutorials that suggested installed the following:</p>
<p>ionic cordova plugin add cordova-plugin-fcm-with-dependecy-updated
npm install @ionic-native/fcm</p>
<p>I kept getting errors after installing to a device that said the fcm plugin isn't installed so I viewed <a href="https://www.npmjs.com/packag... | 1 | 2,535 |
Unity Firebase [to Android] error when using database and auth package in one project | <p>I'm developing an app for Android in Unity3d that uses Firebase Authentication, and it worked just fine until I tried to use the Firebase database package. It imported just fine. But when I typed code to set my database in the Start() function for my app such as <code>FirebaseApp.DefaultInstance.SetEditorDatabaseUrl... | 1 | 2,829 |
Angular 2 dynamic component injection and access to dynamic component attributes | <p>I have following code:</p>
<p><strong>search.component.ts</strong></p>
<pre><code>import { CoreComponent } from './../../core/components/core.component';
import { SearchDropDownComponent } from './search.dropdown.component';
import { Component,Input,EventEmitter, Output, ViewChild} from "@angular/core";
@Compo... | 1 | 2,681 |
Why is Nancy model binding failing? | <p>I have a Nancy.SelfHost service that is working just fine for the Get routes, but is failing on the Post route. If fails on the Bind<T>() command in the following route with a "No parameterless constructor defined for this object" error:</p>
<pre><code>Post["/schedule"] = _ =>
{
var schedule = this.Bin... | 1 | 1,704 |
CollectionViewSource Use Question | <p>I am trying to do a basic use of CollectionViewSource and I must be missing something because it is just not working. Here is my XAML:</p>
<pre><code><Window.Resources>
<CollectionViewSource Source="{Binding loc:MainVM.Instance.MapItems}" x:Key="MapCV">
<CollectionViewSource.GroupDescriptions... | 1 | 1,111 |
Populate a DataTable with MySQL Database | <p>I’m trying to build a CRUD application. I have a MySQL database of a large amount of records and would like to use a JQuery DataTable rather than trying to code out a table from scratch. The problem I have, is that I can see the table on my site, but I cannot get it to pull in the data from MySQL.</p>
<p>I’ve tried... | 1 | 8,259 |
Without root access, run R with tuned BLAS when it is linked with reference BLAS | <p>Can any one tell me why I can <strong>not successfully</strong> test OpenBLAS's <code>dgemm</code> performance (in GFLOPs) in R via the following way?</p>
<ol>
<li>link R with the "reference BLAS" <code>libblas.so</code></li>
<li>compile my C program <code>mmperf.c</code> with OpenBLAS library <code>libopenblas.so<... | 1 | 2,834 |
What is the modern, correct way to do type punning in C++? | <p>It seems like there are two types of C++. The practical C++ and the language lawyer C++. In certain situations, it can be useful to be able to interpret a bit pattern of one type as if it were a different type. Floating-point tricks are a notable example. Let's take the famous fast inverse square root (taken from <a... | 1 | 1,914 |
Fetch API cannot load webpack://... error | <p>I am trying to learn some new tricks with Apollo Client and GraphQL but I have run into an error that I can't figure out what is causing it. The stack I am using is GraphQL and ApolloClient. The error is </p>
<p><code>Fetch API cannot load webpack://%5Bname%5D_%5Bchunkhash%5D/./node_modules/react-dom/cjs/react-dom.... | 1 | 1,064 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.