title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Jquery function doesn't load - undefined is not a function
<p>I'm trying to install this datetimepicker for bootstrap: <a href="https://github.com/Eonasdan/bootstrap-datetimepicker/wiki/Installation" rel="nofollow">https://github.com/Eonasdan/bootstrap-datetimepicker/wiki/Installation</a></p> <p>I've got this in the header of my document:</p> <pre><code> &lt;script src="/...
1
1,100
bootstrap ui modal.open error:Cannot read property 'open' of undefined
<p>Im trying to make my first modal using Angularjs. I'm not sure or why I'm getting this error. I have error:</p> <pre><code>TypeError: Cannot read property 'open' of undefined </code></pre> <p>Here is my code: Layout:</p> <pre><code>&lt;html ng-app="app"&gt; &lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;...
1
1,044
How to render a chart inside a tabView with PrimeFaces
<p>I need to display a lot of charts on some kind of status page. The charts should be grouped in <code>tabView</code> and <code>accordionPanel</code>. This setup works nice with <em>PrimeFaces 2.2.1</em>. Because of some features of the new version (and because the charts are no longer <em>Flash</em>) I am trying to m...
1
1,097
Solr Index pull fails
<p>I have master - slave configuration of solr.On master index will be updated 24X7.its a continuous process.my slave pulls the index from the master after every 30 minutes.</p> <p>The Problem is this index pull is failing because of the following exception</p> <blockquote> <p>SnapPull failed : org.apache.solr.comm...
1
1,338
How to pass Python list to C function using Cython
<p>I am using a Raspberry Pi to interface with custom hardware connected to the GPIO. The controlling software is written in Python, and the interface to the custom hardware is written in C, as it is a much faster C implementation. I now need to start calling my C functions from my Python, and have recently been learni...
1
1,393
Why does weblogic not use my deployment plan?
<p>I am having some trouble trying to adjust the deployment settings of our application in weblogic. I feel what I'm trying to do ought to be quite simple, but it's not working as expected.</p> <p>I am just trying to override the context-root in weblogic.xml and the JNDI name for the data source, so these can both be...
1
1,931
I get a PersistenceException and I cannot understand why
<p>I am running a web service using EclipseLink and it works good. But sometimes I get an exception saying "Unable to predeploy PersistenceUnit". I i don´t have a clue why I am getting this. Everything else seems to work and the exception doesn´t seem to disturb the application, it is just beeing catched.</p> <pre><co...
1
2,740
How to properly do a callback and function for Dash web app
<p>Would really appreciate some help regarding how to do a proper callback for my Dash web app. I have the following code below. Its supposed to return a graph with various lines about a stocks' financials. It takes data from an API. But I'm not sure how to define my function for the app callback. I've tried following ...
1
2,229
pyserial reading serial port in flask (maybe using gevent)
<p>I'm building a webserver that would need to read (and keep reading) the serial port of the machine it's running on.<br> The purpose is to be able to read a barcode scanner, and using Server-Sent Events to update a browser with the read barcode. </p> <p>I'm using flask to do this. I've browsed around and some imple...
1
1,599
UIWebView load fails with custom URL scheme
<p>I have a UIWebView that is handling an OAuth authentication flow in my app. The callback URL that the OAuth service uses points to a custom URL scheme I've set up in my app, let's call it <code>mycustomurlscheme</code>. </p> <p>So once the user authenticates successfully, the OAuth service redirects them to the URL...
1
1,444
Customize color of individual data in LiveChart
<p>Is possible and how to customize individual data color in LiveChart? Instead of having the same color scheme for a series in code behind, I like to programmatically and conditionally color an individual data column. I thought of, as a work around, to separate and overlay the series like having a Red Series {null,nul...
1
1,305
Problem in java programming on windows7 (working well in windows xp)
<p>I am capturing video from webcam connected to pc.I am using the following code to do so:</p> <pre><code>import java.util.*; import javax.media.*; import javax.media.protocol.*; import javax.media.control.*; import javax.media.format.*; import java.awt.*; /** * This is the primary class to run. It gathers an image s...
1
2,899
Foreground Color of Custom Button (ControlPresenter)
<p>I am attempting to define a global button style in App.xaml, and it's mostly working as I expect. However, I just cannot figure out how to get the Foreground to work correctly. No matter what I do, I am getting the style of the default TextBlock (which sets the color to White).</p> <pre><code> &lt;Style Target...
1
1,870
How to solve 'Cannot authenticate using Kerberos' issue doing EF Core database scaffolding in Linux(Ubuntu 18.04)? Are there any solutions?
<p>everyone. I've been trying to develop simple starting AspNetCore application with EntityFrameworkCore to connect and work with MS SQL server database. And manage all this by Rider IDE, tool for Database client(DBeaver) and dotnet command line interface(dotnet ef). I'm using database first approach(create database on...
1
2,701
Using $emit to call a function
<p>I'm new to vue.js and am trying to understand how <code>$emit</code> can be used. In the following code, every <code>input</code> element except for the last one works as expected.</p> <p>My assumption in the last <code>input</code> element is that calling <code>$emit</code> with an event name would be the same as c...
1
1,123
I2c SLAVE HAL Transmit
<p>I'm tring to transmit as a slave to the master with I2C in a STM32F446RE but i can't get to it.</p> <p>When there is no code running on the MCU i can see the master requesting me to write on the osciloscope. But when I use this code:</p> <pre><code>if(HAL_I2C_Slave_Receive_IT(&amp;I2CxHandle, (uint8_t*)&amp;T2, 1)...
1
3,231
WCF RESTful JSON web service post Nested List of object
<p>I'm developing a WCF service that accepts parameters in JSON. I cant' figure out where I'm going wrong. Please help. </p> <p>When I test the service using fiddler, I post the following:</p> <pre><code>"locations": { "Departments": [{ "Name": "Amazonas", "alias": "", "Mun...
1
1,049
SSL certificate installation using letsencrypt in XAMPP server
<p>I'm using command:</p> <pre><code>sudo certbot --apache-ctl /opt/lampp/bin/apachectl </code></pre> <p>to install the certificate in XAMPP server. However the certificate is installing in the /etc/apache2 location. How can I repoint to the XAMPP Apache server? The logs is below:</p> <pre><code>ubuntu@ip-172-31-33-70:...
1
1,150
Spring-MVC - Error creating bean with name 'procesarController': Injection of autowired dependencies failed
<p>I am having a problem with spring , when launching the app in the server I have this error message, please help Thanks in advance!!.</p> <p>Error Message</p> <pre><code>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'procesarController': Injection of autowired dependencies f...
1
6,573
floating point multiplication vs repeated addition
<p>Let <code>N</code> be an a compile time unsigned integer.</p> <p>GCC can optimize</p> <pre><code>unsigned sum = 0; for(unsigned i=0; i&lt;N; i++) sum += a; // a is an unsigned integer </code></pre> <p>to simply <code>a*N</code>. This can be understood since modular arithmetic says <code>(a%k + b%k)%k = (a+b)%...
1
1,038
Call Web API 2 method using c# CLR stored procedure by HTTPClient
<p>I have a WPF application that consumes services of MVC web API 2. Created RestClient wrapper using HTTPClient to call async methods such as PostAsync and GetAsync. For ex my POST method wrapper would be like:</p> <pre><code>using (var client = new HttpClient(new HttpClientHandler() ...
1
1,432
Sending Key Value Pairs as JSON to ASMX service with jquery
<p>I have a been working on a contact form I am new to ASP.net, I know an intermediate amount of C# I am working on a contact form. I want to send the Values as a json array and parse it with JSON.net, I tried every way I could think of to get it to work. Without success, I need to know how to properly send and receive...
1
1,280
iOS app freezes after dismiss view in swift
<p>My issue is this I have two viewControllers connected with a modal segue like normal A--->B, A has the controls like textFields, switches, buttons and a mapView where I get the userLocation. B hast only a button, and a mapView at the moment, but when I tap the exit button it does successfully dismisses viewControlle...
1
10,426
org.springframework.beans.factory.UnsatisfiedDependencyException: Unsatisfied dependency expressed through constructor argument with index 0
<p>I am creating a REST service to communicate and perform basic CRUD operations on mongodb. But I am receiver the following error:</p> <pre><code>Exception in thread "main" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mongoDBTodoService' defined in file [/Users/avar...
1
4,303
android Is it possible to have multiple SlidingDrawer
<p>Kind of new to many things in android and here is one.</p> <p>Playing around with the Android SlidingDrawer widget.<br> Would really like to have 4 of them on the right side of the screen.<br> Each one filling the screen as you pull them out.</p> <p>I try in my <code>R.layout.main</code> to create 4 of them but on...
1
1,514
Why does Maven download different versions of Spring artifacts?
<p>In my Maven project I have defined a bunch of Spring dependencies, and I notice that in some cases it will choose different versions of the artifacts even though they are specified identically in my pom.xml.</p> <p>This is an outline of <code>mvn dependency:tree</code></p> <pre><code>[INFO] com.vrutberg.blogping:b...
1
3,068
How to Post data to Slack using NodeJs using axios?
<p>I am trying to understand an asynchronous function, to convert it into synchronous type for a use case,<br> The function is making a Post request to Slack using Node's https module,<br>I wish to convert this code to use the <code>axios</code> library.<br></p> <p>I am unable to understand what exactly is the Post Bo...
1
1,111
Django Admin filter_horizontal not working
<p>I'm trying to get filter horizontal to include the search and selected box division instead of the single column where you choose with ctrl multiple options.</p> <p>I've included the filter horizontal in the admin.py but it doesn't work. I'm using the common class which imports from the admin.ModelAdmin could there...
1
1,447
virtual List<T> :“The function evaluation requires all threads to run”
<p>I am following the following tutorial to learn code fast. <a href="http://msdn.microsoft.com/en-us/data/jj193542.aspx" rel="nofollow">Code First to a New Database</a></p> <p>I have done till the step 4: of the tutorial, the problem arises when i try to run my code. I encounter the following exceptions at the follow...
1
2,325
Java Concurrency JDK 1.6: Busy wait does better than signalling? Effective Java #51
<p>Joshua Bloch's "Effective Java", Item 51 is not about depending on the thread scheduler as well as not keeping threads unnecessarily in the runnable state. Quoted text:</p> <blockquote> <p>The main technique for keeping the number of runnable threads down is to have each thread do a small amount of work and th...
1
2,366
Unable to get Enyim.Caching MemcachedClient to work with Couchbase
<p>I realize that Couchbase provides a client to their memcached server, but I'm trying to get the enyim.caching client to work.</p> <p>Here's my trivial c# code that uses the Couchbase client (which works) and then pretty much the same thing with the enyim MemcachedClient:</p> <pre><code>class Program { static v...
1
1,177
MVC 5 EF6 unit of work and repository pattern
<p>How do you implement the unit of work and repository pattern in MVC 5 and EF6? Previously I've avoided any need for unit of work by using a single repository which was injected into my controller as follows:</p> <pre><code>public class ProductController : BaseController { private IShopRepository _repository; ...
1
1,450
How to fix AndroidX compatibility for Flutter in Android Studio?
<p>I'm getting this error when trying <code>flutter build apk</code> :</p> <pre><code>******************************************************************************************* The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app. See https://flutter.dev/docs/development/packages...
1
1,166
How to make reactor.cache.CacheMono not to call calculation twice?
<p>I'm trying to implement caching mechanism for my settings and I can't really make it working.</p> <p>I have realization of my repository like this:</p> <pre><code>@AllArgsConstructor public class CachedSettingsRepository&lt;E extends SettingsEntity&gt; implements SettingsRepository&lt;E&gt; { private final St...
1
1,450
d3 pack layout circles overlapping after movement/size transitions
<p>I have circles arranged with the pack layout, from a dataset which periodically updates the radii.</p> <p>The code I started out with is this standard example for a bubble chart: <a href="http://bl.ocks.org/mbostock/4063269" rel="nofollow noreferrer">http://bl.ocks.org/mbostock/4063269</a></p> <p><img src="https:/...
1
1,254
MVC4, Render Partial View in Dialog Box with jQuery, How to refresh
<p>I have a partial view that is popping up in a dialog with the code below. However, after the user saves the partial view the data does not refresh in that partial view when I click the ActionLink again until I stop debugging and restart the app. However, the new record is in my databsae. The other issue is when I re...
1
1,036
Angular 4 mat-datepicker date changed event
<p>I have the following date picker in my app:</p> <pre><code>&lt;mat-form-field&gt; &lt;input mdInput [matDatepicker]="dp3" placeholder="Select Birthday" name="birthday" disabled&gt; &lt;mat-datepicker-toggle matSuffix [for]="dp3"&gt; &lt;/mat-datepicker-toggle&gt; &lt;mat-datepicker #dp3 disabled="f...
1
1,296
floreant POS : error in building jar file using maven
<p>I have downloaded source code of FLOREANT POS from official site, and tried to built the project using maven. It requires two Commands mvn clean &amp; mvn pacakage , when I tried to use these it gives me following error </p> <pre><code> [ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1...
1
16,095
Understanding JavaScript heap growth and GC pattern
<p>In a vain attempt to write perfect javascript I am tackling the issue of the Javascript heap. I have got it down to the lowest level I can but I have run out of options, and don't understand what is going on (well my guess is rAF overhead, but guesses don't count).</p> <p><strong>The heap's sawtooth pattern (in ligh...
1
5,169
Android: ViewModel. Failed to call observer method
<p>I'm using new arch. components from google.</p> <p>I have in Activity Login/Registering Fragments that are managed thanks to <code>FragmentTransaction</code> </p> <p><code>Activity-&gt;RegisterFragment (with ViewPager) -&gt; RegistrationSteps (adapter)</code></p> <p>Inside RegisterFragment I have ViewPager. I wan...
1
1,558
A larger heap for the Gradle daemon is recommended for running jack
<p>Im pretty new to gradle. I currently tried to upgrade a study Android app to Java 1.8 in gradle settings in which it prompted me to enable jackOptions to 'true' so i could use lambda expressions in my app. </p> <p>This is my current gradle options:</p> <p>build.gradle</p> <pre><code>apply plugin: 'com.android.app...
1
1,102
Cannot deserialize the current JSON object
<p>Im getting this exception. I don't understand what should i do. I have googled a lot but found nothing.</p> <blockquote> <p>Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.ObjectModel.ObservableCollection`1[LU.FacebookStalker.StoreApp.ViewModel.PageLike]' bec...
1
1,869
Androidx - How to handle Nested Graph's fragments from parent fragment using Navigation?
<p><a href="https://i.stack.imgur.com/n9oQp.png" rel="noreferrer"><img src="https://i.stack.imgur.com/n9oQp.png" alt="enter image description here"></a></p> <p>Here is the scenario:- </p> <p>I am having a Main Activity which has root NavGraph and load fragment A as default. If I am moving from Fragment A to Fragment...
1
2,241
Saving associated models in Cakephp 3
<p>I have a form that collects data about an Article, and I want to save that data, as well as for a model called Abstract, where an Article hasMany Abstracts. My models look like this:</p> <pre><code>namespace App\Model\Table; use Cake\ORM\Table; use Cake\Validation\Validator; class AbstractsTable extends Table { ...
1
1,298
Using WindowsIdentity to get a list of files/directories in ASP.NET while logged in using Forms Authentication
<p><strong>Edit 7:</strong><br> I'm guessing this can't be done after all, might need to use some kind of command line application to do this and and parse the output, although I expect this could be very slow when lots of people are accessing the folder and/or the NetBIOS session limit is reached.</p> <p><strong>Edit...
1
1,538
How to hide some component based on some flag in react js
<p>I want to hide some component based on some flag in react js. I have an App component where I have Login and other components, I want to hide the other component until Login components <code>this.state.success</code> is <code>false</code> and on click of a button I am changing the sate, but it's not working, I am ne...
1
1,511
How to use sendkeys with vba excel
<p>this is my code for excel (a) actually what i am trying is to send data to another excel (b) witch is locked (i can only press command &amp; message buttons) and i have no access to the code (vba), i can only insert my data from (a) and for step_1 i have to press a), b), d), e) command buttons and c) a message...
1
1,566
How to catch key event when soft keyboard is shown programmatically?
<p>I'm trying to write text in <code>Canvas</code>. As I need to show the soft keyboard to write text, I added an <code>EditText</code> to my Activity with 0 width. I also implemented a TextWatcher to get the text entered into the <code>EditText</code>. With this trick, I can show the soft keyboard whenever I like with...
1
1,225
Flutter Setting Default ItemCount on ListView Builder
<p>I'm trying to build some input fields with ListView Builder and set the default built fields to 3 then add to the number using the floatActionButtion to generate more fields.</p> <p>But the 3 default fields i set ain't showing up and I couldn't understand what is happening.</p> <p>Here is my code.</p> <pre><code>...
1
2,009
Collision detection using plain arrays and rectangles--java
<p>I am almost done with my first little java game for my final project. It is a sidescroller where you have to shoot/avoid asteroids. My last problem is figuring out how to make my array of asteroids collide with the player's lasers. Here's what I have so far, there's an "AWT-EventQueue-0" java.lang.NullPointerExcep...
1
5,727
Room database Insert or update but keep a database field?
<p>I am trying to achieve the following scenario -> Records are fetched from API and stored into DB. Some of the records might be clicked as <code>favorite</code> and they should stay like that even if new data is fetched from API. But, I can't seem to find a way on how to not replace those records that already have be...
1
1,044
WebSphere Portal: Update/Delete a War
<p>I need to update a portlet on the WebSphere Portal 6.0. I have tried to use xmlaccess.bat. Here is my DeployPortlet.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_1.4.xsd" type="update" cr...
1
1,304
Keras Error: "Optimization loop failed: Cancelled: Operation was cancelled" When Calling predict_on_batch
<p>I had some older working code that used keras. I recently dusted it off and tried to use it but with current versions of keras/tensorflow. I am getting a warning/error when calling predict_on_batch:</p> <p>W tensorflow/core/data/root_dataset.cc:167] Optimization loop failed: Cancelled: Operation was cancelled</p> <p...
1
2,006
Camera on Android emulator doesn't work
<p>I'm a begginer android programmer and I have a problem with the camera. What I'm trying to do is to get a preview on the camera. The problem is, Camera.open() always returns null. The code goes like this:</p> <p>CameraPreview.java</p> <pre><code>public class CameraPreview extends Activity implements SurfaceHolder....
1
1,236
Send a .csv file using Requests 2.2.1 in Python 2.7.6
<p>I have to send a small .csv file to a partner server using the API they provide. I'm using Requests 2.2.1 in Python 2.7.6 and I have a working example in PHP. I can't put much more information but I was wondering if somebody could see what is the issue based on the output of my erroneous code (in Python) and the out...
1
1,618
ui repeat with p:panelGrid and other ui repeat inside primefaces
<p>I have a problem trying using ui repeat with a datagrid and other ui repeat inside this grid</p> <p>This is my code</p> <pre><code>&lt;ui:repeat var="blockSpace" value="#{providersMB.fillBlockSpaceRsv}" &gt; &lt;p:panelGrid style="margin-top:20px" rendered="#{providersMB.blockSpace}"&gt; &lt;f:facet name="head...
1
1,055
How to make AngularJS TODO example work in IE9 the same as it works in IE8, Chrome, Firefox?
<p>I did follow <strong>Angular JS TODO example</strong> and posted my code on JSFiddle (with AngularJS v1.0.3): <a href="http://jsfiddle.net/7w689/" rel="nofollow">http://jsfiddle.net/7w689/</a></p> <p>I cannot figure out why it doesn't work in IE9 as expected. It works in IE8, Chrome and Firefox but does have a diff...
1
1,097
Symbolicating iOS crash address returns inappropriate results
<p>I have spend couple of days lately to learn how to symbolicate a line number of a crash which I receive with a custom solution.</p> <p>I have figure out I need the .app and .dSYM files, I have checked the UUID and it's the same as the crash that I get, where I also get the UUID to validate.</p> <p>Three identical ...
1
1,049
Gradle - DexException: Multiple dex files define
<p>I know this question has been asked already but I cannot find a suitable answer for my problem among the available solutions. I hope you guys can help me out.</p> <p>The exception tells that <code>Multiple dex files defined</code> and I tried several common ways to fix this problem. Unfortunately, this didn't help....
1
3,571
React Component Does Not Mount
<p>I am in need of some help. I'm working on a create-react-app using React-Router. The issue that I'm seeing is that when I run my app, I should be able to see individual student information when I click on their name. Instead, nothing renders.</p> <p>Here is the code for the component (students.js) that is not rende...
1
1,182
Nothing happens on SaveOrUpdate using FluentNHibernate
<p>Nothing happens when updating an entity using the SaveOrUpdate method with FluentNHibernate. Flush does work but I want to use SaveOrUpdate due to existing repository infrastructure. What could be the problem?</p> <p>Configuration:</p> <pre><code>sessionFactory = Fluently.Configure() .Database(MsSqlConfigurati...
1
1,083
How can I call an overloaded .NET function which uses a C# out argument from Powershell?
<p>I know that Powershell can call .NET code, which might look like this</p> <pre><code>PS&gt; [Reflection.Assembly]::LoadFile(($ScriptDir + ".\SharpSvn-x64\SharpSvn.dll")) PS&gt; $SvnClient = New-Object SharpSvn.SvnClient </code></pre> <p>And I know that where C# has <code>out</code> arguments, Powershell has <code>...
1
1,467
No resource or method named `template' chef
<p>Actually try to write wirst cookbook with chef-solo and I am look up to cookbook wordpress to initialize my own site.</p> <p>But for few hours I couldn't find solution for this bug:</p> <pre><code>No resource or method named `template' for `Chef::Recipe "create_configs"' </code></pre> <p>On fragment:</p> <pre><c...
1
1,089
Swift WKWebView goBack and goForward No Longer Work
<p>I've never seen an error like this before. The below code worked perfectly previously. I don't see any change that I would have made that would change this. Now, goBack and goForward do not work as intended. What happened? This is extremely bizarre.</p> <p>I have tried tracing this through, all sorts of stuff, and ...
1
2,881
Changing to bootstrap dropdown-menu transparent background color
<p>I'm a bootstrap newb but I feel like I have been beating my head up against a wall on this for too long and would appreciate any help.</p> <p>I have what seems to be a fairly basic nav bar that I am trying to style. I am trying to simply change the one background color of the <code>.dropdown-menu</code> to be trans...
1
1,181
Flex: CheckBoxes in DataGrid not updating after change in binded ArrayCollection
<p>I have extended CheckBox class to use it as itemRenderer to centered it in DataGrid cell and reflect ArrayCollection changes. Here is the .as:</p> <p>package myComponents { import flash.display.DisplayObject; import flash.text.TextField;</p> <pre><code>import mx.controls.CheckBox; import mx.controls.dataGr...
1
2,949
python json error: ValueError: Expecting value: line 1 column 1 (char 0)
<p>I'm from Korea, so probably you don't understand clearly.</p> <p>I have a issue about loading json file via python.</p> <pre><code>with open("D:/twitter/salathe-us-twitter/20110312/SB_DATA_SB/tweets.txt.2011-03-12_01", encoding='UTF8') as f: for line in f: temp = line.partition('|') date.append(temp[0]) #...
1
1,602
How to programatically remove a layout behavior of my NestedScrollView?
<p>I already achieved the removal of <code>layout_scrollFlags</code> in my<code>CollapsingToolbarLayout</code>. but I need to remove the the <code>layout_behavior</code> of my <code>NestedScrollView</code> so that when there is no contents on my the nested scroll view, the collapsing of the toolbar will be disabled to...
1
1,277
CSS Weird Column Paragraph Empty Space
<p>I created a 3 column grid with 3 paragraphs. The first paragraph has an extra space from the top than the other two. Can anyone help? I attached an image if it helps at all. I'm still a beginner at coding so you'll notice a bunch of weird things that I'm doing that aren't practical.</p> <p><img src="https://i.stack...
1
2,145
Why my tests failed when do parallel testing with TestNG and Grid 2?
<p>everyone, hope you can me help me, thanks in advance. I create 10 tests with Webdriver and TestNG, run with Grid2. when start 1 node, all tests passed. When start 2 nodes, it can run in parallelling. But Some tests failed. Errors like:</p> <p><code>org.openqa.selenium.WebDriverException: unknown error: cannot focus...
1
2,081
gpxpy: How to extract heart rate data from gpx file
<p><a href="https://github.com/tkrajina/gpxpy/pull/22/commits/35b1083394f82a366a2640e7de563f8a7642614c" rel="nofollow noreferrer">This commit to gpxpy library</a> includes additional parsing for Garmin 1.1 extensions. However it appears the code has changed a lot since this commit and it appears that extensions are pa...
1
1,619
JEST test suite fails with TypeError: environment.setup is not a function
<p>I'm trying to add tests to my app and the test fails with the following error:</p> <blockquote> <p>Test suite failed to run</p> <pre><code>TypeError: environment.setup is not a function at node_modules/jest-runner/build/run_test.js:71:23 </code></pre> </blockquote> <p>Below are my config files used in a pro...
1
1,290
Android - view.Surface OutOfResourcesException
<p>My Android app seems to not be releasing its views when I move around inside of it with ListView navigation and with the standard Menu key. After a hundred or so different (of the 10 or so unique views) loads, it starts lagging and black screening. </p> <p>Error log:</p> <pre><code>07-01 09:54:42.913: INFO/Activit...
1
2,258
Facebook Page Plugin - Refused to display in a frame because it set 'X-Frame-Options' to 'sameorigin'
<p>So here is my website which i have embeded the Page Plugin in the right column: <a href="https://trade.z.com/hk/tc/" rel="nofollow noreferrer">https://trade.z.com/hk/tc/</a></p> <p>It works perfectly in other browsers but not in Chrome. Wait for a few mins and there will be an error prompted in the the developer to...
1
1,349
keras thread safe generator for model.fit_generator with Python 3.6.x
<p>I'm using Keras 2.0.8 for U-net 2D medical segmentation project. Currently I'm struggling to create custom thread safe image generator (for X and y simultaneously). X and y are 4D matrix, with shape n_img x n_col x n_row x T, where T for X is 4, and for y is 1 (4 numerical labels are transformed into one hot encodin...
1
3,620
Submitting a Training Job to Google Cloud ML
<p>I have a code as below that I want to submit to Google cloud ml. I already tested their example and got results.</p> <pre><code>from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf import numpy as np # Data sets I_TRAINING = "/home/an...
1
1,048
VBSCRIPT PPT conversion script
<p>I'm attempting to convert PPT files to PPTX files using VBSCRIPT. I haven't used VB in a very long time &amp; am pretty unfamiliar with the framework. I'm attempting to modify a script that converts PPTX/PPT to PDF, however without much luck. Here's an example of what I've got so far...</p> <pre><code>Option Exp...
1
1,910
Using LAG to Find Previous Value in Oracle
<p>I'm trying to use the LAG function in Oracle to find the previous registration value for donors.</p> <p>To see my data, I started with this query to find all registrations for the particular donor:</p> <p><code>select registration_id, registration_date from registration r where r.person_id=52503290 order by r.regi...
1
1,342
Unhandled Exception issue in WinRT
<p>When I encounter an exception within my code, it will always throw and bubble all the way back to the app.g.i.cs file. It does not matter if I wrap the method causing the exception in a try/catch, it still bubbles back to the App instance.</p> <p>This is the method I am trying to use:</p> <pre><code>public static ...
1
1,579
Spring MVC : Tying session attributes to each browser tab
<ul> <li>I am working on Spring-MVC application in which I am setting and getting some session attributes which I need in backend. The problem is, Spring or the browser, someone out of the both is tying these session attributes to different browsers rather than different tabs. <ul> <li>So if I open a new tab in the sam...
1
2,825
Why can't I enable ingress in minikube?
<p>I am trying to enable ingress in minkube. When I run <code>minikube addons enable ingress</code> it hangs for a while then I get the following error message:</p> <pre><code>❌ Exiting due to MK_ADDON_ENABLE: run callbacks: running callbacks: [sudo KUBECONFIG=/var/lib/minikube/kubeconfig /var/lib/minikube/binaries/v1...
1
1,181
Dojo Tooltip only shows after first mousover event
<p>I'm using dojo's event delegation to connect a Tooltip widget to dynamically generated dom nodes. </p> <p>The Dojo site explains event delegation this way:</p> <blockquote> <p>"The idea behind event delegation is that instead of attaching a listener to an event on each individual node of interest, you attach ...
1
1,493
Creating an appointment for lotus notes programmatically
<p>I need to create an appointment (Calendar entry) and distribute it to certain invitees automatically. </p> <p>I have two issues right now:</p> <p>1) The calendar entry does not appear on the calendar for the chair. I have worked around this by adding the chair as a required attendee which sends them a notice to co...
1
1,139
Spring Profile doesn't work with Default active profile
<p>I am trying to activate spring profile in my application.To do so, </p> <p><strong>i have added one parameter in web.xml to activate the default profile.</strong></p> <pre><code>&lt;context-param&gt; &lt;param-name&gt;spring.profiles.active&lt;/param-name&gt; &lt;param-value&gt;dev&lt;/param-value&gt; &lt;context-...
1
1,933
PayPal Order Summary Using REST API - - cURL or PHP
<p>I am working with the PayPal RESTful API. <a href="https://developer.paypal.com/webapps/developer/docs/api/" rel="nofollow noreferrer">https://developer.paypal.com/webapps/developer/docs/api/</a></p> <p>How can I pass my consumers order items and purchase description to PayPal, so when my user is redirected to PayP...
1
1,687
JS - jQuery Dynamic add remove Input Fields
<p>I have a form where I add Input fields ( groups ) dynamically.</p> <p>It is quite a complex form, and a PART can be seen here : <a href="http://jsfiddle.net/obmerk99/y8JFb/1/" rel="nofollow">FIDDLE</a></p> <p>The actual error i get on the consul is :</p> <pre><code>Error: uncaught exception: query function not de...
1
4,071
Rotating sprite with finger in Cocos2d
<p>I need help figuring out the rotation of a sprite with my finger. The sprite is rotating fine but on the initial touch of my finger it somehow rotates by a few degrees by itself. </p> <p>Also the rotations only work when the finger is rotated around the center of the sprite.</p> <p>I am trying to simulate the bicy...
1
1,123
Using a color vector in a multipanel xyplot in r
<p>Given 4 vectors of equal length (x,y,z,q) where q is a character vector with color names used as a grouping structure, I run the xyplot command:</p> <pre><code>xyplot(y~x|factor(z),pch=19,data=mydata,col=mydata$q) </code></pre> <p>Everything works fine, except that past the first factor level of z, the plots are ...
1
1,060
Retrieving JSON in Python in response to POST
<p>I'm trying to get a JSON from a server to use it in a Python code. For test purposes, I did <code>POST</code> by <code>curl</code>:</p> <pre><code>$ curl -u trial:trial -H "Content-Type: application/json" -X POST -d '{"BP_TSM":"22"}' http://some-host --trace-ascii - </code></pre> <p>My Java code seems to correctly...
1
1,151
Enabling CORS in Java Web Service
<p><strong>NOTE: I already figured out the solution. I'm just posting the issue and resolution in case others have a similar issue</strong></p> <p><strong>Long story short:</strong> </p> <p>I'm getting this CORS error message on my browser's Developer Tools window when I have a REACT client side app make an HTTP pos...
1
1,310
Convert RDD from type `org.apache.spark.rdd.RDD[((String, String), Double)]` to `org.apache.spark.rdd.RDD[((String), List[Double])]`
<p>I've an RDD : </p> <pre><code> val rdd: org.apache.spark.rdd.RDD[((String, String), Double)] = sc.parallelize(List( (("a", "b"), 1.0), (("a", "c"), 3.0), (("a", "d"), 2.0) )) </code></pre> <p>I'm attempting to convert this RDD from type <code>org.apache.spark.rdd.RDD[((String, String)...
1
3,791
Best and most performant implementation of dynamic shapes in cesium
<p>I am currently working an application that is using a Cesium Viewer. I need to be able to display a collection of shapes that will be updated dynamically. I am having trouble understanding the best way to do this.</p> <p>I currently am using Entities and using CallbackProperties to allow for the updating of shapes....
1
1,102
S3 cross account access: Reading an object in own bucket, written by another account
<p><strong>Background:</strong></p> <p>I have two accounts <code>A</code> and <code>B</code>. Account <code>A</code> owns a bucket <code>my-bucket</code>. I have given account <code>B</code> access to this bucket -- account <code>B</code> can read objects from and write objects to this bucket. This is working as expec...
1
1,132
Images not Lazy Loading and Caching
<p>I am making an android app in which I am trying to lazyload and cache the images in a listview. I got the code from <a href="http://codehenge.net/blog/2011/06/android-development-tutorial-asynchronous-lazy-loading-and-caching-of-listview-images/" rel="nofollow noreferrer">here</a>. The example from this <a href="htt...
1
3,583
Calling viewWillAppear in UITableviewController
<p>I'm trying to to call the <code>[MyTableviewController.tableview reloaddata]</code> function for my UITableView. I figured the best place to do so is the <code>-(void) viewWillAppear</code> method of the UITableViewController subclass.</p> <p>The code somehow wasn't created upon creating the class and i tried to i...
1
2,496
Python Dict: TypeError: list indices must be integers, not str
<p>This piece of code is from a script that obtains the PDB (Protein Data Bank) code which contain the UniProt code store in a dictionary: DDomainSeq. </p> <p>This is a sample of DDomainSeq Dic:</p> <pre><code>{'3.30.67.10': ['G3GAK5', 'I3QCE1', 'G3EN69', 'K4LBV0', 'Q2XWS4', 'D6MQ73', 'F1D844', 'Q8JTJ9', 'H9U1G9', 'B...
1
1,516
View can not be anchored to the parent CoordinatorLayout
<p>I just updated to appcompat library from 23.1.1 to 23.2 and now application stopped working on java.lang.IllegalStateException: View can not be anchored to the the parent CoordinatorLayout.</p> <pre><code>java.lang.IllegalStateException: View can not be anchored to the the parent CoordinatorLayout </code></pre> <p...
1
1,209
Couldn’t be opened because you don’t have permission to view it - React Native - Expo?
<p>After ejecting the Expo project using <code>expo eject</code>, and try to run the project using Xcode &quot;11.7&quot; &amp; Command-line &quot;For <strong>iOS</strong>&quot;</p> <p>I got these errors,</p> <p>Note:</p> <blockquote> <p>Android Works well after ejecting</p> <p>iOS &amp; Android Works well before Eject...
1
1,142
PHP Warning DOMDocument::loadHTML(): Tag section invalid in Entity on line 10
<p>Here is line 10:</p> <pre><code>$doc-&gt;loadHTML('&lt;?xml encoding="utf-8" ?&gt;'.$request-&gt;getData()); </code></pre> <p>And here is the whole code snippet from my backend: <pre><code>class ParseImageLinks{ public function __construct(){ } public function Run(\DataLayer\Gallery\Requests\ParseImageLinks...
1
1,101
Adding to ObservableCollection
<p>If I have a observablecollection in a page that inserts items on a listview. How can I add to that same observablecollection(listview) from a different window(class)? I do not want to use INotifyPropertyChanged and all that. All I'm trying to do is add a item to the existing listview. I have tried literally everythi...
1
1,782