title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
STM32F1 CANbus - receive not working | <p>I am dealing with a CAN RX problem. I am using STM32F103C8T6 and CubeMX code generator. Transmitting is OK without a problem but I am not able to receive any message, if I using polling MCU every time goes into HardFault and if I use interrupt mode it does nothing. My goal is to receive message and send some message... | 1 | 4,895 |
Anaconda Python: client driver for HiveServer2 fails to install | <p>I get this error when trying to install pyhs2 on Windows 7 64-bit. I'm using CMD.exe to install the package, even though I'm not quite a big fan of it. I've downloaded the package from this <a href="https://pypi.python.org/pypi/pyhs2" rel="nofollow">link</a> and placed in my Download directory.</p>
<p>I'm currently... | 1 | 3,078 |
Sum the values of a series in pandas based on one of multiple keys? | <p>I'm working with pandas in python, and I have a pandas Series object, that I can't for the life of me figure out. it essentially looks like this:</p>
<pre><code>>>>print(series_object)
key1 key2 key3
First class 19438 ... | 1 | 1,379 |
Flutter DataTable from API | <p>I have a flutter app that I use to fetch and display data. I get the data from a api and afterwards display it in a datatable. I would like to display the column title once then the data in a list instead of repeating the column title in each data item as shown in the image below<a href="https://i.stack.imgur.com/m0... | 1 | 1,234 |
vb.net datareader already open error when not used before | <p>Hi I have this sub as part of my login / logout system. When this sub is called to login users it works perfectly, but on logout it throws an error that doesn't make any sense to me.</p>
<pre><code>Sub validate_session()
Dim email As String = System.Web.HttpContext.Current.Session("email")
Dim key A... | 1 | 1,236 |
Restrict area for draw image object in canvas HTML5 | <p>I want to restrict the area that an image can be drawn on a canvas. I am using Fabric.js.</p>
<p>I tried the following link, but it didn't work for me. <a href="https://stackoverflow.com/questions/19979644/set-object-drag-limit-in-fabric-js">Set object drag limit in Fabric.js</a>.</p>
<p>I want any part of the ima... | 1 | 1,179 |
Xaml - VisualStates - changing background between color and animation | <p>I have custom control which looks like this:</p>
<pre><code><Style TargetType="local:AnswerButton">
<Setter Property="Background" Value="{StaticResource BlueGradient}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:AnswerButton">
<Grid>
<vsm:V... | 1 | 1,345 |
setting up apache2/graphite server | <p>I've been trying to make my graphite server work but after reading so many tutorials of how to install and configure everything, I'm still stuck.</p>
<p>At this point, if I use a simple virtualHost, I can see that the apache2 is working fine ("It works!"), but once I enable the other site where the graphite is conf... | 1 | 1,494 |
Filtering on multiple columns in Spark dataframes | <p>Suppose I have a dataframe in Spark as shown below -</p>
<pre><code>val df = Seq(
(0,0,0,0.0),
(1,0,0,0.1),
(0,1,0,0.11),
(0,0,1,0.12),
(1,1,0,0.24),
(1,0,1,0.27),
(0,1,1,0.30),
(1,1,1,0.40)
).toDF("A","B","C","rate")
</code></pre>
<p>Here is how it looks like - </p>
<pre><code>scala> df.show()
+---+---+---+--... | 1 | 1,544 |
Cropper is not working on changing the image in cropperjs | <p>I am using cropper.js as cdn link. I can use cropper functionality completely fine on first image upload but when I upload new image, the existing image is not getting changed in cropping section. How can I re-initialise cropper with new data. </p>
<p><strong>Here is my full code:</strong></p>
<p><div class="snipp... | 1 | 1,419 |
Connecting to Docker Elasticsearch instance through Java/Spring Boot | <p>I'm running Elasticsearch instance from Docker. The image is from jHipster docker hub repo: <a href="https://hub.docker.com/r/jhipster/jhipster-elasticsearch/" rel="noreferrer">jhipster/jhipster-elasticsearch/</a> - I'm using image v1.3.2 because I need Elasticsearch 2.4.0 (to be in line with Spring Boot version of ... | 1 | 2,182 |
Enumerating all fields from a GraphQL query | <p>Given a GraphQL schema and resolvers for <a href="https://www.apollographql.com/docs/apollo-server/" rel="nofollow noreferrer">Apollo Server</a>, and a GraphQL query, is there a way to create a collection of all requested fields (in an Object or a Map) in the resolver function?</p>
<p>For a simple query, it's easy ... | 1 | 1,065 |
Sort series per category | <p>I have a chart that looks like this:
<a href="http://jsfiddle.net/rtGFm/37/" rel="nofollow">http://jsfiddle.net/rtGFm/37/</a></p>
<p>I would like to have a "sort" button that sorts high to low each category, putting the columns in a different order for each category. Is this possible with HighCharts?</p>
<pre cla... | 1 | 1,089 |
How to scroll Recyclerview inside CollapsingToolbarLayout | <p>I have recyclerview inside CollapsingToolbarLayout and I want it to be scrollable, but it is not. When I scroll, appbar is scrolling but not recyclerview. I tried different things, but it doesn't work. Here's my code:</p>
<pre><code><android.support.design.widget.CoordinatorLayout
xmlns:android="http://schem... | 1 | 1,223 |
Android ListView crashes while scrolling | <p>i see a weird bug here.. i have a list view which is populated from the server in an async... it populates first and then displays the list view... but when i scroll down it crashes... from the logs i see it is not related to population of list view and all.. ... can you please help me?</p>
<pre><code>04-12 12:39:5... | 1 | 2,400 |
Serilog - With AppSettings Config how do I configure Sub Loggers & Include Certain Namespaces only? | <p><br/>
I am trying to setup Serilog in a CMS that has some default logging configuration setup that we define as the CMS, however allowing developers using the CMS to extend and configure there own logging requirements by using the Serilog AppSettings Nuget package - <a href="https://github.com/serilog/serilog-settin... | 1 | 1,638 |
Kafka broker thinks there are no brokers (not even itself) | <h1>Question</h1>
<p>I am trying to run a single Kafka instance in docker. I can create topics but cannot consume from or produce to them. When I try my Kafka broker logs an error message.</p>
<pre><code>kafka_1 | [2019-03-24 16:45:05,263] ERROR [KafkaApi-5] Number of alive brokers '0' does not meet the required... | 1 | 1,204 |
Invalid parameter value for redirect_uri: Invalid scheme: <http: | <p>Good Evening - I am using the following youtube tutorial named "Tutoriel PHP - Importer des contacts Google" to try and import google contacts
<a href="https://www.youtube.com/watch?v=ysNVe0TaVFs" rel="nofollow">https://www.youtube.com/watch?v=ysNVe0TaVFs</a></p>
<p>When I click on the link to import google contac... | 1 | 1,424 |
How can I download a temporary file in Django? | <p>I'm learning how to serve temporary files in Django, and even after reading the <a href="https://docs.djangoproject.com/en/dev/ref/request-response/#telling-the-browser-to-treat-the-response-as-a-file-attachment" rel="nofollow noreferrer">docs</a> I'm having some trouble finishing it all up. These files are dynamica... | 1 | 1,397 |
Using recursion to build navigation | <p>I'm building navigation for a site and for the life of me I can't figure out recursion. I have all my data stored via MySQL using this design:</p>
<p><img src="https://i.stack.imgur.com/wJjMR.jpg" alt="enter image description here"></p>
<p>I've read several links on how recursion works and I must be slow because i... | 1 | 1,203 |
Publish SNAPSHOT artifacts to Maven using IVY - what's the magic? | <p>We have a slight convoluted situation...</p>
<p>For the most part we've been using IVY and ANT to manage our builds and dependencies. Now the company is moving towards using Maven. We have a set of projects called common libraries which are used by several of the core products.</p>
<p>Common libraries use IVY and ... | 1 | 1,447 |
Mask json fields using jackson | <p>I am trying to mask sensitive data while serializing using jackson.</p>
<p>I have tried using @JsonSerialize and a custom annotation @Mask .</p>
<p><strong>Mask.java</strong></p>
<pre class="lang-java prettyprint-override"><code>import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
impor... | 1 | 2,134 |
Select and radio button required attribute | <p>Please help me :( I know that the select attribute should be</p>
<pre><code><select required></select>
</code></pre>
<p>But I have a css how will I put it?</p>
<pre><code><div class="col-md-6">
<div class="form-group">
<label for... | 1 | 1,211 |
android dynamic plot using Achartengine | <p>i m new to android. I m using Achartengine to plot a dynamic graph reading values from a binary file. Given below is my code.I want to have a dynamic running graph, in which values are being updated regularly. For this i tries to do it with and without a timer. But every time i am getting the graph with the final va... | 1 | 1,828 |
WCF settings with client credentials beyond config | <p>So I have a WCF service with netTcp binding</p>
<pre><code><netTcpBinding>
<binding name="VpNetTcpBinding" portSharingEnabled="true" closeTimeout="00:02:00" openTimeout="00:02:00"
receiveTimeout="00:22:00" sendTimeout="00:24:00" maxReceivedMessageSize="131072" >
<reliableSessi... | 1 | 2,120 |
buildroot external cmake package makefile fails install | <p>I am trying to install my external package, which is built fine by the cross-compile toolchain but fails on the install step with the error</p>
<pre><code>Install the project...
-- Install configuration: "Release"
-- Installing: /home/username/Projects/ProjectName/ProjectName_software/ProjectName_OS/build_ProjectNa... | 1 | 2,233 |
isolation forest algorithm in python | <p>I am trying to reproduce the algorithm described in the Isolation Forest paper in python. <a href="http://cs.nju.edu.cn/zhouzh/zhouzh.files/publication/icdm08b.pdf?q=isolation" rel="nofollow">http://cs.nju.edu.cn/zhouzh/zhouzh.files/publication/icdm08b.pdf?q=isolation</a></p>
<p>This is my current code:</p>
<pre><... | 1 | 2,582 |
NuGet fails to load PowerShell | <p>I have a problem similar to the reflector problem, except that I don't have the Reflector plugin installed, and I still can't start the NuGet console. I'm running on Windows 7 Professional, VS 2010 SP1.</p>
<p>Nuget works fine through the GUI, but for instance, I can't install *.vsdoc files without the console.</p>... | 1 | 1,620 |
How to avoid LinearAlloc Exceeded Capacity error android | <p>The application gets crashing every-time, when am running eclipse saying </p>
<p><strong>LinearAlloc exceeded capacity (5242880), last=208</strong></p>
<p>This is happening, when am creating AsyncTask, thats strange this is happening everytime .
when am commenting and running its running.</p>
<p>Logcat is:</p>
<... | 1 | 8,798 |
How to modify the first pageNumber or execute JS in header or footer template with Chrome DevTools Protocol's printToPDF | <p>I'm using <a href="https://developers.google.com/web/updates/2017/04/headless-chrome" rel="noreferrer">Headless Chrome</a> to print out PDF files by using the <a href="https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-printToPDF" rel="noreferrer">printToPDF</a> CDP method. If we set <code>displayHe... | 1 | 1,121 |
Kubernetes NGINX ingress controller activate TLSv1.1 | <p>for some legacy systems, I need to activate TLSv1.1 on my NGINX ingress controller until they are switched to TLSv1.2.
It should be fairly easy according to the documentation, but I am getting a handshake error. Looks like Nginx is not serving any certificate at all.</p>
<p>ConfigMap:</p>
<pre><code>apiVersion: v1... | 1 | 1,758 |
How to make this Bootstrap Carousel into reusable Razor component to use in Blazor app | <p>I am building a razor component for use in a Blazor client-side app. I am wondering how i can make the images used in the component dynamic, and set the images in the page code-block where i call the component.</p>
<p>Here is my Carousel.razor component</p>
<pre><code>@inject IJSRuntime JsRuntime
@namespace Blazor... | 1 | 1,374 |
PayPal Rest API for Payments returns NULL in the sandbox | <p>I've a sandbox account with PayPal. I can retrieve the token via the api using curl on PHP, however processing a test card just returns null. Anyone see a problem with the code? Is this a known problem with the PayPal sandbox? The client in the below snippet are fabricated, however, as mentioned before, using my rea... | 1 | 2,364 |
C# detecting key event in all windows | <p>Hey, i have some problem with key event handler. This is source:</p>
<pre><code>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.For... | 1 | 1,366 |
how to insert json file into javascript | <p>I have a simple problem but i cann't solve it!!! I have a simple json file with points.. Every single point has coordinates (long,lat) and an id. This file i want to insert into a table in javascript with JsFiddle. (Afterwards, i want to use every single pair of coordinates in order to create one another feature and... | 1 | 1,244 |
reading from a serial port - Question marks appearing instead of values | <p>I'm currently converting an old vbs application to a c# application so I can provide more functionality. The purpose of this application is to scan an identity card and take the id from it. I can then use this to import the data into a door access system via a CSV file.</p>
<p>Now here is my problem. When I use ... | 1 | 1,029 |
Age Verification Popup: Set cookie to remember decision | <p>I am using the following code to display an age verification popup on a cigarette website:</p>
<pre class="lang-javascript prettyprint-override"><code>$(function() {
$('[data-popup-close]').on('click', function(e) {
var targeted_popup_class = jQuery(this).attr('data-popup-close');
$('[data-popup="' + targ... | 1 | 1,694 |
Could not find 'berkshelf' (>= 0) among 90 total gem(s) (Gem::LoadError) | <p>I am having issues when setting up Chef and Vagrant for my rails app. When I try:</p>
<pre><code>$ vagrant up
</code></pre>
<p>I get the error:</p>
<pre><code>Bringing machine 'default' up with 'virtualbox' provider...
The following berks command failed to execute:
/Users/user/.chefdk/gem/ruby/2.1.0/bin/berk... | 1 | 1,598 |
Cannot get OTP when use Sms Retriever | <p>I'm trying to use Google's SMS Retriever API for Automatic SMS Verification. I have followed the directions <a href="https://developers.google.com/identity/sms-retriever/request" rel="nofollow noreferrer">here</a> but my app is not receiving any SMS messages. I've tried many ways but it's still not working and I rea... | 1 | 1,746 |
How can I pass JSON body of Fetch response to Throw Error() with then()? | <p><strong>EDIT:</strong> You've misunderstood. Consider this psuedo code. This is essentially what I want to do but it doesn't work when wrote like that.</p>
<p>Once you receive a Laravel 422 response with Fetch, the <code>response</code> doesn't contain the actual JSON data. You have to use <code>response => resp... | 1 | 1,069 |
Dojo Tabs as Custom Widgets | <p>I've created a number of widgets that are loaded as tab panes in a tabcontainer. Everything seems to work well, except I'm getting different results when using my custom widgets vs. creating everything in markup (tab content isn't taking up the whole page, 3rd party widgets aren't behaving properly, etc). This all l... | 1 | 4,265 |
error: incomplete chunked encoding in php scripts | <p>Trying to run some php scripts on a new shared server account, the scripts constantly hang and timeout with no error messages. Only when running the scripts in Chrome with the web developer console up did I get a hint of what was going on: "net::ERR_INCOMPLETE_CHUNKED_ENCODING" is what it would say.</p>
<p>Fiddler2... | 1 | 3,901 |
'500 - internal server error' response from firebase server on sending a downstream 'data' message | <p>I'm sending a downstream message to a single device from app server via Firebase server. I'm using the devices reg token that was passed to the apps server. app server code is</p>
<pre><code> $firebase_token = $request->input('token');
$skey = env('FCM_SERVER_KEY');
$client = new Client(['verify' =&... | 1 | 1,024 |
Multipart File upload using Apache REST client | <p>I was trying to upload files to OneDrive using multipart request. I've tried many ways but none of them worked.</p>
<p>The request is of the form :-</p>
<pre><code>POST /drive/items/{folder-id}/children
Content-Type: multipart/related; boundary="A100x"
--A100x
Content-ID: <metadata>
Content-Type: applicatio... | 1 | 1,123 |
Trouble installing ruby-oci8 gem | <p>I'm trying to install a gem <code>ruby-oci8</code> on the rails. </p>
<p>I get the following error,</p>
<p><strong>$ gem install ruby-oci8</strong></p>
<pre><code>Building native extensions. This could take a while...
ERROR: Error installing ruby-oci8:
ERROR: Failed to build gem native extension.
c... | 1 | 1,541 |
How do I link PCL library properly for use within an objective-C app compiled in Xcode? | <p>Question: How do I use PCL in the context of an Objective-C Cocoa (OSX, not iOS) app? </p>
<p>Tearing my hair out over this one.I can't get libpcl to link properly with my Objective C project in Xcode. I have checked and re-checked everything I can possibly think of. Probably doing something dumb, but I'm stumped.<... | 1 | 1,256 |
Displaying a video from a cell in full screen Swift | <p>So what I am trying to do is I have a UICollectionViewController with cells of images and videos and I want it so that when you tap on the video it plays the video in full screen. I have already made this for the images, however I am not quite sure how to do this for the videos? So with the images, you tap on the im... | 1 | 1,601 |
Solved ! Error reading XMLStreamReader: Unexpected character SOAP API | <p>I'm trying to communicate with SOAP API <code>https://www.flussituristici.servizirl.it/Turismo5/app/ws/checkinV1?wsdl</code>
using Savon gem.</p>
<p>so far I've implemented following code:</p>
<pre><code> def client
client = Savon.client(
wsdl: "https://www.flussituristici.servizirl.it/Turismo5/app/ws/c... | 1 | 2,476 |
Problem installing LibCurl + LibXML + FeedZirra on Windows XP | <p>I am rails newbie. I am working on Windows XP. </p>
<p>I have this version of ruby.</p>
<pre><code>ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]
</code></pre>
<p>I have Rails 2.3.8 installed.</p>
<p>I am trying to install feedzirra trying every possible way after watching the Rails Cast 168.</p>
<p>Firs... | 1 | 2,116 |
Discord.js - How do I set a value to an array string? | <p>I've been working on a "BlackJack" command which is a minigame. Now, I'm pretty sure simply adding the different math generators for each embed would work, and if the addition equation equals over 21, it tells you you've lost! I could do all that myself if I knew how to assign each string within the "cards" array a ... | 1 | 1,687 |
GridView automatically re-sizing itself | <p>I have a GridView in asp that keeps re-sizing itself. Can i in some way fix the size of the GridView so it doesn't do that ? The GridView keeps shrinking itself although the data in it has the same length or is smaller</p>
<p>my asp code:</p>
<pre><code> <asp:GridView ID="Grid" runat="server" AllowPaging="Tr... | 1 | 1,662 |
Howto model named parameters in method invocations with Scala macros? | <p>There are use cases where it is useful to create a copy of an object which is an instance of a case class of a set of case classes, which have a specific value in common.</p>
<p>For example let's consider the following case classes:</p>
<pre><code>case class Foo(id: Option[Int])
case class Bar(arg0: String, id: Op... | 1 | 1,526 |
How to use SharedSizeScope between 2 wpf controls with parent child relation? | <p>I have a scenario where i have one control, which is using another control thru ListBox.ItemTemplate. I need to share Height and width between these 2 controls. How can we achieve that?</p>
<p>Main Conrol Xaml looks like as followings:</p>
<pre><code> <Grid>
<Grid.RowDefinitions>
<RowDef... | 1 | 1,221 |
Flink on yarn: how to add external jars class path in local Client | <p>I tried to deploy my application to flink on yarn with cli, Unfortunately,it's fail with below Exception</p>
<pre><code>java.lang.NoClassDefFoundError: Lredis/clients/jedis/JedisCluster;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at ... | 1 | 1,472 |
Store Value of Combo Box in PyQt | <p>I am making a simple graphical interface. I have two tables named calling_directory and receiving_directory. I am displaying the values using combo box. Now I would like to know, which value have I selected and would like to store that value in a variable. How do I do that? </p>
<p>Secondly, I would like to use a r... | 1 | 1,308 |
File upload with postman with pre-signed url not working | <p>I am trying to upload a file using postman. I have attached the file by clicking "body" (in postman) -> binary -> choose file. I use S3 to upload with pre-signed urls. In the url, the name of the file is exactly the same as the name of the file I select in postman. When running the request, I get an error:</p>
<pre... | 1 | 2,153 |
React router v4 render component inside element | <p>I'm using the latest version of React Router v4 and I'm trying to render my page components Home/About inside the <code>PageWrap</code> div but the problem I'm having is that if I add the Routes into my header then it will switch the routes but they will display the Home/About component as part of the header and no ... | 1 | 1,224 |
Cannot install debug and release version on same device | <p>I have configured build variants in my project with <code>applicationIdSuffix</code> so that I can install both debug and release versions on my device.
here is my <code>build.gradle</code> (relevant parts):</p>
<pre><code> buildTypes {
debug {
buildConfigField "String", "BASE_URL", '"http://dev... | 1 | 1,613 |
Xamarin iOS code signing key not found in keychain | <p>I'm trying to debug my Xamarin.Forms application on a physical iPhone, from my windows machine.</p>
<ul>
<li>I have a Mac connected, and an iPhone connected to that Mac</li>
<li>I have an Apple developer certificate</li>
<li>I have the device linked to my developer account</li>
<li>I set up automatic provisioning us... | 1 | 1,646 |
jquery scroll to named anchor when navigating from other page | <p>I have a submenu that is expanded on all pages of my site. The submenu contains links to named-anchors within one page which the parent menu item links to. I am using jquery scrollTO and localScroll successfully to animate scrolling within the page with the named-anchors but if I navigate to a named-anchor from a di... | 1 | 1,787 |
PDF Tj command with angle brackets? | <p>I'm trying to figure out where in an <em>uncompressed</em> PDF v1.4 document the Times font is used.</p>
<p>The <code>/Font</code> object describing the Times font within the PDF is object <code>65</code> as follows:</p>
<pre><code>65 0 obj
<</Type /Font
/Subtype /TrueType
/BaseFont /PXAAAD+TimesNewRoman,Ita... | 1 | 1,401 |
Referencing current assembly with CompilerParameters | <p>Right now I'm working on a project, and the team wants a way to write code and edit it without having to recompile the whole project, so I've decided to try and implement a scripting engine.</p>
<p>Having implemented Lua into C++ before, I wasn't an entire newbie to implementing scripting capabilities into projects... | 1 | 1,084 |
"Cannot use Intervention\Image\Facades\Image as Image because the name is already in use" | <p>I am trying to figure out how to use Intervention Image library but I'm getting this error. I followed the Laravel integration on their website which had me do the following.</p>
<p>After you have installed Intervention Image, open your Laravel config file config/app.php and add the following lines.</p>
<p>In the ... | 1 | 2,086 |
Add border automatically on focus for input field in jQuery | <p>I have a modal appointment form and applied form validation inside jQuery.
I want to add border on focus in the input fields while validation.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettypri... | 1 | 1,065 |
Can't build a Docker container for Node app based on node:8.1 image | <p>I'm trying to create a container for my app based on the <code>node:8.1</code> image using the following Dockerfile:</p>
<pre><code>FROM node:8.1.4
RUN mkdir /home/node/.npm-global ; \
mkdir -p /home/node/app ; \
chown -R node:node /home/node/app ; \
chown -R node:node /home/node/.npm-global
ENV PATH=... | 1 | 1,094 |
Spinner causes null pointer exception | <p>I have tried all suggestions in similar questions but I can't fix it. A Spinner view is giving me a null pointer exception. The exception occurs at the following line: <code>spinner.setAdapter(adapter);</code>. I suspect it has something to do with it not being inflated correctly. The String array should not be the ... | 1 | 1,677 |
Linux kernel module compile error: implicit declaration of function ‘open’ | <p>I'm trying to write a simple sniffer-driver for linux, which will redirect all the requests to the real serial port (and also will print all the messages into system log). I found some examples on the Internet and implemented few functions. For example, function that invokes when ouw fake device is opened:</p>
<pre... | 1 | 2,114 |
OpenCL: CL_OUT_OF_HOST_MEMORY on clCreateCommandQueueWithProperties (with Minimal, Complete, and Verifiable example) | <p>I have a MSI Radeon R9 390X 8GB Video Card (named "Hawaii" as seen below). I have OpenCL installed on my Windows 10 Desktop, I am using Cygwin to compile and run the program.</p>
<p>I am trying to run an example OpenCL program I have kept around from a class from my college days, modified a little.</p>
<p>It won't... | 1 | 5,973 |
TinyMCE SetContent for multiple instances | <p>I am trying to set the content of a number of text editors on page load. I am not too familiar with TinyMCE and have inherited the code somewhat. Here is how I am initializing the editors -</p>
<pre><code>tinyMCE.init({
// General options
mode: "exact",
elements: "txt... | 1 | 1,663 |
execute SSH command on Rasperry Pi with Android App | <p>I am trying to send a command to my Raspberry Pi using an Android App with SSH. The command should only be performed by the Raspberry Pi, i don't need to save any OutputStreams. It is working when i send the command "sudo reboot", since the Pi is performing a reboot when i press the Button on the App. What i actuall... | 1 | 1,111 |
Can't Read Files using External Tables or Write Files using UTL_FILE using PL/SQL | <p>I have an issue wherein I can't Read a simple File using an External Table, nor can I write files using <code>UTL_FILE</code>. I think this has something to do with the permissions but I can't figure it out.</p>
<p>I confirmed that <code>APPS</code> and <code>PUBLIC</code> have the sufficient privileges:</p>
<pre>... | 1 | 1,442 |
sqlalchemy : Could not determine join condition between parent/child tables | <p>I am very new to SQLAlchemy. I am having some difficulty setting up a one to many relationship between two models in my application. I have two models User `Photo'. A user has only one role associated with it and a role has many users associated with it.</p>
<p>This is the code that I have in my data_generator.py f... | 1 | 2,205 |
Could not open client transport with JDBC Connection refused in R | <pre><code>**> rhive.connect(host = "192.168.1.4",port = 9000,defaultFS = "hdfs://localhost:9000")**
***Warning:
+----------------------------------------------------------+
+ / hiveServer2 argument has not been provided correctly. +
+ / RHive will use a default value: hiveServer2=TRUE. +***
+... | 1 | 1,147 |
Logstash grok multiple match | <p>Trying to extract some fields from the msgbody field using grok , but only the first field in the grok gets extracted.</p>
<p>interested Fields - <code>corId</code>, <code>controller</code>, <code>httpStatusText</code> and <code>uri</code> (These fields may not be present in every log event)</p>
<p>Sample Data -</... | 1 | 1,356 |
Missing cordova.js and Uncaught ReferenceError: Media is not defined | <p>So I have created an from scratch app using the latest version of Cordova and followed the instructions from the Cordova API documentation. I am trying to get a very basic mp3 player working on Android, so I have installed the Android platform and installed the Media and Device plugins through the CLI. I am also usi... | 1 | 1,962 |
Override generic function with a where clause | <p>EDITED: Reconstructed the sample code to include a more relevant set of objects.</p>
<p>I have an interesting situation that I'm having trouble finding a solution for. I have an abstract class with an abstract function that uses generics (see example code below). In an inheriting class, I'm trying to overload the... | 1 | 1,790 |
PG::ConnectionBad: PQconsumeInput() SSL error: internal error | <p>When working on my app locally using thin and ssl (<code>thin start --ssl</code>), I randomly get this error message every 5/10 requests. </p>
<pre><code>PG::ConnectionBad: PQconsumeInput() SSL error: internal error
</code></pre>
<p>Usually I relaunch the query and it goes well, but it is a pain to having to refre... | 1 | 4,087 |
Cannot redirect back to angular client after login in identity server | <p>I've got an issue with redirecting after loggin in with identity server.</p>
<p>I have the following angular-auth-oidc-client config:</p>
<pre><code> export function configureAuth(oidcConfigService: OidcConfigService) {
return () =>
oidcConfigService.withConfig({
stsServer: 'http://localhost:5002',... | 1 | 1,692 |
MKMapView annotations changing/losing order? | <p>I have a map view with annotations, and these annotations display a callout. When the callout's disclosure detail button is clicked, it segues into a new view. </p>
<p>My MKAnnotations are a custom class that implements <code><MKAnnotation></code>. Let's call that class MyClass. They are stored in an NSMutabl... | 1 | 1,115 |
codeigniter 2 htaccess routing differences | <p>Codeigniter v2.0 that was released on the 28th. I just setup a fresh installation and tried to remove the index.php from the url. I am using the same apache site-available configuration, htaccess, and codeigniter configuration.</p>
<p>Codeignter only loads the default controller defined in routes.php when I exclude... | 1 | 1,595 |
auto generate report(weekly and monthly) | <p>Does anyone know how to schedule auto-generate for weekly and monthly report? I tried to use Windows Service,but the problem is I don't know how to setup my report to auto generate for weekly and monthly report. At this moment, I just put the date at the setparametervalue only. would appreciate if someone can guide ... | 1 | 1,807 |
Next.js router locale issue | <p>I have set up some locales for our app which are <code>uk</code> and <code>us</code>. For the blog we can have either <code>us/blog</code> or just <code>/blog</code> for the <code>uk</code> locale.</p>
<p>When I switch to <code>us</code> like so: (locale = "us")</p>
<pre><code>const handleRoute = (locale) ... | 1 | 2,284 |
rabbitmq throws the AmqpException: No method found for class [B | <p>When I send a message to the RabbitMQ, then it throws a AmqpException for loop:</p>
<pre><code>org.springframework.amqp.rabbit.listener.exception.ListenerExecutionFailedException
: Listener method 'no match' threw exception
at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAda... | 1 | 1,503 |
Pending Intent not triggering Intent Service in Geofencing | <p>I am using an intent service to create a notification when user enters in the defined geofenced area.The problem is that when I first run the application it works fine and I am getting the pending-intent on my Intent Service, but after some days(2-3), I am not getting the required intent on the Intent Service.</p>
... | 1 | 2,268 |
hadoop failed to build from source | <p>I am trying to build hadoop-2.0.4-alpha from source..in ubuntu 13.04
I have maven 3.0.5, protobuf(libprotoc 2.4.1), cmake(2.8.10.1)</p>
<p>i get this</p>
<pre><code> occured: stylesheet /home/hadoop/hadoop-2.0.4-alpha-src/hadoop-common-project/hadoop-common/${env.FINDBUGS_HOME}/src/xsl/default.xsl doesn't exist. -... | 1 | 1,711 |
Python (Kivy) - How to resize tabs of a TabbedPanel | <p>I'm using the <code>Kivy</code> library for the first time and I'm trying to develop a simple UI with a <code>TabbedPanel</code>. I would set the size (<code>x</code>) of each tab (in the code <code>TabbedPanelItem</code>) to fit at the entire <code>TabbedPanel</code>'s width but if I use <code>height</code> or <cod... | 1 | 1,599 |
NoReverseMatch at /accounts/register/ | <p>I am following the getting started guide for Django registration and I am getting the following error when I visit <code>http://localhost:8080/accounts/register/</code> :</p>
<pre><code>NoReverseMatch at /accounts/register/
Reverse for 'index' with arguments '()' and keyword arguments '{}' not found.
Request Method... | 1 | 1,392 |
Error with Endpoints in Android : GoogleAuthIOException | <p>I have problem with my project, where I want to connect Google Cloud Endpoints with Android. I'm still getting the same error: </p>
<pre><code>05-12 21:50:23.995: W/System.err(17739): com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAuthIOException
05-12 21:50:23.995: W/System.err(17739): at co... | 1 | 3,125 |
postMessage() event listener not working | <p>I am working with a 3rd party who supplies a URL to be put into an iFrame to display some hosted video playback.</p>
<ul>
<li>this is cross-domain</li>
<li>they use JWPlayer as their player of choice</li>
</ul>
<p>I requested a way to 'know' when the video playback is complete. From reading, looks like the postMess... | 1 | 1,149 |
Why my Ajax call refresh page? (i.e. calling servlet again) | <p>I'm studying RESTful web service using Java.
My environment is using Netbean with GlassFish v3. </p>
<p>I have a page URL <code>/inventoryList</code> which is URL mapped to <code>InventoryApp.java</code> servlet in web.xml</p>
<p><strong>web.xml</strong></p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>... | 1 | 3,299 |
Extjs 6 viewModel and Store | <p>I am using Extjs 6 to build grid view.
this is my Store :
schedule.js</p>
<pre><code>Ext.define('schedulewise.store.schedule.Schedule', {
extend: 'Ext.data.Store',
alias: 'store.Schedule',
requires: [
'schedulewise.utils.Config'
],
model: 'schedulewise.model.schedule.Schedule',
autoL... | 1 | 1,216 |
Dictionary.ContainsKey() in C# is not finding a key in the Dictionary | <p>I am trying to write a class for privileges/permissions.</p>
<p>I am trying to use the Binary base permission System in C#.</p>
<p>I got it where I believe it should work. However, it is not working as expected. </p>
<p>After, I stepped thru my code I can see one issue in the method called <code>_mapPermissions</... | 1 | 3,929 |
400 ( bad request ) using fetch to login | <p>I am attempting to use fetch to POST a login form my to login function using passport. </p>
<p>The login works when using the standard form action="/login", but I wanted to go over to fetch to be able to show realtime error output if login fails without refresh... </p>
<p>I am getting 400 ( bad request ) and Uncau... | 1 | 1,684 |
How do I count the letters in Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch? | <p>How do I count the letters in Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch?</p>
<pre><code>print(len('Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch'))
</code></pre>
<p>Says 58</p>
<p>Well if it was that easy I wouldn't be asking you, now would I?!</p>
<p>Wikipedia says (<a href="https://en... | 1 | 2,152 |
Clarify usage of WINHTTP_STATUS_CALLBACK function, for SSL status codes | <p><br>
I'm writing some WinHttp code in C. I'm sending requests over SSL, and in order to handle SSL errors, I'm registering a <a href="http://msdn.microsoft.com/en-us/library/aa383917%28v=VS.85%29.aspx" rel="nofollow">WINHTTP_STATUS_CALLBACK function</a>, via a call to <a href="http://msdn.microsoft.com/en-us/library... | 1 | 1,838 |
Angular2 - Shared Layout for multiple modules | <p>I build an Angular application with different modules. Each module handles distinct tasks. On my landing page, the user should login or register. It's a very lean layout without any navigation. On my feature modules (which are accessible after a login) the user can perform tasks and search for information.</p>
<p>M... | 1 | 1,557 |
Shared Element Transition Android Doesn't Work | <p>I'm trying to to this for a day but i don't know what is the problem! I have an activity with two fragments which in the first one i have a RecyclerView contains an imageview and on the other fragment i have another imageview.</p>
<p>custom view layer imageview:</p>
<pre><code><ImageView
android:id="@+id/cl... | 1 | 1,332 |
Android NDK solib-search-path on Windows using incorrect slashes | <p>I'm trying to debug an NDK project on Windows using Eclipse (Kepler), but GDB won't find the symbols for the .so file, because the direction of the slashes in the search path are incorrect. Using NDK r9 and SDK 22.2.1, when I try and run the application, GDB shows:</p>
<blockquote>
<p>warning: Could not load shared ... | 1 | 1,179 |
Sorting Rows in Excel with POI | <p>I'm trying to sort an XSSF sheet in POI and I'm not having any luck. I found a prior post saying the issue with shifting rows was fixed in 3.9 but I'm still getting an error. I tried using the method below and this is the error I'm getting..</p>
<pre><code> /**
* Sorts (A-Z) rows by String column
* @param sheet... | 1 | 1,756 |
How to use multiple instances of plupload on single form | <p>I want to use multiple instances of plupload on single form. I saw the following link. But i dnt know how to implement that in wordpress. </p>
<p><a href="http://jsfiddle.net/X65zF/36/" rel="nofollow">jsfiddle.net/X65zF/36/</a>.</p>
<p>So I can upload images from first upload link, then documents from second uploa... | 1 | 1,724 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.