title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Cannot minify CSS file
<p>I'm trying to use <strong>Webpack 4</strong> for my project. All plugins works except <code>extract-text-webpack-plugin</code>.</p> <p><strong>Actual Behavior</strong>: when I build the project there are no errors at all and minified file also</p> <p><strong>Expected behavior</strong>: get minified CSS file ( <cod...
1
1,585
d3 and webpack: __WEBPACK_IMPORTED_MODULE_0_d3__.scaleLinear is not a function
<p>I'm attempting to use d3 to render some graphs in my Vuejs components. I am importing d3 as recommended <code>import * as d3 from 'd3'</code> and attempting to call d3 functions on it.</p> <p>webpack.base.conf.js</p> <pre><code>'use strict' const path = require('path') const utils = require('./utils') const config...
1
1,882
Null pointer Exception at ActionBar
<p>I am getting this Error at runtime.</p> <blockquote> <p>java.lang.RuntimeException: Unable to start activity ComponentInfo android.util.AndroidRuntimeException: requestFeature() must be called before adding content</p> </blockquote> <p><strong>StackTrace:</strong></p> <pre><code>01-22 04:55:59.728: E/Androi...
1
2,171
Embedding a CMD terminal in a C# Winforms application
<p>What I intend to do is build an application which, among other things, will have a command line embedded in it just like some IDEs do (something I find extremely useful). </p> <p>This is the code that I have so far, do note that it's a Winforms project: </p> <pre><code>public partial class Form1 : Form { ...
1
1,164
How do I make the quantity dropdown work right in cart page?
<p>Since I don't know how to disable the quantity hover. I'm going to use the dropdown quantity. I have the code but the quantity dropdown doesn't update the right number in the cart page. Do you know why? For example if I my quantity is 3, it will say 1 in my cart page. Also when I choose my quantity 3, and then I cli...
1
1,066
OAuth2 error: CSRF Detected
<p>I'm using the ominauth-google-oauth2 gem in Rails. I Can't say that this is a bug but I am stumped on how to solve it. I've written a super simple Rails program to verify the problem. I am following <a href="https://medium.com/@ajayramesh/social-login-with-omniauth-and-rails-5-0-ad2bbd2a998e" rel="nofollow noreferre...
1
1,696
Android parse JSONObjects inside JSONObject
<p>How can I parse this JSON file correctly in Android?</p> <p>I need all the objects from lets say tower 1 (there can be different amounts of weekdays in there) and also different amount of time frames in those weekdays.</p> <p>I've successfully used a static method like</p> <p><code>JSONObject jArray = ja.getJSONO...
1
1,688
Is this property of a functor stronger than a monad?
<p>While thinking about how to generalize monads, I came up with the following property of a functor F:</p> <pre><code>inject :: (a -&gt; F b) -&gt; F(a -&gt; b) </code></pre> <p>-- which should be a natural transformation in both a and b.</p> <p>In absence of a better name, I call the functor F <strong>bindable</s...
1
1,239
3 layer li ul menu
<p>I want to create a 3 layer li ul menu but the 3 layer is covering the second layer. Can someone help me to align the 3 layer just right next to the second layer?</p> <p>I very much appreciate your comments!</p> <p>Best, W</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/T...
1
2,403
How to reduce div size in CSS using twitter bootstrap?
<p>I asked the same question before, but i made code changes from the past. I still have the same problem of adjusting the div size.</p> <p>I am trying to design a login page, the screenshot is below.</p> <p><a href="http://prntscr.com/2pksiq" rel="nofollow">http://prntscr.com/2pksiq</a> (latest)</p> <p>Where as i w...
1
2,203
undefined method `after_create' for Controller:Class
<p>I am unsure why i get the below error. I am new to rails so Any help and explanation will be much appreciated.</p> <ol> <li>i am trying to send emails to subscribers each time a blog is created.</li> <li>in my blog controller i have added <code>after_create :send_email_to_subscribers</code></li> <li>in my blog cont...
1
1,585
Paginating a table in React-bootstrap
<p>I am trying to paginate a table using react-bootstrap. To do this I created a page below. However instead of seeing the pagination component in the docs, I see a bunch of <code>&lt;li&gt;</code> tags for "&lt;&lt;", "&lt;" "1", "2", ">", ">>" on separate lines.</p> <p>Also when I click the next button or a page but...
1
1,456
Jackson xml 2.9.0: @JacksonXmlElementWrapper not working with @JsonCreator & @JsonProperty constructor
<p>I would like that my <code>ParentClass</code> has <code>final</code> fields, 'brokenChildList' list is wrapped xml element and list items have different tag than the list (<code>&lt;brokenChildList&gt;&lt;brokenChild/&gt;&lt;/brokenChildList&gt;</code>).</p> <p>Here is a snippet of code to reproduce my issues (impo...
1
1,536
gridview not visible in updatepanel in ASP.NET
<p>I currently have a <code>GridView</code> in a pop-up control. The <code>GridView</code> is embedded in an <code>UpdatePanel</code> and I have the window pop-up showing nothing on it. However, when I debug through it I see that the <code>GridView</code> has data in it and it is bound, but I am not noticing any change...
1
2,435
Combine Validation (js), submit (php) and modal (bootstrap) in form
<p>I am using Bootstrap to create a simple contact form and would like to achieve the following when pressing the "submit" button: </p> <ul> <li>Validate the form fields using jQuery</li> <li>Submit the form if validation passes, using PHP as the processor</li> <li>Show a message inside of a Bootstrap modal dialog tha...
1
2,230
My pay pal button will not link to pay pal. It only refreshes page, why?
<p>I have the following code in my registration page to go to a paypal button. But when I click on the button it just refreshes the page. </p> <p>Is their something I am missing? I should be able to include a paypal button on an aspx page right?</p> <pre><code> &lt;asp:Content ID="Content1" ContentPlaceHolderID...
1
1,663
How to find distinct root-nodes of newest nodes in trees (hold in closure table)?
<p>I try to store tree of messages as closure table on MySQL. Mostly learned about this method from Bill Karwin's presentation <a href="http://www.slideshare.net/billkarwin/models-for-hierarchical-data" rel="nofollow">Models for hierarchical data</a>. Problem is: i want to find distinct 3 root nodes (=nodes without anc...
1
1,517
GCC inline assembly - Move float to XMM0 before call
<p>I'm currently trying to call a generic C function from GCC inline assembly (bad idea, I know, but I'm bored today...).</p> <p>My operating system is Mac OS X, 64bits, so the calling convention is System V, meaning arguments 0-6 are passed through the <code>rdi</code>, <code>rsi</code>, <code>rdx</code>, <code>rcx</...
1
1,488
UITapGestureRecognizer not working on UILabel
<p>I am trying to add a UITapGestureRecognizer to a UILabel that will animate down from the status bar if the user has a new announcement. I want the user to be able to click the label and goto the announcement directly. The UITapGetureRecognizer isn't working. Here is what I am doing:</p> <pre><code>+(void)animateDow...
1
1,433
Why does ffmpeg report different durations?
<p>Source videos: <a href="http://www.artworknotavailable.com/tmp/ffmpegtest" rel="noreferrer">http://www.artworknotavailable.com/tmp/ffmpegtest</a></p> <p>Quicktime Pro 7.7.1 Inspector (Win 7) reports the following for the file 2398.mov</p> <blockquote> <p>4.19MB<br> H.264<br> Movie FPS: 23.98<br> Data Rate:...
1
1,771
Is there a better way to convert 'object' type array to numpy array by replacing 'na' with mean?
<p>I have an array of strings with some elements such as 'na' that can't be converted to float by using <code>x.astype(np.float)</code> as given <a href="https://stackoverflow.com/a/3877247/6701627">here</a>.</p> <p>Please suggest any better way than the way I did it. Please find the procedure below (it is a snippet f...
1
2,168
Export excel file using exceljs to client
<p>I'm trying to export excel file using exceljs library. I'm using AngularJS and NodeJS.</p> <p>Here is my code:</p> <p>HTML:</p> <pre><code>&lt;a class="btn m-b-xs btn-info btn-doc" ng-click="exportExcel()" style='background-color: #34495e; margin-left: 5%;'&gt; &lt;/a&gt; </code></pre> <p>Controller:</p> <pre><...
1
1,070
weblogic.management.DeploymentException: Deployment could not be created. Deployment creator is null
<p>I manually deployed a war file. I tried to start it in Weblogic and get a "failed to transition from STATE_NEW to STATE_PREPARED on server AdminServer."</p> <p>Once I activated any changes and restarted I see that the deployment is in Failed status. When I tried to restarted I get the error below. Other people h...
1
1,084
React - pass id from state on client to axios.get on express server
<p>I am trying to pass the id from my React app to axios.get on the server side (Express) so I get this:</p> <pre><code> //get app.get('/api/siteDashboard', (req, res, next) =&gt; { axios.get('https://****/api/site?id=3d5a6a8a-60d4-4488-1401-08d74bf02cbf') .then(response =&gt; res.json(response.data)) ...
1
5,818
tags$style specific modaldialog element in shiny
<p>basic syntax question I think, but i'm stuck on it. I have an app with many elements that I try to style, for instance modalDialogs. How do I make this code specific to only modaldialog 1, and not apply to modaldialog 2? </p> <pre><code>tags$head(tags$style(".modal-body {padding: 10px} .modal...
1
1,376
Spring Boot exclude Tomcat server and hibernate validator?
<p><strong><em>Question seems repeated but I facing some issue, when I am following below configuration from this <a href="https://stackoverflow.com/questions/25991789/spring-boot-war-without-tomcat-embedded">spring boot war without tomcat embedded</a> to Exclude embedded tomcat server</em></strong> <br/> I am using ...
1
3,508
Angular.js Service function undefined
<p>I'm having a controller and servise (I will post all of controller and service code because I have no idea what could be wrong) :</p> <p>Controller:</p> <pre><code>'use strict'; app.controller('membersController', ['$scope', 'membersService', function($scope, membersService) { $scope.members = []; $scope.u...
1
1,418
No module named 'gensim' but already installed it
<p>i'm having this error problem, i have ran this script in jupyter notebook in base (root) environment, the log said that gensim library has been installed and i have run the command <strong>!pip install gensim</strong> before i import it, but it still can not be imported, and the error said <strong>ModuleNotFoundErro...
1
1,623
phpexcel codeigniter Validation check if cells in one row empty or not
<p>I have 'import from excel' function in my codeigniter 3 using phpexcel, but i want to create a validation system to check if some cells are empty or not and can detect which column and row is that before the data can be imported into my database. And if detected, import function should stop.</p> <p>here's the contr...
1
1,859
ExtJs bufferedrenderer plugin and locked column conflict
<p>I need to lock some columns in grid. Here is my code with configuration of grid:</p> <pre><code>Ext.define('Crm.view.tables.baseTable', { extend: 'Ext.grid.Panel', alias : 'widget.baseTable', columnLines: true, initComponent: function(){ var that = this; var $this = that; this.selType = 'checkboxmodel', this.selMo...
1
1,118
Android WebView Uncaught TypeError: Object [object Object] has no method
<p>I have two devices, Samsung Tablet GT-P3113 and Mini-PC rk31 sdk (both android 4.2.2), running my app. My app use a javascript interface to access a java method. In one of the two devices works fine(samsung), but the other don't. </p> <h2>BrowsableView - my class extends webview</h2> <pre><code> public class Brow...
1
1,342
Android Receive Silent Firebase Notifications
<p>hello i have android application and i used Firebase notification and its working good ,, now i need to receive silent push without alert or anything ,,, i tried some idea and its working when app is running but when app in background or terminated its not working ! if anyone have idea to sole this issue please tell...
1
2,175
React Native Firebase: no custom sound, no vibration
<p>I try to implement feature when notification arrives, the phone should vibrate and play some kind of ringing sound.</p> <p>How ever, i could only play phone's default notification sound.</p> <p>The versions I'm using:</p> <pre><code> "react": "16.6.0-alpha.8af6728", "react-native": "0.57.8", "react-nat...
1
1,300
Hibernate connection error Unable to acquire JDBC Connection] with root cause
<p>I am getting the following exception while fetching data from DB using hibernate in spring mvc.</p> <pre><code>SEVERE: Servlet.service() for servlet [spring] in context with path [/DemoApp] threw exception [Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionExceptio...
1
2,944
Spring Project - Classworlds Configuration not specified
<p>i'm new to Spring and Maven development and i'm making the example guides at: <a href="https://spring.io/guides" rel="nofollow">https://spring.io/guides</a>.</p> <p>In fact i'm trying to make a jar file with eclipse.</p> <p>The guide im following is this one: <a href="https://spring.io/guides/gs/device-detection/"...
1
3,059
Hibernate as JPA Provider in JavaEE application
<p>I am working on a JavaEE6 application using Netbeans 7, Glassfish 3.1.</p> <p>The application works fine and is getting deployed on GlassFish. But the issue is that when i am setting Hibernate as the provider in the persistence.xml, i get the following exception:</p> <pre><code>INFO: Instantiated an instance of or...
1
1,641
How to select a month in drop down list according current month upon page load?
<p>I would like to write the code such that when I run my program, the Month Drop Down List is automatically selected according to date.time.now. month when I load the page.</p> <p>I have tried the code below but I get an error saying:</p> <blockquote> <p>" Cannot have multiple items selected in a Drop Down List".<...
1
1,192
Import Unexpected identifier + SyntaxError: Unexpected string
<p>I'm having a problem when running jest test. I'm getting an import unexpected identifier</p> <p>I have already tried by cleaning npm cache and <a href="https://stackoverflow.com/questions/33604470/unexpected-token-import-in-nodejs5-and-babel">installing</a> npm babel jest, polyfill, preset-es2015. I've also <a href...
1
1,785
Dismiss bootstrap modal without page refresh when contact form is submitted
<p>A <a href="https://stackoverflow.com/questions/29754902/close-bootstrap-modal-after-submit">similar question</a> exists on SO. The reason I'm still posting this is because I am not using any AJAX like the OP of that question. My situation involved the form being submitted to a PHP script that sends the email. Here's...
1
1,773
Not able to select drop-down option using select : UnexpectedTagNameException selenium : python
<p>I apologize if I am doing very basic mistake, i am still new learning webdriver and python.</p> <p>I am trying to select an option from dropdown using Select Class of python, but i am getting Unexpected TagName exception. There is no ID present on the Tag, so i cannot detect it using any other method except class o...
1
1,175
Entity Framework & Oracle: Cannot Insert VARCHAR2 > 1,999 Characters
<p>I created a 4,000-character VARCHAR2 field in an Oracle table. I am inserting string values into the field using LINQ to Entities with Visual Studio 2010, .NET Framework 4, and <a href="http://www.oracle.com/technetwork/topics/dotnet/utilsoft-086879.html" rel="nofollow noreferrer">ODAC 11.2 Release 4 and Oracle Deve...
1
1,812
JPA - class does not define an IdClass - IllegalArgumentException
<p>I have a base JPA entity and all other entities derive from that. But when I start application, it gives IllegalArgumentException: This class [class demo.rbacapp.entity.UserAccountRole] does not define an IdClass.</p> <p>I am trying to create many-to-many relation between UserAccount and Role using @Embeddable prim...
1
3,485
Accessing variable from code behind Master Page
<p><strong>Please see the image below</strong></p> <p><img src="https://i.stack.imgur.com/l2ZGF.png" alt="enter image description here"></p> <p>As you can see I have a master page <code>Design.master</code> and the code behind it that is called <code>Design.master.cs</code>.</p> <p>I am simply trying to get my page ...
1
2,341
spring batch exception Cannot construct java.util.Map$Entry
<p>We are facing following exception while executing spring batch job from command line. Spring Batch Version - 3.0.2.RELEASE Spring Version - 4.0.0.RELEASE xStream version - 1.4.7 Data Base - mysql (I am connecting to new DB schema.) While executing a job using following comman...
1
7,320
Flutter Navigator 2.0 Routing via the Navigator()
<p>I am currently trying to build a web app with the new Flutter web beta. The thing is to be able to have a history, handle the forward and back buttons in the browser and be able to handle user inputs into the URL the new Navigator 2.0 API is required (at least from what I understood).</p> <p>There are only a few res...
1
3,105
.net core different error handling for API and Web Page controllers
<p>I'm trying to setup exception handling in a new .net Core 2.2 Web application project.</p> <p>Currently I tried two approaches - being</p> <ol> <li>Use the built-in ExceptionHandlers: <code>app.UseExceptionHandler</code>, <code>app.UseStatusCodePages</code>, etc...</li> <li>Created my own middleware to handle exce...
1
1,306
NodeJS express - Cannot GET route
<p>I am creating a basic API using express and mongoose. Now I want 2 GET URLS - one for getting all the entries from the database and another for getting a random entry. Now the route defined first - <code>'/API/getWords'</code> works fine, but when I navigate my browser to the second route - <code>'API/getRandomWord'...
1
1,681
Wrong spell-check suggestions by Solr
<p>Working on Spell Suggest with Solr 4.1. </p> <p>We configured it correctly and Solr offers term as well as collate suggestions. However, we noticed that many times the suggested word / collate doesn't have any results if we search it again.</p> <p>For example, we searched for term "<strong>confort</strong>" and go...
1
2,378
nginx wordpress wp-admin redirecting to home
<p>On my nginx server when i visit example.com/wp-admin or example.com/login i always see the home page of my site, but when i visit example.com/wp-login.php everything works (and login screen is showed). </p> <p>Is there some config to do in nginx to make these urls (/wp-admin or wp-login) work again?</p> <p>Note: O...
1
1,942
What does Early termination of worker puma log mean and why is it happening?
<p>For my Elastic Beanstalk instance, I am getting a <code>504</code> status code response whenever I visit it. When I tail the logs I see the following log on the puma app server:</p> <pre><code>==&gt; /var/log/puma/puma.log &lt;== [27240] Early termination of worker [27245] Early termination of worker [27249] Early ...
1
1,148
Use with statement to close GDAL datasets
<p>Consider this basic example for the use of a <code>with</code> statement from <a href="https://jeffknupp.com/blog/2016/03/07/python-with-context-managers/" rel="nofollow noreferrer">Jeff Knupp's blog</a>:</p> <pre><code>class File(): def __init__(self, filename, mode): self.filename = filename ...
1
1,308
QML: GridView with movable cells (drag and drop)
<p>I am following the approach given on <a href="http://qt-project.org/wiki/Drag_and_Drop_within_a_GridView" rel="nofollow">http://qt-project.org/wiki/Drag_and_Drop_within_a_GridView</a> .</p> <p>I have the presented program. Drag and drop is working, but after the drop I get empty space in my grid. How can I improve ...
1
1,317
how to let a submit button in a form do something before executing the action of the form
<p>Good evening, i have a HTML form that contains a submit button that does something other than executing the action of the form, i want these submit button to do an action first then do the action of the form, that button do a nice jquery slideUp() but when i embed it in a form it does the action of the form and neg...
1
1,134
implementing push notification in ionic app
<p>I am trying to implement push notification in ionic app for Android. I have followed step by step guide from <a href="http://docs.ionic.io/v1.0/docs/push-from-scratch" rel="nofollow">http://docs.ionic.io/v1.0/docs/push-from-scratch</a>. When I am running my app on android phone, then the registered users are listed ...
1
1,536
How to efficiently reverse SVG (SMIL) Animation on Motion Path?
<p>I am trying to determine how to efficiently reverse this SVG animation (with SMIL) which uses <code>animateMotion</code> and the <code>d</code> attribute on the <code>path</code> element. I need the animation to run counterclockwise around the shape.</p> <p>The current animation can be found <a href="http://codepen...
1
1,219
Java while loop behaviour
<p>I am having issues with a problem that I coded for a Java course I am taking, and I cannot figure out why it is behaving a certain way. Here is the problem from the book, both part A and part B:</p> <p>A) Create a class named Purchase. Each Purchase contains an invoice number, amount of sale, and amount of sales ta...
1
1,624
Unable to encrypt special characters: not multiple of block length
<p>I have an encryption/decryption algorithm and I'm trying to encrypt some special characters to send to the server from android, but it is throwing an exception:</p> <blockquote> <p>java.lang.Exception: [encrypt] error:0607F08A:digital envelope routines:EVP_EncryptFinal_ex:data not multiple of block length</p> </b...
1
1,638
Uncaught Kotlin exception: kotlin.native.IncorrectDereferenceException: illegal attempt to access non-shared
<p>I try to use the Kotlin MPP(Multiplatform) to develop a shared library between Android and iOS. But I face the problem about threading in iOS. For my application in iOS, I establish the object in main thread but it probably calls the function in the other thread and throw this exception as following:</p> <pre><code...
1
1,962
Set up postmaster using Postfix on Ubuntu 14.04
<p>I am in need of serious help. I have been on Google, Stackoverflow, Postfix's website and numerous forums. I am officially stuck, I even tried to replicate another machine's config files.</p> <p><strong>The Problem:</strong> </p> <p>I am trying to set up Thunderbird to catch postmaster emails. I want to do this us...
1
1,083
deserializing CDATA with JacksonXML - UnrecognizedPropertyException
<p>I am using jackson libraries (2.5.2) and trying to deserialize some XML that actually has CDATA section.</p> <p>It seems that Jackson 2.5 added support for CDATA. </p> <p>Here is my class that has the CDATA:</p> <pre><code>public class Certificate { @JacksonXmlProperty(localName = "name", isAttribute = true) pri...
1
2,259
swift 3: create a material-design-chip
<p>heyhey,</p> <p>since a few days I attempt to create the "Material-Design-Chip", but only with half success.</p> <p>The attempt with the most success I had, is to make a subclass from "Button" (Button is a subclass from UIButton created from <a href="https://github.com/CosmicMind/Material" rel="nofollow">cosmicmind...
1
1,582
Bootstrap Navbar Dropdown on Hover if not mobile
<p>I am trying to make bootstrap dropdown list from navbar to appear on hover but stop the hover effect on collapsed (mobile). This is what I have in mind, but when I add the if statement the whole effect doesnt work: HTML:</p> <pre><code> &lt;nav class="navbar navbar-default navbar-fixed-top"&gt; &lt;div class=...
1
1,851
Android: Camera Preview Orientation on HTC EVO (Android 2.1 or 2.2)
<p>I am developing an Android application that relies on the camera API, using an HTC EVO as my testing device. No matter what I've tried so far, the only time the camera preview looks right is in landscape mode (90 degrees rotation, to be specific). It seems as though there is no way to orient the preview correctly wh...
1
1,577
HTML CSS Picture with a text box on the side
<p>Need to get this (the top picture/box) :</p> <p><img src="https://i.stack.imgur.com/mnlnL.png" alt=""></p> <p>But currently, this is what happens:</p> <p><img src="https://i.stack.imgur.com/MHiAF.png" alt=""></p> <p>I have set up box on the top to be exact width of the text box + picture combined, but the box cl...
1
1,549
Android error saving pictures to sd card
<p>I have an Android app which is crashing on some phones, and not on others. It has about 5k downloads, and so far has received about 50 crash reports. However, based on the amount of ratings/comments I get from users saying that it's force crashing, I think the percentage of affected users is actually much higher. </...
1
2,614
Flexible thumbnail grid with css
<p>I am trying to position thumbnails across the screen with even "padding". Here is an image illustrating the problem:</p> <p><img src="https://i.stack.imgur.com/q0rax.jpg" alt="page preview"></p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Test rows&lt;/title&gt; &lt;style type="text/cs...
1
1,222
Custom select - overflow hidden issues
<p>I have managed to create a pretty good custom select, it works in almost every sense (JS needs tweaking/optimizing) but one issue I have come across in terms of replicating an actual select element is when the relative parent container is set to <code>overflow: hidden;</code>. Logic tells me that standard HTML eleme...
1
3,725
SlidingDrawer cannot have UNSPECIFIED dimensions
<p>Hi I am getting a run time exception: </p> <pre><code>SlidingDrawer cannot have UNSPECIFIED dimensions </code></pre> <p>From the below XML, Can any help on this. </p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id...
1
4,608
Joining two DataTables in C# with non matching data
<p>I have two tables in SQL that I populate into DataTables in C#. They SQL tables are housed on different servers and different DB's.</p> <p>In the first table I have 5 columns</p> <pre><code>Name(string), AgentStatus(string), TimeInState(double), TaskHandled(double), Region(string) </code></pre> <p>The second tabl...
1
1,461
Python Opencv\ Detect and delete a line on an image
<p>My personal project is to study how image processing works using Python. I am totally new to the field. I have a little problem that has bothered me for several minutes (Actually it's been an hour that I block something so simple though probably in your eyes ...)</p> <hr> <h2>Let me explain:</h2> <hr> <p>I would...
1
1,470
@ManagedProperty does not work in a CDI managed bean
<p>I try to learn JSF and encountered on a problem connected with ManagedProperty. However I have tried to use it, it always failed - null exception pointer. What am I doing wrongly? I have read some "similar posts" on stackoverflow, but they did not helped to me. (I use GlassFish 4.0, JSF 2.2, JDK 1.7, Netbeans 7.3.1 ...
1
1,439
Xcode - Unit test a network call
<p>I have the following code that I'm wanting to create a unit test for. I want to check if self.response is not nil </p> <pre><code>- (void)downloadJson:(NSURL *)url { // Create a download task. NSURLSessionDataTask *task = [[NSURLSession sharedSession] dataTaskWithURL:url completionHandler:^(NSDat...
1
1,133
Echo class in Java
<p>Please help me with this HW assignment. I am supposed to modify the EchoNumber class which extends the Echo class to count the number of characters in every line in a text file in addition to displaying the text. Here is the Echo class:</p> <pre><code>import java.util.Scanner; import java.io.*; public class Echo{ ...
1
1,112
Using Lambda expression to replace chars in string using HashMap
<p>So i'm working on a project in which I have to convert a String containing greek letters in to a string containing the english representation for this letter. So a greek <code>α</code> would become <code>alpha</code> and <code>Α</code> would become <code>Alpha</code>.</p> <p>I have created a HashMap which has the a...
1
1,025
win32com.client: AttributeError: wdHeaderFooterPrimary and AttributeError: wdAlignParagraphCenter
<p>We prepare the following python script to display pictures in word tables. </p> <pre><code>import matplotlib.pyplot as plt import pylab import win32com.client as win32 import os # Skip picture making parts #Generate word file #Create and formating wordapp = win32.Dispatch("Word.Application") #create a word ap...
1
1,590
Adding an action to event handler arguments c#
<p>I have a problem with some code I need to refactor. Right now it uses lambdas as event handlers, but they are not removed properly. From what I have read, this is not even possible? Anyway I would like to rewrite it to use a delegate instead of an anonymous function, and now my problem is that right now it takes an...
1
1,873
SSL error with GRPC Java
<p>JDK version : 1.8u77</p> <p>proto3.0.3 version</p> <p>I have tried incorporating SSL into current application. Please find below approaches we have tried. </p> <h2>1) OpenSSL Static approach</h2> <p>We have added the io.netty.tcnative-boringssl-static, io.netty.handler and bundles to com.pelco.vms.pelcotools.app...
1
5,426
Send to Messenger button not showing
<p>I am trying to use the Send to Messenger plugin but it is not rendered if I try to initialize it with another FB user's page ID and my messenger app ID. This user has already given me permission to manage his pages so I obtain the page ID from one of them (he chooses which). There is nothing in the Messenger docs ab...
1
2,112
Create a new Mobile.App (Xamarin.Forms) project, try to compile, but "Failed linking references"
<p>I have the latest visual studio 2019 (<code>16.2.3</code>) Community Edition installed with Xamarin.</p> <p>When I create a brand new solution with the <code>Mobile App (Xamarin.Forms)</code> template and pick Android, I can't build it in any configuration.</p> <p>It ends up with this output:</p> <pre><code>1&gt;...
1
1,444
JDBC with VSCode class not found
<p>I am having serious trouble creating a Java Project with VS Code with adding the &quot;mysql-connector-java-8.0.21.jar&quot;. I have done the following steps:</p> <ul> <li>Creating a fresh Java project with VS Code from the command line</li> <li>Adding the mysql connector by doing &quot;Add referenced libraries&quot...
1
1,038
How to stop or pause Pandora and Spotify
<p>I have an app that has a feature to launch an app, Pandora station, or shortcut. That all works fine. Later I want to stop the app I started. This works for most things except Pandora and Spotify don't always close. Sometimes they do but not always. It seems to be related to the current UI state. For instance,...
1
2,272
AngularJS Routing and ASP.net MVC
<p>I'm learning angular, I'm trying to use routes for the first time but something is wrong with it, this is not working:</p> <p>This is my main view(UsingDirectivesWithDataBinding.cshtml):</p> <pre><code>@{ Layout = null; } &lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="https://ajax.go...
1
1,032
How to configure the Genymotion emulator to the appium?
<p>Through eclipse I have configured the Genymotion path &amp; also I have downloaded the virtual devices in the Genymotion. </p> <p>In Appium, those downloaded virtual devices are visible in the"Launch Device" dropdown menu. Then I set the apk path &amp; try to start the Appium 1.3.4.1.</p> <p>By that time I am gett...
1
1,048
passing commandline arguments to a selenium python webdriver test case
<p>The following code is written using selenium python web driver which is run in saucelabs.I am providing the browser name,version and platform in a list,how do i do the same by providing the browser details through command line arguments? I am using py.test to execute the test cases. </p> <pre><code>import os import...
1
1,309
Voice chat with python
<p>I have created pretty simple voice chat with pyaudio, but the voice is kinda meh. You hear usually some noise like in the old movies. It is probably caused by missing CHUNKs of voice which I send over UDP. Is it possible to somehow reduce the noise? Furthermore I want to play a sound when user moves over a button bu...
1
2,302
package javax.xml.bind.annotation does not exist
<p>I have tried to build a springboot application via commandpromt using command <strong>mvn clean install</strong> but its giving following error:</p> <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project infytel_demo7_a: Compilation failure...
1
2,514
Argument of type 'string | null' is not assignable to parameter of type 'ValueFn<SVGPathElement, Datum[], string | number | boolean | null>'
<p>I am new to d3 and tried to implement a minimal line chart using d3, TypeScript and react. But it will always result in a TypeScript error. I even see my chart for a split second before it gets replaced by the error message.</p> <p>I separated the d3 part from the react code as much as possible. There is a react co...
1
1,029
threaded serial port IOException when writing
<p>I'm trying to write a small application that simply reads data from a socket, extracts some information (two integers) from the data and sends the extracted information off on a serial port.</p> <p>The idea is that it should start and just keep going. In short, it works, but not for long. After a consistently short ...
1
3,555
Alternating Row Colors in Xamarin Forms ListView IOS
<p>I am trying to write a CustomRenderer that can allow a ListView to have alternating row colors. I have run into an issues and am not sure if it might be a bug or am I just not implementing the renderer correctly:</p> <p>My expectations for the following code is that each custom view cell should get a color based on...
1
1,116
Heroku Precompiled Assets Failed
<p>I am having difficulties troubleshooting the following and figuring out why my assets are failing to precompile at slug compilation... the odd thing is, is that the assets compile fine at runtime when I check the live logs... any ideas? Is it trying to connect to the database?</p> <pre><code>Preparing app for Rails...
1
2,737
Node.js - installing johnny five library on windows
<p>I'm trying to install the johnny five library for Node.js on windows 7 but keep getting an error:</p> <pre><code>Your environment has been set up for using Node.js 0.10.15 (x64) and npm. C:\Users\User&gt;npm install johnny-five npm http GET https://registry.npmjs.org/johnny-five npm http 304 https://registry.npmj...
1
1,525
How to build Junit5 tests w/ Maven Tycho
<p>I want to introduce Junit5 Jupiter to an old RCP test fragment. We build our RCP features w/ Maven Tycho. Since version 1.2, Tycho is supposed to support JUnit5 tests.</p> <p>All I get is (when I run <code>mvn clean install</code>)</p> <pre><code>org.apache.maven.surefire.util.SurefireReflectionException: java.uti...
1
1,318
What is the Objective-C equivalent of the Java Math library?
<p>What library/header/class is equivalent to the Java <code>Math</code> class?</p> <hr> <p><strong>Background &amp; bonus question:</strong></p> <p>I'm trying to port this function to Objective-C from Java. Should I rewrite it, or can I copy and paste and rewrite only the parts that are syntactically different? (In...
1
1,922
java.lang.ClassCastException arises when convert Spark RDD to a Dataframe from a text file
<p>I use docker image “jupyter/all-spark-notebook” and run a Spark container by the following command:</p> <pre><code>docker run -d -p 8888:8888 -p 4040:4040 -p 4041:4041 --name spark-notebook0 jupyter/all-spark-notebook start-notebook.sh --NotebookApp.token='' </code></pre> <p>The Spark version is 2.2 and other deta...
1
3,383
KendoUI cascading dropdownlists, need value from 2 dropdownlists.
<p>I have 3 cascading dropdownlists as follows:</p> <pre><code>&lt;p&gt; &lt;label for="categories"&gt;Catergories:&lt;/label&gt; @(Html.Kendo().DropDownList() .Name("categories") .OptionLabel("Select category...") .DataTextField("CategoryName") .DataValueField("Category...
1
1,605
Why can't I get a simple Combobox to work in EXTjs 4 using a JSONStore?
<p>This is driving me insane. I have a JS file that is:</p> <pre><code> Ext.onReady(function(){ Ext.QuickTips.init(); var SitesStore = new Ext.data.JsonStore({ autoLoad: true, fields: [{ name: 'id', mapping: 'id' }, { name: 'name', mappin...
1
1,599
Using Crypto++ with clang
<p>I'm attempting to get the following Crypto++ (C++ Class Library of Cryptographic Schemes) example to work on a iMac using clang++.</p> <p>Example</p> <pre><code>SHA256 hash; byte digest[ SHA256::DIGESTSIZE ]; hash.CalculateDigest( digest, (byte*) &amp;value[ 0 ], value.size( ) ); HexEncoder encoder; string res...
1
2,212
NullPointerException: Attempt to invoke virtual method enableForegroundDispatch(...) on a null object reference
<p>I'm developing a sample Android app that has two activities</p> <ol> <li>A log in page</li> <li>An activity that writes NDEF message to an NFC tag.</li> </ol> <p>Upon tapping the log in button, I get the NullPointerException. Here is the entire log:</p> <pre><code>12-08 11:57:32.510: E/AndroidRuntime(1162): FATAL...
1
3,068
Can't seem to get pexpect to print data from command
<p>I'm steadily working on how to ssh and parse data on a device by running a command. I have had a few questions along the way of this endeavor and much help with the questions I have asked. I'm now working with pexpect and I'm not seeing much in documentation with what I am doing. Basically I need to ssh in, as I sai...
1
1,622
Build Error Android: Configuration with name 'default' not found
<p>I tried to find answer for the below error message from the forum. I could not. </p> <h1>Error:</h1> <p>Error:A problem occurred configuring project ':app'.</p> <blockquote> <p>Cannot evaluate module soundprocessing : Configuration with name 'default' not found.</p> </blockquote> <h1>Details</h1> <p>Project S...
1
1,104