title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Azure Angular Routing not respected in the browser
<h2>Problem Description</h2> <p>I have an Angular App I put together using the CLI, and deployed to azure semi successfully. Unfortunately, when I navigate to my site, routes are not respected within the browser. Basically, once you get to the site the route is static in the browser. But only when deployed to azure. L...
2
1,446
Create buttons dynamically from code behind in ASP.NET
<p>I'm quite new to ASP.NET and I need your help.</p> <p>I'm programming on an application which should help to fix frequent issues. Users can click the displayed cases if it describes their problem. The application searches for more cases or displays a possible solution.</p> <p>Now what I need for this is some code ...
2
2,707
cs50 pset5 Speller optimisation
<p>I've completed speller and passed all checks. But I'm still bugged about the performance. I did my best with research and running tests, but my implementation is slower by 10-20% compared to staff's one. How can I improve my code?</p> <pre><code> // Implements a dictionary's functionality #include &lt;ctype.h&gt...
2
2,815
Apache Solr intermittently shuts down
<p>Occasionally my Apache Solr will just go down and this is spammed in the log files:</p> <pre><code>Sep 24, 2013 1:00:21 AM org.apache.solr.common.SolrException log SEVERE: java.lang.OutOfMemoryError: Java heap space </code></pre> <p>The dedicated server my Solr install is on has plenty of free RAM (16gb), what can...
2
1,255
How to make JAXB xml array type in Java?
<p>I am building an API, and I have tried with Postman create a new "<code>items</code>" and only accepts the the "<code>Items</code>" with like this: <code>&lt;items type="array"&gt;</code></p> <p>My output does not have the <code>type="array"</code> that I want. I want to know <strong>how can I make in java ou jaxb ...
2
7,036
Ag-grid - Data does not load in laravel view
<p>I am using <code>Laravel Framework 5.7.19</code> and the latest version of <a href="https://www.ag-grid.com/javascript-getting-started/" rel="nofollow noreferrer">ag-grid</a>.</p> <p>I am loading the needed libraries from the example in my <code>app.blade.php</code>:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html l...
2
2,439
How to concatenate two or more videos with same width and different height in FFMpeg and to maintain the same aspect ratio?
<p>I have five video parts to concat all. Each five videos are in the same width and height. The second part is the hstack of another 2 videos and the third part is the hstack and vstack of another 3 videos. While concat all the five video parts the aspect ratio is not maintaining in the final video. Since I am new to ...
2
2,021
running quartz job in TriggerComplete event
<p>my program should run maximum (N) job at a time. if there is more job needs to be run it is store in temp storage and after completing one of the currently running job then i'll pick another trigger base on how much the trigger fails to start and it's priority, and then fire its job</p> <p>at initialization phase, ...
2
1,244
How to make OnCalculate() function in Custom Indicator use GPU in MQL5 / OpenCL?
<p>I have created an Indicator using MQL5.</p> <p>After Profiling, the program I read that 99% of my CPU is used by my <code>OnCalculate()</code>.</p> <p>Here is my function: </p> <pre><code>int OnCalculate( const int rates_total, const int prev_calculated, const int be...
2
1,554
XamlWriter.Save() is not serializing DependencyProperties
<p>Consider the following XAML from my UserControl:</p> <pre><code>&lt;TextBlock Text=&quot;HelloWorld&quot; Loaded=&quot;TextBlock_OnLoaded&quot; /&gt; </code></pre> <p>And the associated event handler:</p> <pre><code>private void TextBlock_OnLoaded(object sender, RoutedEventArgs e) { var xaml = XamlWriter.Save(se...
2
1,170
grafana: empty variable fields
<p>Grafana version: v8.3.3 (30bb7a93ca)</p> <p>I've created my default prometheus datasource:</p> <p><a href="https://i.stack.imgur.com/SHbOm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SHbOm.png" alt="enter image description here" /></a></p> <p>As you can see, I'm able to make queries and get so...
2
1,067
Pure CSS-made LavaLamp-effect: How to hold the LavaLamp on active menuitem?
<p>I use this pure CSS-made LavaLamp-effect and I'm almost happy with it:</p> <hr> <h2>HTML:</h2> <pre><code>&lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;✿&lt;/a&gt;&lt;/li&gt;&lt;!-- --&gt;&lt;li&gt;&lt;a href="#"&gt;Lorem&lt;/a&gt;&lt;/li&gt;&lt;!-- --&gt;&lt;li&gt;&lt;a href="#"&gt;Ipsum&lt;/a&gt;&lt;/li&gt;&lt;!-- ...
2
1,444
how to access request data sent as form-data to Django rest framework
<p>I'm sending a POST request with a body as FormData from my <code>flutter</code> application to my <code>Django</code> backend.. the body has both <code>MultiPart Files</code> and <code>String</code> but when I try to access data in my backend some of them are not accessible .. here is my code :</p> <p><strong>flutte...
2
1,614
Redirect after enter form react
<p>I have a form in react, actually I can make it work with a <strong>submit button.</strong> When I click on the submit button, <strong>a Link send me to the desired component.</strong></p> <p>But when I press "<strong>enter</strong>" after writing something in my input form, like most people do, <strong>nothing happ...
2
1,271
Error: Uncaught TypeError: Cannot set property 'onclick' of null
<p>Please help to solve the problem: I want to modify the output of a picture through popup when I click. There is a code (original):</p> <pre><code>&lt;div class="spproperty-floor-img"&gt; &lt;img alt="" src="&lt;?php echo JUri::root() . $floor_plan['img']; ?&gt;"&gt; &lt;/div&gt; </code></pre> <p>Modified code with...
2
1,476
Android Development: Service not registered: com.google.android.gms.common.internal.bf
<p>I'm using the "com.google.android.gms.maps.MapFragment" to display a map in a embedded fragment. When I try to close the activity (or wait a few seconds), the application crashes with the following error:</p> <pre><code>E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.IllegalArgumentException: Service not regi...
2
1,644
JSONObject is not getting converted to String properly
<p>I am converting JSONObject to String. I am using below code:</p> <pre><code>String decresponse=obj.getFileWithUtil("Files/v3user22.txt"); System.out.println("Decrypted string is "+decresponse); JSONObject js = JSONObject(decresponse); System.out.println("JSON Object is "+js.toString()); </code></pre> <p>Here, i am...
2
3,777
Why is there a class missing when I compile my app?
<p>I'm trying to implement drive storage into my app, and I'm having a bit of an issue getting it to run. It compiles fine (no errors), but there's some class files getting lost somewhere. The error when launching my app is as follows:</p> <pre><code>01-24 18:40:09.747 1038-8218/? I/ActivityManager﹕ Start proc net....
2
3,596
Communication between Arduino and android via ethernet shield
<p>I'm using Android to toggle my led light with Arduino and ethernet shield. It didn't work despite having no problems during compilation neither on Android nor Arduino. I connected the ethernet shield with my computer and I gave it the same address as my computer.</p> <p>This is my Android code:</p> <pre><code>impo...
2
2,336
Custom UserManager always return null
<p>I am trying to create my own <code>UserManager</code> extending from the original, and when I do a search by email, the user is not found. But if I do a search from the context, if I find the user (see the <code>Get</code> method). To verify that it is really well implemented, I overwrote the <code>FindByEmailAsync<...
2
1,848
WPF DataGrid and ITypedList
<p>I tried to implement <code>ITypedList</code> in my <code>ItemsSource</code>but <code>PropertyDescriptor.GetValue/SetValue</code> are never invoked. What is wrong about it?</p> <p>XAML looks like this:</p> <pre><code>&lt;Window x:Class="WpfApplication5.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2...
2
1,333
RabbitMQ Pub/Sub - Subscriber is not able to receive message
<p>I am using sample code to implement Publish/Subscribe using "fanout" exchange type. But as in below code subscriber is not displaying 'Hello Word' message which is published.</p> <p><strong>Publisher.cs</strong></p> <pre><code> var factory = new ConnectionFactory() { HostName = "localhost" }; using (var co...
2
1,176
How prevent fetch request before auth token is received in React Js?
<p>I have a separate fetch request function that logins user and saves auth token to localStorage, then my data request fetch should be send with that saved token bearer, but data fetch doesn't wait for token and receives Unauthorized access code.</p> <p>My data request fetch looks like this :</p> <pre><code> // to che...
2
1,064
Show Hide, Toggle, Touch, Hover Buttons Pure CSS
<p>I am making this show hide / circles in wordpress, which are social icons and special links on the page itself.</p> <p>On desktops it works as expected, however on mobile resolutions:</p> <ul> <li>Instead of <em>hover</em>, those circles should work on <em>tap</em>, and be able to close them too, like a toggle swi...
2
2,210
HTTP error 500 on Android
<p>So here is my code, its purpose is to fecth a json file. I get an error 500 from the server, which means I know that it is an internal server error. As I can't access to the logs of the the server, I'm pretty much stuck from now... I read about session and cookies, maybe that's it. What do you guy think of it ?</p> ...
2
1,037
Opencv 3.2 Visual Studio Build Error
<p>I have tried too many times to build Opencv 3.2. on VS 2017. Cmake gives me Conf and generation is okey, but when i compile on VS 2017, just 12 packeges is builded. Rest of them gives me error.</p> <p>My system is windows 10. Thanks</p> <p>Cmake Result;</p> <pre><code>tiny-dnn: Download: v1.0.0a3.tar.gz Looking f...
2
4,908
Flask app hosted by CherryPy: OPTIONS returns 404
<p>I have a restful API created using Flask and Flask-Restful. Everything works fine using the development server. All routes are in a Blueprint, though the particular route we're dealing with here is not a Flask-Restful one. It's just a normal Flask route.</p> <p>I am also using Flask-CORS.</p> <p>To deploy, everyth...
2
1,523
How to save spinner and reload EditText input from spinner click
<p>I've create An EditText to insert my name and one to intert my surname. When i click add it must save my name into a spinner and when i click on it, i want to appear my name and my surname into edittext. I've create this code but it save it and reload only the name into EditText Name and EditText Surname..how can I ...
2
2,526
How to add to a state array in react-redux
<p>kind of stuck on this little tidbit. I'm pretty new to redux so I'm just trying to figure it out. I'm trying to seperate my players array which come in on the response based on the players position. It all works except that the state is just constantly changing to the most recent player in that position instead of a...
2
1,561
Kafka streams aggregate throwing Exception
<p>this is my Kafka streams code which uses sliding window to sum all the integer data in the time window. </p> <pre><code>public class KafkaWindowingLIS { public static void main(String[] args) { Properties config = new Properties(); config.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, "kafkahost:90...
2
1,707
WebGl Spotlight Shader
<p>I have been trying to program a basic webgl spotlight shader, but no matter how hard I try, I cannot get the spotlights position to be relative to the world.<br><br>The code that I am currently using is below, I have tried almost every coordinate frame that I can to get this working, but no matter what I do, I only ...
2
1,062
checking duplicate attribute value and adding prefix
<p>I have an xml doc : </p> <pre><code>&lt;xml&gt; &lt;staff&gt; &lt;seq_no num="0"&gt;0&lt;/seq_no&gt; &lt;name&gt;xyz&lt;/name&gt; &lt;/staff&gt; &lt;staff&gt; &lt;seq_no num="1"&gt;1&lt;/seq_no&gt; &lt;name&gt;xyz&lt;/name&gt; &lt;/staff&gt; &lt;staff&gt; &lt;seq_no ...
2
1,786
Data Visualization: How to represent kWh usage by year against average temperature
<p>Just for fun, I want to chart my monthly household power consumption year-over-year. However, I wish to include some reference to monthly temperature so I can determine if my home or behavior is improving, worsening, or holding steady in regards to kWh usage.</p> <p>The data I am working with: <code> +----------+-...
2
1,872
jQuery UI Accordion - animation does not work
<p>Thanks for your help in advance. </p> <p>I am using the jQuery UI accordion and I would like there to be an animation but for some reason it does not work. Any idea why? the accordion div simply appears and disappears. Here is my code:</p> <pre><code> &lt;!-- creates accordion where records can be entered --...
2
1,177
ASP.net c# File being used by another process
<p>I create thumbnails with the following page, Thumbnail.ashx:</p> <pre><code>&lt;%@ WebHandler Language="C#" Class="Thumbnail" %&gt; using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.IO; using System.Web; public class Thumbnail : IHttpHandler { priv...
2
1,294
Hash algorithms for load balancing
<p><strong>IMPORTANT</strong>: Before you suggest that we use a readily available load balancer, please understand that we're not trying to load balance normal internet traffic. We receive data from a number of sources, some of which aren't internet connected (ie they may use SMS, or similar). We process these and then...
2
1,684
How to avoid a Data Missed event in matlab when doing data acquisition from an NI board?
<p>I am receiving DataMissed event(s) in matlab when acquiring waveform data (2 channels) and an analog input trigger (set up in pretrigger mode - negative delay value).</p> <p>Here is the code:</p> <pre><code>sampleRate = 500000; pretrigger = 8; trigger_value = 0.6; ai = analoginput('nidaq','Dev1'); ch = addchannel(...
2
1,266
Running liquibase update from script in jenkins pipeline
<p>I'm trying to set up a Jenkins pipeline which will run a liquibase update whenever something is pushed to the master branch. The liquibase runner plugin for Jenkins has a security risk and therefore, I can't install it and run liquibase updates from that.</p> <p>My liquibase* file (the bash script) is in my reposit...
2
1,772
How do I make a PictureBox jump in Visual Basic?
<p>I have an assignment for school where I have an animated character that runs. I need to be able make him jump and return to the spot he started the jump after a button press. I have a timer that switches images to animate the character. There are also buttons to speed up, slow down, start, and stop the character....
2
1,099
Keep width even when column changes. (HTML)
<p>I have a login on the left sidebar of my website. When a user is logged in, the sidebar width doesn't remain the same as it was when the user wasn't logged in.</p> <p>Is there a way to keep the width the same?</p> <pre><code>&lt;!-- Start Sidebar --&gt; &lt;td id="sidebar" valign="top" height="400px" s...
2
8,841
Pandas Aggregate Method on RollingGroupby
<p><strong>Question:</strong> Does the .agg method work on a RollingGroupby object? It seems like it should and IPython auto populates for this method, but I'm getting an error.</p> <p><strong>Documentation:</strong> I did not see anything specific to <code>RollingGroupby</code> objects. I am probably looking in th...
2
1,319
"Uncaught TypeError: undefined is not a function"
<p>I am new to jqxGrid. I am trying to populate the grid after a ajax call to an PHP file and then reload. My code is:</p> <pre><code> $(document).ready(function () { var url = "searchresults.php"; // prepare the data var source = { datatype: "json", ...
2
1,199
simple social network using node.js and mongodb
<p>I am trying to build simple social network and I am following this book(Building Node Applications with MongoDB and Backbone)(<a href="https://github.com/Swiftam/book-node-mongodb-backbone/tree/master/ch10" rel="nofollow">https://github.com/Swiftam/book-node-mongodb-backbone/tree/master/ch10</a>). However, I just re...
2
1,956
how Center elements in GridView?
<p>I have an requirement of : <img src="https://i.stack.imgur.com/VeWhj.png" alt="enter image description here"> </p> <p>I have a layout like: </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rel...
2
3,041
“Authorization has been denied for this request” for few Users using Azure Active Directory
<p>I have a native iOS App with a Single Sign On Authentication with Azure ADFS. On launching the App, the user must login to Azure Active Directory and on successful authentication gets back a Token to validate with a Web API for all the Service Endpoint calls.<br>The Authorization works very well for few users (e.g. ...
2
1,486
bootstrap layout with nvd3.js
<p>I recently started to look into d3.js. Though im pretty new in html/css/javascript; my current goal is to build a simple (static) dashboard using nvd3.js (for easier graphs) and bootstrap as layout component. </p> <p>I started off with nvd3.js example "pie.html" and try to <strong>arrange the graphs in one line</st...
2
1,486
Propagate / Bubble events across several ViewModel in MVVM
<p>I have a <code>MainWindow.xaml</code> with the <code>DataContext</code> set as <code>MainWindowViewModel.cs</code>. This window has nothing in it until the user clicks a button and adds a <code>MyUserControl.xaml</code> to the window. That <code>MyUserControl.xaml</code> has a <code>MyUserControlViewModel.cs</code> ...
2
1,339
How to write unit tests for proxy pattern?
<p>Will be thankful for your attention, time and efforts ! <br /> I have the following code</p> <pre><code>public class Employee { public string FirstName { get; set; } public string LastName { get; set; } public string Role { get; set; } } public interface IEmployeeRepository { Employee GetEmployee(s...
2
1,228
Interface not registered(0x80040155) when running Pex On Specific machine
<h2>Pex 0.94.0.0 Release Visual Studio 10.0.40219.1 Bug Report</h2> <p>How to reproduce:</p> <ol> <li>Open a class library project</li> <li>Create an empty method</li> <li>Right Click->Run Pex</li> </ol> <p>I run without problem on another machine (In Office, VS2010 Utimate)</p> <p>But I got this exception on my ho...
2
1,246
Convert schema model nodejs to swagger
<p>I have the following schema model written for nodejs and mongo db, I have to make sure to convert the schema to the swagger format.</p> <p>As you can see from the diagram, I have a property called "actions" which is an array of strings, this is failing to convert it in the right way.</p> <p>The code is based on th...
2
2,188
Gradle 3.0.0-beta1 build issue
<p>I just updated the gradle version to</p> <pre><code>classpath 'com.android.tools.build:gradle:3.0.0-beta1' </code></pre> <p>after updating android studio to 3.0-beta1, and my gradle-wrapper is:</p> <pre><code>distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-rc-1-all.zip </code></pre> <p>the ...
2
2,796
Logging frameworks and multithread compatibility
<p>Note that I have seen these questions here on SO (which discuss the thread safety of log4net) and I suspect that they answer my question, but I am going to ask anyway:</p> <p><a href="https://stackoverflow.com/questions/1519211/multithread-safe-logging">Multithread safe logging</a></p> <p><a href="https://stackove...
2
1,315
JAAS Forbidden Error (403) when accessing a protected URL
<p>I have just started working on a pet project using JSF, JPA, and EJB on a GlassFish server and I'm currently setting up the authentication module using JAAS. It's about complete now except for a bug for which I can't figure out a solution.</p> <p><strong>My Premise</strong></p> <p>I have a single table <em>users</...
2
2,226
How to filter by different Places on Google Maps Api Search
<p>So, I'm making a website where I have to insert a map, search box (input) and dropdown list.</p> <pre><code>var pyrmont = new google.maps.LatLng(-33.8665433,151.1956316); map = new google.maps.Map(document.getElementById('map-canvas'), { center: pyrmont, zoom: 15 }); var request = { location: pyrmont, radius:...
2
1,358
How do I fix nginx reverse proxy to a wordpress docker redirecting port for the user?
<p>So I have a raspberry pi web server I have been experimenting with, which runs nginx to serve multiple sites and such. I want to run wordpress in a docker container as a blog, but I am having issues configuring the nginx+docker wordpress setup correctly.</p> <p>Here is my docker-compose.yml:</p> <pre><code>version: ...
2
1,208
BeautifulSoup HTML scraping, how to get row after thead in tbody
<p>I'm interest in learning about scraping a website. now I learn how to scraping table on the website. I used BeautifulSoup.</p> <p>I have a simple HTML table to parse but somehow Beautifulsoup I try to get row in tbody but always get word in "thead" ones. . I'm wondering if anyone would take a look at that and see w...
2
1,544
What is this design pattern known as in JavaScript/jQuery?
<p>I was looking over the JavaScript source code for <a href="https://github.com/mleibman/SlickGrid" rel="noreferrer">SlickGrid</a>.</p> <p>I've noticed that slick.grid.js has the following structure:</p> <pre><code>(function($) { // Slick.Grid $.extend(true, window, { Slick: { Grid: Slick...
2
1,331
Have an SQLAlchemy + SQLite "create_function" issue with datetime representations
<p>We have sqlite databases, and datetimes are actually stored in Excel format (there is a decent reason for this; it's our system's standard representation of choice, and the sqlite databases may be accessed by multiple languages/systems)</p> <p>Have been introducing Python into the mix with great success in recent m...
2
1,438
Request a select option in php
<p>I am looking for a possibility to include a select option in a database. For some reason the value doesn't show up in the POST function of the sound_upload.php. I always get the mysql message "category can't be null". Is this problem connected to the use of the jascript or did I simply use the wrong php code?</p> <...
2
4,121
QML Dynamic insertions of components in loader from C++
<p><em>I've fully edit my question since I've made some progress, and the first one was unclear.</em></p> <p>I use Qt 4.8, with QtQuick 1.0.</p> <p>I have a page where I need to keep the top and the bottom margin. So I've defined a <strong>Main.qml</strong> like that :</p> <pre><code>Item { id: salesWindow ...
2
1,033
MS Access OpenRecordset and too few parameters issue
<p>This is a follow-up question of <a href="https://stackoverflow.com/questions/46982291/ms-access-openredcordset-reading-wrong-string/46983213?noredirect=1#comment80918070_46983213">MS Access OpenRedcordset reading wrong string</a>. I'm certain that I have enough parameters, fields declaration to pass values to <code>...
2
1,217
Entrypoint #FAIL - no such file or directory
<p>In getting a django env setup, was working on how to containerize the env. In doing so, I can't get the entrypoint to work on Docker for Windows/Linux.</p> <pre><code>Successfully built e9cb8e009d91 Successfully tagged avengervision_web:latest avengervision_db_1 is up-to-date Starting avengervision_web_1 ... done <...
2
1,619
Angular with Jasmine error: Controller required by directive can't be found
<p>I have an application which has two directives, where one directive requires the other. I have replicated it to mirror the base of the application:</p> <pre><code>var module = angular.module('testApp', ['testApp.directiveA', 'testApp.directiveB']); // Here goes your modules definition module.controller('AppCtrl', ...
2
1,036
How to allow HTTPS for Grails 3 application on localhost?
<p>I'm trying to add Facebook login to my application and for that I have to run on HTTPS. I have followed steps described <a href="http://grailsblog.objectcomputing.com/deployment/2017/06/28/running-grails-with-a-self-signed-ssl-certificate.html" rel="nofollow noreferrer">here</a> and created my SSL certificate. Afte...
2
3,799
System.register-Issue setting up Angular Quickstart
<h2>Initial problem</h2> <p>Not sure if this is the right place to ask but I am facing this issue while setting up the quickstart tutorial for Angular. </p> <p>I am using gulp for tsc, bundling and hosting (gulp-)webserver.</p> <p>My tsc-gulp-task in the gulpfile.js looks like that:</p> <pre><code>var gulpTypescrip...
2
1,335
React Native with Redux-Persist , PersistGate inifinite loading
<p>I'm working on an app in react native and must work with Redux-Persist. I have the store configuration set up, no errors occur but the rehydration never happens and the persistentGate is infinitely in the loading state. </p> <p>Here is my store.js</p> <pre><code>import { createStore, combineReducers } from 'redux'...
2
1,199
Can't get android flash light widget to turn flash on
<p>I am trying to make a flash light widget for the galaxy nexus and have been stuck on this problem FOR DAYS. I have a widget that consists of a button that functions like a toggle. But I can't get the button to turn on the flash. The widget works as a toggle using toasts, but once I add the lines of code that communi...
2
2,130
populating listview through a fragment
<p>I have a class extending listFragment. I have written code for fetching json response in a method which is called in oncreate of the class. For fetching json in background I have created new inner class which extends asyncTask. I can get the jsonarrays and strings in the json response in the logcat. But when I try t...
2
1,704
Volley timeout error attempting to POST to localhost
<p>I've battling a volley timeout error when attempting to post a registration form to a <code>localhost (WAMP)</code> for testing purposes. I've been looking at the code for sometime and cannot seem to find the issue. Timeout errors from what I understand are generally due to connection issues. I don't seem to be gett...
2
5,196
axios post request not mapping to java object property in Requestbody
<p>I am working on a Java Spring boot application, with React JS as the front-end. In my react js project, on a form submit, I send data to the Spring API. For some reason, I am unable to map the javascript JSON array property to the java array property. All of the other String datatype properties match apart from the ...
2
1,467
iPhone Bookmark UIWebView - Displaying Page Title and Storing URL
<p>I have a fully operational web browser application that stores bookmarked pages. When the bookmarks button is clicked, a listview of the stored websites is displayed. Instead of showing the URL, I would like the listview to display the title of the page, but I would like the UIWebView to go to the URL when the title...
2
1,941
Mutate repeats first row value
<p>I have a dataset with taxonomy assignment and I want to extract the genus in a new column.</p> <pre><code>library(tidyverse) library(magrittr) library(stringr) df &lt;- structure(list(C043 = c(18361L, 59646L, 27575L, 163L, 863L, 3319L, 0L, 6L), C057 = c(20020L, 97610L, 13427L, 1L, 1...
2
2,691
Need UI alignment help with WPF
<p>In my WPF application (XAML posted below), I have a List View and below that I have some labels and text boxes. Everything below the ListView should anchor to the bottom of the window. Everything above the ListView needs to anchor to the top of the window. The ListView itself needs to expand vertically to fill in th...
2
1,230
deploy in google app engine
<p>am trying to deploy my application on google app engine but getting following error</p> <pre><code>Starting update of app: timezzzzpass, version: 4 Scanning files on local disk. 2011-06-06 17:46:22,095 ERROR appcfg.py:1965 An unexpected error occurred. Aborting. Traceback (most recent call last): File "C:\Progra...
2
1,457
Set a box-shadow on div when click on it
<p>I have 3 divs. I want that when I click on first div then set box-shadow on it and when I click on second div then set box-shadow on it also remove box-shadow on first div.</p> <p>These are 3 divs</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snipp...
2
1,484
Python Pandas rolling aggregate a column of lists
<p>I have a simple dataframe df with a column of lists <code>lists</code>. I would like to generate an additional column based on <code>lists</code>.</p> <p>The <code>df</code> looks like:</p> <pre><code>import pandas as pd lists={1:[[1]],2:[[1,2,3]],3:[[2,9,7,9]],4:[[2,7,3,5]]} #create test dataframe df=pd.DataFrame...
2
1,242
Spring security SAML Single logout service URL hitting twice
<p>getting issue while logging out using the SAML SSL. SingleLogoutService URL hitting twice.</p> <p><a href="https://i.stack.imgur.com/x7jNz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x7jNz.png" alt="enter image description here"></a> <strong>SSL configuration in IDP.xml(SP) below:</strong></...
2
1,128
How to calculate height between navbar and footer?
<p>So I would like my application to look like this:</p> <pre><code>Nav Content Footer </code></pre> <p>but I'd like the content to be the only thing which will scroll so the navbar and footer stay on the screen at all times.</p> <p>HTML:</p> <pre><code>&lt;body&gt; &lt;div id="wrapper"&gt; &lt;div id="...
2
1,891
How can I build an Hierarchy of data in C# using a table of data
<p>I am in a middle of an exercise where I am trying to manually make an XML file from data which a user enters into a table. Here is a sample Table:</p> <p><strong>Note, in my code example later, more fields are exposed than this table for future purposes.</strong></p> <p><strong>Note 2, The data in this table is ma...
2
1,445
Setting up a Timeline with a for loop in JavaFX
<p>I'm trying to write an animated sort for a class I'm in. My goal is to have the sort displayed as vertical white bars that will be rendered on the canvas I've created.</p> <p>I've attempted to accomplish this using a <strong>Timeline and Keyframes</strong>, but the output I get is a blank white canvas that after a...
2
2,051
Android - Upload Image in a Azure Container
<p>I have used the following code to upload image in a storage container in azure from android. It throws the error on "// Create the blob client" line. some java.lang.verifyError. I have searched to solve this error but i can't find any solution.</p> <pre><code>String connectionString = "DefaultEndpointsProtocol=http...
2
1,534
Custom item animator for RecyclerView. Collapse space after slide animation
<p>I try to write custom <strong>ItemAnimator</strong> for <strong>RecyclerView</strong> based on these <a href="https://github.com/gabrielemariotti/RecyclerViewItemAnimators" rel="nofollow">sources</a></p> <p>So, I have BaseItemAnimator</p> <pre><code>public abstract class BaseItemAnimator extends RecyclerView.ItemA...
2
6,530
VBA: Method 'SetSourceData' of object '_Chart' failed For Multiple Pivot Charts
<p>This is part 2 of the previous question:</p> <p><a href="https://stackoverflow.com/questions/44160540/vba-runtime-error-setsourcedata-for-second-pivot-chart">VBA: Runtime Error - SetSourceData for Second Pivot Chart</a></p> <p>After following the (good) advice offered in that thread, I am still having the same pro...
2
1,819
Debug Share SSO setup against Keberos AD
<p>I am trying to implement SSO for share using Kerberos AD and followed the directions listed in the official documentation at docs.alfresco.com. I keep getting the following exception</p> <pre><code>2013-06-20 18:07:37,772 DEBUG [app.servlet.KerberosAuthenticationFilter] [http-80-1] Authentication not required (fil...
2
2,084
How do I recive back messages through MQTT from lambda function?
<p>Let me introduce my problem to you, first of all I have to say that i'm newbie at AWS and MQTT, I mean (don't be mad at me), my question: I want to publish through a MQTT client to AWS IoT/Lambda a simple JSON {'petition':'Hola', 'n':0}, and once published, the lambda function has to send back the JSON message {'pet...
2
1,451
Swing resize slow/jumpy
<p>I made my own BottomBar with a simple gradient extending JComponent and adjusting the paintComponent() method.</p> <p>Then I add it to the SOUTH of my JFrame which uses BorderLayout.</p> <p>Everything looks correct at the beginning. When I resize the frame the BottomBar gets repainted and set to the new position c...
2
1,229
How to load self hosted mp3 files on click in React Player
<p>I use 16 React Players on my site and imported 16 different mp3 files. I´m worried about the loading time, so I thought it might be a good solution, if the mp3 file is only loaded, when the play button is clicked. Is this possible and can anyone give me a hint how to achieve this?</p> <p>This is the beginning of the...
2
1,588
Linker error using wininet in c++
<p>I'm going to upload data using wininet in c++.<br /> Here is a code.</p> <pre><code> #include &quot;stdafx.h&quot; #include &quot;iostream&quot; #include &quot;windows.h&quot; #include &quot;wininet.h&quot; #include &quot;tchar.h&quot; #include &quot;iostream&quot; #include &quot;strin...
2
1,043
urllib2.urlopen failing while urllib.urlopen working on same URL
<p>I am trying to use urllib and urllib2 to scrape some data from a particular website.</p> <p>Now the urllib was primarily for reading and processing the data while the code section with urllib2 was mainly for reading and storing the data. </p> <p>The external site experienced some changes and while the urllib code ...
2
1,389
How to checkout and merge branches to master - GITPYTHON
<p>I need to merge all my branches to the master using python. branch local path,buildno getting via environment variables. I have the following code to checkout each branch and merge to master. but it gives some errors when executing the code.</p> <pre><code>from git import Repo import git def mergeRepo(user, buildn...
2
1,077
Why is Google Earth changing KML polygon coordinates?
<p>My goal is to be able to draw a shaded polygon over a defined area in google earth using a KML file. I have created a KML document with one placemark and a polygon with the desired coordinates and am able to import the file into Google My maps and display the polygon. However, when I open the same file with google e...
2
1,946
Add / remove class to all elements
<p>this time I am working with the orders table.</p> <p>I have that table: <a href="https://i.stack.imgur.com/xm3wy.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xm3wy.gif" alt="enter image description here"></a></p> <pre><code>&lt;table class="table table-striped table-bordered"&gt; &lt;thea...
2
2,166
slideToggle not pushing div beneath, just overlapping
<p>I am building a website, and ran into a problem with slideToggle. I am using it, to reveal some tags under a question, which is not neccessary to be shown all the time. But the div which has this slideToggle is a top div of a vertical list, and somehow when i toggle it out, it is not pusing the div below further in ...
2
1,880
Textbox not showing on page
<p>I am trying to show a textbox after selecting an item from a populated listbox and clicking a button. After I click the button, the textbox should show up on the screen with the desired text however it never appears. The initial value of the visible property is set to false, then in the Code Behind it sets it to tru...
2
1,772
How to securize Struts2 Rest services with Spring Security Oauth
<p>I struggle with configuration of spring security Oauth to use it on a Struts2 Application to secure rest webservices. I already use spring security for a long time.</p> <p>The issue, if I have well understantood, is that Spring security Oauth need spring mvc dispatcher set on root. And this is conflicting with Stru...
2
1,820
Title test failing for request specs in Michael Hartls tutorial for Rails 3
<p>Im following the Ruby On Rails 3 tutorial by Michael Hartl and using Capybara for the integration specs. The integration specs so far are as follows</p> <pre><code>require 'spec_helper' describe "StaticPages" do describe "Home page" do it "should have the h1 'Sample App'" do visit '/static_pages/home' ...
2
1,071
How do you empty JTable?
<p>I'm trying to dynamically add rows to the JTable, but having hard time with the ArrayIndexOutOfBounds exception. I'm confused because there is no specific explanation why the problem exists and where the problem occures. See below for the code.</p> <pre><code>ArrayList&lt;ArrayList&lt;String&gt;&gt; matrix = new Ar...
2
1,378
Binding DataGridTemplateColumn.Width property to slider
<p>I am trying to bind the width of a DataGridTemplateColumn to a slider to adjust the column's width.</p> <p>When there are other columns so that a horizontal scroll bar is shown, the sizing of the column has no effect. Here is working sample code:</p> <pre><code>&lt;Window x:Class="WpfApplication1.MainWindow" ...
2
1,204
Timers / Tap and Hold gesture problem in .NET CF
<p>Ive encountered some strange behaviour in my .NET CF 2.0 application running on Windows CE 5.0.</p> <p>I have a timer updating a control periodically, that control can also receive Tap and Hold gestures from the user (in the mouse down handler). What I am finding is that when a TAH begins (but before it exits) a ti...
2
1,717
Receiving "execution expired" errors on Twitter from Heroku
<p>Starting a few days ago, I have been receiving "execution expired" errors from Twitter on Heroku. I don't receive this error in development, but when I deploy to Heroku I get it all the time.</p> <p>It seems like other people are having this issue as well. See this bug report on the Twitter gem: <a href="https://gi...
2
1,087