title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
merge_asof equivalent using pandas merge only
<p>I have the following 2 DataFrames. A has the data and B has the weights for the data. B has the dates on which the weights become active as the index and 'level_1' has the entity for which the weight is relevant.</p> <pre><code>A = pd.DataFrame(index=pd.date_range(start='2016-01-15', periods=10, freq='B')) B = pd.D...
2
1,237
C# UI freezing when serial port attempts to connect
<p>I have a question concerning why my C# interface is freezing during a serial port connection. If I connect to a serial port that is valid (my device which sends the number of bytes I am expecting) the interface doesn't freeze. However if the user attempts to connect to another port on the computer or the wrong model...
2
1,316
Outlining a 3D model using Stencil-buffer
<p>First I'd like to mention that I found what I believe to be the exact same question, unfortunately without an answer, here: <a href="https://stackoverflow.com/questions/28008213/java-using-opengl-stencil-to-create-outline">Java Using OpenGL Stencil to create Outline</a></p> <p>I will post my code below, but first h...
2
1,977
How to access global array in Swift 4?
<p>I'm having a hard Time changing an my global array monthlyAvgArray through my parseJson() function. When I run the debugger, it shows that it has values at one point, but then when I try to access it outside the function, it says its empty. I have tried returning an array from my function and setting it equal to the...
2
1,145
Django: Creating categories using querysets/filtering
<p>I'm trying to figure out if it's possible to create categories using custom filters.</p> <p>I am building an e-commerce app and I have set up my category model using mptt. I am importing a csv that creates my top level categories which works fine. The problem is I will need to have sub-categories that are more spec...
2
1,943
setNotifyValue on Two BLE Characteristics
<p>I can't seem to setNotifyValue for more than one characteristic in the same BLE service. The app always crashes when the second setNotifyValue is called. </p> <p>If I comment setNotifyValue out on either one of the characteristics and recompile, the app works well and provides a live stream of incoming data. </p> ...
2
1,429
Proper way to update ImageView in a RemoteViews?
<p>I'm trying to fetch an image from a remote URL and put it into an ImageView. The ImageView itself is within an app widget, so from my current understanding that means it is encapsulated within a RemoteViews and isn't really handled directly.</p> <p>But I can never get the app widget to display an image. I'm fetch...
2
1,394
Category items won't display on a single row
<p>I am finishing up a custom Storefront child theme for a client. Yesterday, when I began work, I noticed the homepage category row items were displaying on two rows. I had made no changes to any of the template code or CSS. No matter what I do, I cannot get them to display on a single row. I have removed the float, p...
2
2,660
how to show 2 lines with different range on nvd3 graph
<p>I am plotting a line graph using nvd3 library, it plots two lines but there is huge difference in both line values, one line (line 1) have values close to 500 and second line (line 2) have values between 0-1 because of range difference line 2 which have values in 0-1 is shown as flat line close to x-axis though its ...
2
1,271
ExpandableListView extended using BaseExpandableListAdapter but reading from Sqlite DB example
<p>Senior Geeks.</p> <p>I'd like to request a simple but fully working example of how to implement an ExpandableListView while extending from BaseExpandableListAdapter Yet Reading data from an Sqlite Database.</p> <p>I have researched and experimented on the question (see <a href="https://stackoverflow.com/questions/...
2
3,852
How to reset countdown timer in python with button(tkinter)
<p>The code below is the 'addition' part of a math quiz game that I am trying to create on python. Whenever button4 (with the submit_answer command) is clicked, the countdown seconds seem to count twice as fast as before. Is there a way to have the countdown time length stay the same every time button4 is clicked?</p> ...
2
1,345
SKSpriteNodes not appearing
<p>So i currently think i have set up these sprite nodes fine and they should be appearing but i cannot figure it out why they are not showing up in the simulator. Both the background image(bg.png) and the "bird" node appear but none of the nodes inside spawnPipes method are appearing. I am newish to using SpriteKit so...
2
1,145
How do I put multiple SVGs in one render (React Native)?
<p>I'm new to react native, and I was wondering if there was any way to include two SVGs in the same page. So far I've been able to render both of my figures through one SVG, however, I would like to add multiple SVGs. The following is the code I have so far. I hope someone can lend a hand! Thanks. .......................
2
6,269
Node Cannot Find Modules
<p>I am new to node and javascript and I'm trying to utilise the following library: <a href="https://github.com/Applifting/stv" rel="nofollow noreferrer">https://github.com/Applifting/stv</a></p> <p>I am unable to work out why I keep get the following &quot;Error: Cannot find module './stv'&quot;</p> <p>I've read sever...
2
2,026
How to pass closure argument to a method of a trait with a lifetime parameter?
<p>I am trying to use <a href="https://crates.io/crates/rlua" rel="nofollow noreferrer">rlua</a> to add Lua scripting to my application but I've run into a problem with closures and lifetimes.</p> <p>I have a method <code>scope</code> that accepts a closure as its argument. The closure takes one argument <code>s</code...
2
1,725
External-DNS EKS AWS
<p>[AWS EKS 1.13]</p> <p>I am trying to setup external-dns as described here :</p> <p><a href="https://github.com/kubernetes-incubator/external-dns/blob/master/docs/tutorials/aws.md" rel="nofollow noreferrer">https://github.com/kubernetes-incubator/external-dns/blob/master/docs/tutorials/aws.md</a></p> <p>I want to ...
2
1,483
Mongoose DBrefs - Cast to ObjectId failed for value
<p>I have a Team Schema holding details about teams, and a Match Schema to store these teams in. I am trying to make it so that the home/away teams in the Match Schema are references to the Team object. I have put my code below, I'm getting an error when saving the Team but I can't help but feel I have done something w...
2
1,524
applying Datepicker to newly created input using Live()
<p>I am having a problem with the jQuery datepicker. My form has a "add another" button to give the user a extra row so they can enter more then one match. I want the date to display the datepicker and found how to do it with the live() function </p> <pre><code> $(function() { $('#AddAnother').bind('cli...
2
1,689
Flutter can't connect to SocketIO
<p>I'm a newbie in Flutter.</p> <p>I want to build an application that triggers an alarm when event is incoming. so I tried using SocketIO as a backend but I stuck with this error in Flutter's console.</p> <p>I build floatingActionButton for sending message test. When the button is pressed from the first phone, another...
2
2,475
EC2 keypair works in one instance but fails on other - Permission denied (publickey)
<p>I have read many posts on this subject but none helped me solve my issue.</p> <p>I have a machine amazon ec2 which I connect using this SSH command:</p> <pre><code>ssh -i /Library/AWS/glrpopulis.pem ec2-user@54.225.154.23 </code></pre> <p>I've never had problems with this command until now. It just stopped workin...
2
1,177
.Net Core 3.1 SignalR - Unable to read messages on server from client using .NET Client Package
<p>I am trying to create a client connection to the SignalR HUB with an IHosted background service on the .net core server. I want to be able to read/process the data that is received from a signalR Client once it arrives at the server. Imagine it as a way of intercepting and reading the messages as they are passed thr...
2
2,744
PySpark EMR step fails with exit code 1
<p>I'm learning to use AWS EMR for the first time to submit my Spark jobs. The script I'm using is very short (<strong>restaurant.py</strong>):</p> <pre><code>from pyspark import SparkContext, SQLContext from pyspark.sql import SparkSession class SparkRawConsumer: def __init__(self): self.sparkContext = SparkCon...
2
1,332
if else condition in view for displaying webgrid in mvc
<p>i am working on a project in which i have to display some webgrids. Those webgrids have the same datasource but they should be divided based on some condition. Here is my code for controller:</p> <pre><code>public ActionResult Index() { SqlCommand cmd = new SqlCommand("select * from Bspecial_Ad...
2
4,390
cron works with enforcing SELinux even if crond_disable_trans is disabled
<p>I have a Red Hat 5 with SELinux in enforcing mode :</p> <pre><code>SELinux status: enabled SELinuxfs mount: /selinux Current mode: enforcing Mode from config file: enforcing Policy version: 21 Policy from config file: targeted </code><...
2
1,311
Spring mvc with jdbc template
<p>I want to implements simple login with spring mvc and jdbc template. but I am getting null pointer exception. I have included spring-core.jar,spring-jdbc.jar,spring-txn.jar,spring-web.jar..</p> <pre><code> ****Complete stack trace:**** May 17, 2015 6:54:54 PM org.apache.catalina.core.StandardWrapperValve ...
2
3,576
How To Search For a DataPoint on the X-Axis, and then be able to change the Y Value?
<p>I am creating a chart that currently generates different data points by adding to x-axis values in a loop in one series.</p> <p>In another series I want to be able to:</p> <ul> <li>Search to see if the series "Total Cost" has a data point at the same point as a string "starttime"</li> <li>if the chart has no value...
2
1,087
Is there a way to convert OpenAPI specifications to json mappings in maven?
<p>I need to convert OpenAPI specifications into json mappings so I could use them in my wiremock server, but I'm not sure if there is an available plugin to do this type of conversion.</p> <p>This is an example of an OpenAPI I'm using</p> <pre><code>openapi: "3.0.0" paths: /fraudcheck: put: summary: Pe...
2
1,546
Delphi Firemonkey 3D: How can I change the origin from which a 3D object rotates?
<p>The cube rotates when the user holds down the LMB and moves the mouse.I am using a dummy as a kind of "anchor", so that the camera stays in the same place, but the object rotates, so all sides can be seen by rotating the object (which is a cube). The problem is that after rotating the object, its x and y remain cons...
2
1,433
WPF: Bind property to TextBlock not working
<p>I have below xaml file (this a piece):</p> <pre><code> &lt;Grid Opacity="1" Margin="5"&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="Auto" /&gt; &lt;RowDefinition Height="Auto" /&gt; ...
2
2,291
Invalid Access Token/Missing Claims when logged into IdentityServer4
<p>I have a standard .NET Core 2.1 (MVC and API) and Identity Server 4 project setup. I am using reference tokens instead of jwt tokens.</p> <p>The scenario is as follows: </p> <ul> <li>Browse to my application</li> <li>Redirected to Identity Server</li> <li>Enter valid valid credentials</li> <li>Redirected back t...
2
4,446
SMBus Communication with Silicon Labs C8051f320 and ADXL345
<p>I am Trying to Communicate from C8051F320 MCU to ADXL345 Accelerometer via SMBus</p> <p>8051 is Master ADXL345 is Slave</p> <p>to test my code i use a simple read of the ADXL345 <strong>device_ID</strong> at address <strong>0x00</strong></p> <p>but Sadly it is not Working</p> <p>Here is my Code</p> <pre><code>v...
2
1,494
Why do MovieClipLoader events not fire when loaded into an AS3 wrapper?
<p>While trying to answer this question: <a href="https://stackoverflow.com/questions/8064798/call-to-an-as2-function-from-the-as3-container">Call to an AS2 function from the AS3 container</a> I have come across a roadblock. The setup is an AS3 SWF which loads an AS2 SWF, which in turn loads another AS2 SWF. Communica...
2
1,257
Unable to load CoreNLP Shift-Reduce model into CoreNLP jar
<p>I don't understand how to load CoreNLP's Shift-Reduce Constituency Parser (SRCP) from my java app.</p> <p>I'm using Apache Maven to manage my project's dependencies. Per the docs, the SRCP model is not bundled with CoreNLP, so I have downloaded stanford-srparser-2014-10-23-models.jar separately (<a href="http://nlp...
2
1,890
Bootstrap modal not showing on xs devices
<p>I have a few modals on my page. They all work fine except for one of them, which only displays on sm, md and lg devices, but not on xs. When I shrink the screen, all I see is a darkened screen, but no modal. If I click on the button to trigger it, while I'm on a xs screen, same darkened screen. What could that be? <...
2
2,361
How to deal with missing value error - vegan::rda()
<p>I used <code>Vegan</code> <code>R</code> package to analyze my data. But I have some missing value in my data, so when I use function <code>rda</code>. The output is like this:</p> <pre><code>#RDA pca.rda &lt;- rda(pcan ~ ., data = all.env, scale = FALSE) </code></pre> <blockquote> <p>Error in na.fail.default(li...
2
1,330
Computed values in a object | Svelte
<p>I am coding some projects to learn Svelte and I have been trying to make something similar to a spreadsheet where a user type or change numbers and that reactively make some calculus with a predefined formula (the user can not change the formula). I have tried but I can not do it reactively.</p> <p>For this I have ...
2
1,840
JQuery - Showing a div on mouseenter
<p>I've created the following HTML. The yellow boxes contains image thumbnails. When I mouseover a thumbnail it show a view link on top of the thumbnail.</p> <p>But if I move the mouse fast I'm getting the link div to flicker.</p> <p>Here is the code - you can copy and paste it as html and test it.</p> <pre><code>&l...
2
4,228
Unable to consume REST API in SAPUI5
<p>I am trying to develop a weather app which consumes 3rd party services (<a href="http://openweathermap.org/" rel="nofollow noreferrer">API link here</a> ) for which the code is given in this <a href="https://blogs.sap.com/2016/03/22/webide-how-to-consume-3-party-services-in-ui5-app/comment-page-1/#" rel="nofollow no...
2
2,796
.NET equivalent for Java wildcard generics <?> with co- and contra- variance?
<p>I'm stuck trying to translate some Java code that uses (bounded) wildcard generics to C#. My problem is, Java seems to allow a generic type to be both covariant and contravariant when used with a wildcard. For instance: </p> <p><strong>Java:</strong></p> <pre><code>interface IInterf { } class Impl implements II...
2
1,055
HTTP CONNECT method with Android
<p>I want to extend an existing Android app which sets up a http connection to a remote device which it sends commands to and receives values from.</p> <p>The feature consists of a tunneled connection via a custom proxy server that has been set up. I have the http header format given which should make the proxy server...
2
1,779
ui-grid inside tab is displayed without columns
<p>I'm implementing a tab with an ui-grid that no show column from 5-th one. In the firsst application load the grid is showed pretty well, but if I press F5, Ctrl-F5 the grid doesnt show the columns, as shown on images.</p> <p><b>I check the generated HTML and the content for hiden columns wasn't generated.</b> <b> I...
2
2,958
Prevent Apache custom error pages on JSON responses
<p>I'm working with an application that provides both HTML content and JSON APIs. Using Apache, I created custom error pages for the HTML content. The configuration uses type-maps to specify different versions of the error page based on the browser language.</p> <p>The problem is when there is an error returned by t...
2
1,046
Fail to install npm packages if i keep the package-lock.json file, npm ERR! errno -4048 after type npm install
<p>I have a project from git, and when i tried to install npm packages using <code>npm install</code>, i get npm different errors:</p> <p>**and if i delete <code>package-lock.json</code>,the npm install the packages successfully,but with different versions,that caused exceptions and conflicts in the project **</p> <p><...
2
15,898
Getting the values of the collection from Expression with Lambda - .Contains
<h2>Getting the values of the collection from Expression with Lambda - .Contains</h2> <p>I'm trying to get all values from the collection that contains a member in IQueryable. However, it seems that different collections behave differently.</p> <p>Consider the following listing:</p> <pre><code> var sampleData = new ...
2
1,222
Show a snackbar from a broadcast receiver?
<p>so I am looking to make a tasker plugin that shows a snackbar with user entered text. The problem I am having is that I have to show the snackbar from a broadcast receiver. I thought I found a way by passing the activity context from an activity class, but the app just crashes. All help is much appreciated. </p> <p...
2
1,362
TcpOutboundGateway - Cannot correlate response - no pending reply
<p>I'm using spring integration to create TCP server and also to test if it works with junit. The problem is that i'm receiving an error: org.springframework.integration.ip.tcp.TcpOutboundGateway - Cannot correlate response - no pending reply. Please help me to fix it. Here is more info. I have unit test that send some...
2
2,429
Android Studio Google Maps Working on Android Device but not on Emulator
<p>I am trying to get my current location in Android Studio by using the Google Maps API Key I got from Google Cloud platform. If I run the app on my phone, everything is OK. If I run the app on the emulator, my location appears to be Google Plex, as in the following image(which would be completely wrong): <a href="htt...
2
2,657
Dynamic build JSON variable from HTML5 mobile send to Ruby on Rails controller
<p>Client: HTML5 + JS + localdb Server: Rails3</p> <p>I'm trying to code small mobile app: the app if a small form that records some contacts info into a local database. Then when clicking on a Sync button it send the contacts to a RoR app.</p> <p>Trying to follow some best practise I would like to store the data on...
2
1,351
Ruby: Convert big .xml files to csv
<p>I have a little problem. I need to convert large xml files (1-4GB each) to CSV. I know that I can do this with Nokogiri's SAX parser, but I'm stuck.</p> <pre><code>&lt;Documents&gt; &lt;Document DocID="10170306" DocType="Message"&gt; &lt;FieldValues&gt; &lt;E03&gt;-1166737392&lt;/E03&gt; &l...
2
1,439
What is the correct way to pass props to NavItem
<p>My code works but give an error so I just wanted to inform how I can prevent an error from showing up.</p> <p>I'd like to learn how to write correct code. </p> <p>This is what my code looks like now:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="s...
2
1,233
Getting the error 1119: Access of possibly undefined property visible through a reference with static type Class
<p>I am attempting to hide a symbol (Grill image) as soon as my animation loads. Currently I am getting the error, E:\Burger Game\DragandDrop\Dragable.as, Line 4, Column 8 1119: Access of possibly undefined property visible through a reference with static type Class. As you can probably tell, I am new to flash.</p> <...
2
1,125
Display the side menu in ionic using different pages
<p>I am trying to display the side menu in ionic, I wrote the code for side menu. </p> <p>If I write all the code in a single page, it is displaying the side menu and drag is also working. </p> <p>Same way, I am trying to display the side menu proving route <code>$stateProvider</code>, here the root is working and a...
2
1,748
How do I fix drag and drop for a Google map (v2) inside a JQuery Dialog (1.4.2, 1.8.5)?
<p>Dragging and dropping a marker on a Google Map inside a modal JQuery dialog isn't working properly using JQuery 1.4.3 and JQuery-UI 1.8.5. </p> <p>The following snippet is reproducing the issue in Chrome 6.0 and Firefox 3.6.10 (but not Opera 10.63 which surprisingly doesn't have the problem), and this was working ...
2
1,638
KeyError: 'Spider not found: spider'
<p>I have a Scrapy project called crawler.</p> <p>my spider looks like this:</p> <pre><code>class WikiSpider(scrapy.Spider): name = &quot;wiki-spider&quot; def start_requests(self): for url in CrawlerUrls().wiki: yield scrapy.Request(url=url, callback=self.parse) def parse(self, re...
2
1,417
Problems on creating new page in NSIS with checkbox etc
<p>I want to insert a new page in the installation which contains two checkboxes named <code>Client version</code> and <code>Server version</code>. On clicking client version nothing special happens as of now. But if server version is selected then a browse option should come to select a folder (This is not a installat...
2
1,668
Load Torrent in VB.NET with Monotorrent
<p>im making a simply app to download torrent files, using MonoTorrent. But i cant load the torrent properly, and I've looked all available information.</p> <p>That's the code im using: </p> <pre><code> Imports MonoTorrent.BEncoding Imports MonoTorrent.Client Imports MonoTorrent.Client.Tracker Imports MonoTorrent....
2
4,138
getting text from dynamically added edit text in linear layout
<p>I have added dynamically Linear Layout which have edit field, now i want get the text from those edit fields. Here is my code for adding layout dynamically </p> <pre><code>linearLayoutForm = (LinearLayout) findViewById(R.id.linearLayoutForm); btnAdd.setOnClickListener(new View.OnClickListener() { ...
2
1,100
Two factor (key and keyboard-interactive) authentication to SFTP server using Python Paramiko
<p>I am trying to connect to a server via secure SFTP in Python but I keep getting authentication errors. I'm sure I have the right details as I can connect via WinSCP fine:</p> <p><a href="https://i.stack.imgur.com/Iqyss.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Iqyss.png" alt="enter image de...
2
1,112
How do I call a Java methods from one class to another class in Android development?
<p>I have two classes which extend Activity and need to call another class method on main class on android development. I did something like <code>subclass sub = new subclass()</code>. It did not work.</p> <p>In 1st activity class</p> <pre><code>package org.me.intent_testing; import android.app.Activity; import andr...
2
1,053
ClassNotFoundException when running clojure jar
<p>I am trying to run a clojure jar file and I get the error below:</p> <pre><code>C:\Users\Nahashon&gt;java -jar C:\Users\Nahashon\.m2\repository\org\enclojure\sample\0.0.1\sample-0.0.1.jar Exception in thread "main" java.lang.NoClassDefFoundError: com/mode/mdzw Caused by: java.lang.ClassNotFoundException: com.mode....
2
3,133
NodeJS MongoDB Callback Hell
<p>I'm still having trouble with conditionals and database callbacks, I wrote a routing function that querys for a violation object and this is from a form filled out in the client side. I am trying to change the user that owns this violation as an option, I query for that user and return it fine however at the if stat...
2
1,364
SelectionChanged Event for ListBox in panorama.ItemTemplate for Windows Phone?
<p>I have item template for the panorama control. In that template, i have listbox with listItem template. I have problem with selection changed event in the list box.</p> <pre><code>&lt;phone:PhoneApplicationPage.Resources&gt; &lt;CollectionViewSource x:Key="SlideItemList" Filter="collectionView_Filter"/&gt; &lt;...
2
1,490
Using Intro.js hints on bootstrap modal window, hints displays behind modal
<p>I am using the intro.js "hints" plugin (<a href="https://introjs.com/example/hint/index.html" rel="nofollow noreferrer">https://introjs.com/example/hint/index.html</a>, <a href="https://introjs.com/docs/hints/api/" rel="nofollow noreferrer">https://introjs.com/docs/hints/api/</a>) on a bootstrap web site. I need the...
2
1,414
Capistrano 3 runs every command twice (new install) - Configuration issue
<p>I just completed my capistrano installation for the first time. Most of everything is left to default settings, I configured my server, its authentification, and the remote folder, as well as the access to my git repository.</p> <p>I use capistrano to deploy php code to my server.</p> <p><em>cap staging deploy</em...
2
1,421
Header errors in CLion
<p>I met an annoying problem in Clion which is that there are always header errors in my project.<br> Here is my <code>CmakeLists.txt</code>:</p> <pre><code>cmake_minimum_required(VERSION 3.6) project(geometry) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(PROJECT_SOURCE_DIR geo) set(CMAKE_INCLUDE_CURRENT...
2
1,914
How to use QFileSystemModel to filter multiple directories and show them on QTreeView?
<p>How do I use <code>QFileSystemModel</code> to filter several directories in PyQt4 and show them on a <code>QTreeView</code>?</p> <p>I try to</p> <ol> <li><p>subclass <code>QFileSystemModel</code>, but I do not know how to return the <code>rowCount</code></p></li> <li><p>use <code>QSortFilterProxyModel -&gt; filter...
2
1,776
Update entity, delete associations in many to many relationship using Fluent NHibernate
<p>I have two entities like this:</p> <pre><code>public class Service { public virtual int ServiceId { get; set; } public virtual char LayoutCode { get; set; } public virtual string ServiceNameEn { get; set; } public virtual string ServiceNameTh { get; set; } public virtual string ServiceDescEn { g...
2
7,404
ExoPlayer live stream freezes on Askey Android TV box, audio continues
<p>On play-out of some of our own DASH+widevine protected live streams, the video freezes after just a few seconds on an Askey Android TV box (Android 9) while audio continues. I also see video chunks still being fetched. The same streams play successfully on every other Android device we used so far.</p> <p>After tr...
2
9,410
Numba not speeding up function
<p>I have some code I'm trying to speed up with numba. I've done some reading on the topic, but I haven't been able to figure it out 100%.</p> <p>Here is the code:</p> <pre><code>import pandas as pd import matplotlib.pyplot as plt import numpy as np import scipy.stats as st import seaborn as sns from numba import jit...
2
3,325
Recursion in python, python crashes everytime it is run
<p>I am trying to write a program that uses recursion to solve for the velocity of an object shot straight into the air and calculates when it hits the ground while accounting for gravity changing with altitude with this equation <code>g(s) = G∙ME / (RE + s)^2</code> displacement with this equation <code>s(t) = s(t-...
2
1,178
Flutter - TextField auto complete suggestions from SQLite
<p>I am trying to create an autocomplete <code>TextField</code>. This one is working when I used the below hardcoded <code>List</code>.</p> <pre><code>List&lt;String&gt; suggestions = [ &quot;Apple&quot;, &quot;Actual&quot;, &quot;Actuary&quot;, &quot;America&quot;, &quot;Argentina&quot;, ]; </co...
2
1,277
Is it possible to create a ProgressBar without having to run it on a new thread?
<p>I have been looking at a lot of Progress Bar examples, and they all involve creating a new thread, or an async task. Those kinds of progress bar are the ones that pop up, updates, and disappears when the task is done.</p> <p>However, I am interested into creating a permanent ProgressBar in my app that can actually ...
2
2,265
Why is this line of Perl code throwing a numeric gt warning?
<p>I have the following conditional:</p> <pre><code>if ($self-&gt;path ne 'contact_us' &amp;&amp; !grep { $status == $_ } 2, 3, 8) { </code></pre> <p>And it is throwing this warning:</p> <blockquote> <p>Use of uninitialized value in numeric gt (>)</p> </blockquote> <p>Of course, there's no numeric gt at all on th...
2
2,059
drbd sync fails with ProtocolError
<p>I currently have a pair of drbd servers that have decided to stop syncing and I can't seem to do anything to get them to sync up again. The sync process occurs over a dedicated crossover cable (1gbps copper) between the two servers.</p> <p>Here is what I see in the logs for r01:</p> <pre><code>Aug 9 16:09:44 r02...
2
3,874
Webdriverio Cucumberjs tests for a React Native app fails on AWS Device Farm - Socket hang up
<p>I'm writing End-to-ends tests for a React Native app using <a href="https://webdriver.io/" rel="nofollow noreferrer">WebdriverIo</a>, <a href="http://appium.io/" rel="nofollow noreferrer">Appium</a> and <a href="https://cucumber.io/docs/installation/javascript/" rel="nofollow noreferrer">Cucumberjs</a> and deploying...
2
2,554
C# Websockets - TCP Reverse proxy displaying websocket error
<p>Okay so I made a C# TCP reverse proxy server, and for some reason, other TCP reverse proxy servers work but mine does it. In the developer console, mine displays:</p> <pre><code>WebSocket connection to 'ws://127.0.0.1:1738/' failed: One or more reserved bits are on: reserved1 = 0, reserved2 = 1, reserved3 = 1 </cod...
2
2,782
Scaladoc (2.11.6) fails on throws tag with "unable to find any member to link"
<p>When attempting to publish the jars for my project via <code>sbt "++2.11.6 publishLocal"</code> or <code>sbt +publishLocal</code>, I encounter Scaladoc issues when publishing for Scala 2.11.6. It appears that I have invalid links caused by the <code>@throws</code> tag. I am not sure why I have invalid links nor why ...
2
2,599
React filter by category feature
<p>Hello I am building photo gallery where I would like to add feature that user will be able filter by Category. I tried some solutions but there are two bugs that I am not able to fix. First is that if I go to the GalleryPage (using Swtich) it does NOT render dynamically added buttons from FilterButton component. I h...
2
1,175
Devise /users/sign_in redirecting to wrong controller
<p>Vitals:</p> <ul> <li>ruby 1.9.3p194 (2012-04-20 revision 35410)</li> <li>[i686-linux] Rails 3.2.7</li> <li>Devise 2.1.2</li> </ul> <p>The GET /users/sign_in is attempting to redirect to the wrong controller. It has stopped redirecting to wecome#welcome (which works), ans is now redirecting to devise/welcome#welcom...
2
1,320
How to display data from SQlite to many textview
<p>i have a problem to display data from sqlite to many textview. Example, for name, i would like to put at the textviewName. below is my code.</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.profile); TextView TV_Name = (...
2
2,443
Camel Freemarker Example - Template Returns Null
<p><strong>The Problem:</strong></p> <p>I am trying to run the Camel Freemarker Example from the Camel website <a href="http://camel.apache.org/freemarker.html" rel="nofollow noreferrer">here</a>, so I can understand how they work together. However, I'm having a bit of trouble. </p> <p>As you can see in the code belo...
2
1,173
DataTable.Select throws EvaluateException: Cannot perform '=' operation on System.Double and System.String
<p>I am importing data from multiple spread sheets into a single database table.</p> <p>To start I've loaded the entire excel file into a data set, 1 page = 1 table. I then looped over all the pages and added the columns to the new combination table. Finally, I will take each row, find the corresponding row in the o...
2
1,226
Javascript check all checkboxes in classic asp
<p>This is my first time asking question in Stackoverflow</p> <p>i have a same problem to select specific boxes in asp</p> <p>i refer to the older post as </p> <p><a href="https://stackoverflow.com/questions/1543017/javascript-check-all-checkboxes-in-a-table-asp-net">Javascript check all checkboxes in a table / asp....
2
1,123
How to handle upload File in Plone using plone.api create and NamedBlobFile
<p>Dears,</p> <p>I have been create a script to read a txt and do a upload in Plone site (Plone 4.3.10). The script is here: <a href="https://stackoverflow.com/questions/38351633/script-python-using-plone-api-to-create-file-appear-error-wrongtype-when-set-a-f">Script Python using plone.api to create File appear error ...
2
2,575
UserDetailsService implemented class is not injecting autowired field
<p>i'm using acegi authentication for login . when i try to compare the values from databade i'm using the following class</p> <pre><code> @Transactional(readOnly = true) @Service public class CustomUserDetailsService implements UserDetailsService { @Autowired private UserDAO userdao; publ...
2
4,260
could not resolve property: userId.username
<p>I have following entity classes:</p> <pre><code>@MappedSuperclass public class AbstractEntity implements Serializable, Comparable&lt;AbstractEntity&gt; { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional = false) @Column(na...
2
2,009
Caffe Framework Runtest Core dumped error
<p>I have been installing Caffe Framework with the following GPU: Geforce 9500 GT CUDA 6.5 (not work with 7.0)</p> <p>when I run: <code>make runtest</code> the following errors appeared and I don't know what are the reasons:</p> <pre><code> make runtest .build_debug/tools/caffe caffe: command line brew usage: caffe &...
2
1,351
Angular + jQuery, trigger scroll when src of image changes
<p>I am trying to use jQuery to scroll to a particular thumbnail (inside a modal) when right/left arrows have been pressed (modal should pop up when user clicks on a image). I was able to make the scroll working when user clicks on a thumbnail but I could not trigger a click when variable <em>current2</em> changes. Any...
2
2,316
How do I modify a Bucket Policy to allow Root Credentials/IAM user
<p>Per the documentation at <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-4" rel="nofollow noreferrer">Restricting Access to a Specific HTTP Referrer</a> , I've granted access to a given set of domains, and as instructed, denied access to any site...
2
1,502
Object is possibly 'undefined' in Vuex mutation with TypeScript
<p>I'm learning Vue.js with Vuex and TypeScript, in the application i'm building i came across the error "Object is possibly 'undefined'" in the Vuex Store.</p> <p>The error happens in the "newCard" mutation in this line:</p> <pre><code>state.board.lists.find(list =&gt; list.id === idList).cards.unshift(card) </code>...
2
1,166
Creating HTML form with Bootstrap togglable tabs, content not showing
<p>I'm creating a form that has different fields when different tabs are opened up. I'm trying to use Bootstrap's togglable tabs, and it looks like it's working, but when you click on another tab, it doesn't show the other html that is supposed to show up in that particular div.</p> <p>Here's my HTML:</p> <pre><code>...
2
1,357
How to read data from dynamo db table into dataframe?
<p>Below is the code where I am trying to read data from dynamo db and load it into a dataframe.</p> <p>Is it possible to do the same using scanamo? </p> <pre><code>import org.apache.hadoop.io.Text; import org.apache.hadoop.dynamodb.DynamoDBItemWritable import org.apache.hadoop.dynamodb.read.DynamoDBInputFormat impor...
2
3,312
sbt java.io.IOException: Cannot run program "javac": java.io.IOException: error=12, Cannot allocate memory
<p>I tried to setup CI with the command <code>sbt -mem 2048 clean compile test</code> and I get the folloiwng</p> <pre><code>[info] Compiling 4 Scala sources and 8 Java sources to /opt/gitlab-6.2.2-0/apps/gitlabci/gitlabci-runner/tmp/builds/project-1/target/scala-2.10/classes... [warn] there were 2 feature warnings; r...
2
5,600
twitter stream JSON decoding
<p>So, I have created geo map box from which I gather Tweets, and I want to get even more precise locations using long;lat.</p> <p>I need to get out only coordinates (long;lat separate) without rest of "coordinates" data.</p> <p>Im using <em>tweepy</em> and I understand Iam not decoding it right but I can't seem to u...
2
1,280
Set the drop down-menu background height to absolute position sub menu height
<p>I have a multi level navigation on the page. The navigation has three to four levels. I want a full width background in the drop down menu including all the sub menus. Currently, I have done with the one level, but when on click of the first level menu, the second level menu arises then the background is not taking ...
2
3,512
Is there a way to use rxjs with ng2-charts?
<p>I cant find a way to implement a live charts with ng2-charts.</p> <p>I get an error when I do : </p> <pre><code>&lt;div *ngIf="(lineChartData$ | async)!=null"&gt; .... &lt;canvas baseChart width="100" height="200" [datasets]="lineChartData$ | async" &lt;&lt;-ERROR: "Cannot read property 'data' of und...
2
1,961
When removing items from futurebuilder it doesn't update
<p>I have a futurebuilder that calls an API connected to DynamoDB. When I remove an item from dynamoDB however it doesn't update my list unless I navigate away from the screen and then come back, allowing the FutureBuilder itself to rebuild.</p> <p>I've tried using a ListView with a variable calling the API on init s...
2
2,182
SurfaceView goes black when comes to foreground, for Camera App
<p>I am using Camera feature in my app. Everything works fine but when the device gets locked/sleep, upon returning to the app the camera portion(SurfaceView) is just black. Below is my code. Can someone please identify the problem?</p> <pre><code>public class Activity_Camera extends Activity implements SurfaceHolder....
2
2,539
Unable to connect to PostgreSQL with SSL on Django
<p>My Django application is hosted on one server, and my PostgreSQL database on another. I want the communication between the two servers to be forced to go through SSL.</p> <p>My database configuration in Django's <code>settings.py</code>:</p> <pre><code>'default': { 'ENGINE': 'django.db.backends.postgresql_...
2
1,434
Rally RestAPi-unable to update Test set results
<p>Though i am able to pull all the test cases present in a particular test set and modify or update all the test Results. Test set is not reflecting the verdict(pass/fail) after updating the Test cases in that Test set.</p> <p>If i navigate to one of the tescase detail page, i am able to see updated testcase result</...
2
2,533