title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to: Parameter binding from multiple sources | <p>Currently I'm trying to create a web api based on asp.net core 2.0 and I'd like to create a nested route. In case of a put request it sends a part of the information in the route and another part in the body.</p>
<h3>Requirements</h3>
<p>The desired url to call would be</p>
<pre><code>https://localhost/api/v1/master... | 2 | 2,755 |
Drawer navigation that retains or restores state of page | <p>I'm building a Flutter app and I'm trying to wrap my head around Navigation and State. I built a very simple app below that has two pages that both have the increment button on them. They both share a <code>Scaffold</code> definition so that there is a consistent navigation drawer on both pages.</p>
<p>Basically th... | 2 | 1,517 |
Copy specific artifacts with dependencies to the specific folder and rest of dependencies to another folder | <p>I have a maven project with 5 dependencies. Two of them (with its transitive dependencies) I need to have in a custom location, let's say in <code>client/plugins</code>. While rest of the project dependencies (also with transitive dependencies) I need in another location, let's say in <code>client/modules</code>. Fo... | 2 | 1,141 |
How to convert flat xml data to hierarchical data xml | <p>I have to convert a flat xml to hierarchical xml.
I have no idea for this task.
Below is input for conversion.</p>
<p>Input:-</p>
<pre><code><body>
<p class="title">Article Title</p>
<p class="Authors">abc, pqr and xyz</p>
<p class="intro">here is introdution text..... | 2 | 3,308 |
Update: Errors with postCSS and Babel in Gulpfile | <h1>Goal</h1>
<p>I'm updating my old <code>gulpfile.js</code>, which used to be mainly for compiling my Sass into CSS, but now I'm trying to get Gulp to do the following: </p>
<ol>
<li>Sync browser, whip up localhost server - <strong>DONE</strong></li>
<li>Compile Sass => CSS - <strong>DONE</strong></li>
<li>Show an... | 2 | 1,506 |
NodeIP, ClusterIP and LoadBalancer in Kubernetes | <p>My question is built on the question and answers from this question - <a href="https://stackoverflow.com/questions/41509439/whats-the-difference-between-clusterip-nodeport-and-loadbalancer-service-types">What's the difference between ClusterIP, NodePort and LoadBalancer service types in Kubernetes?</a></p>
<p>Th... | 2 | 1,790 |
During Maven Build Junit Tests runs fine, but why they fails, if I runs JUnit test manually? | <p>I have some problems with my maven project. I have created some JUnit test in my maven folder src/test/java. </p>
<p>If I created my maven project with "mvn clean install" on command line or in Eclipse IDE with the runs configurations like "clean" and "install" all test will be runs fine and don´t occurs some error... | 2 | 2,731 |
Javafx: TreeView adding items with right order | <p>i asked this question before but did'nt get any response! <a href="https://stackoverflow.com/questions/44779079/javafx-adjusting-treeview-with-right-order">Javafx: Adjusting TreeView with right order</a>. Please i need help to solve this problem. here is code </p>
<pre><code>public class Main extends Application
{ ... | 2 | 4,383 |
Intermittent "Vector iterator not dereferencable" | <p>I have the following code, but when I run it, I intermittently get a Debug Assertion Failed error, with the reason "vector iterator not dereferencable".</p>
<p>What I'm trying to do with the program is create a bunch of 2D shapes (squares and circles), then move them about one by one, checking for collisions as the... | 2 | 1,246 |
How do I resolve the mixed content error: The page requested an insecure font 'https:' | <p>My page (<a href="https://www.horizonhomes-samui.com/" rel="nofollow noreferrer">page here</a>) is suddenly displaying an unidentified mixed content error in the JavaScript console. How can I resolve this error? The error message is:</p>
<pre><code>Mixed Content: The page at 'https://www.horizonhomes-samui.com/' ... | 2 | 1,085 |
Scilab round-off error | <p>I cannot solve a problem in Scilab because it get stucked because of round-off errors. I get the message </p>
<pre><code>!--error 9999
Error: Round-off error detected, the requested tolerance (or default) cannot be achieved. Try using bigger tolerances.
at line 2 of function scalpol called by :
at line ... | 2 | 1,101 |
you may need an appropriate loader to load this file on windows with webpack not in linux and mac os | <p>I am trying to write a webpack file that will create a project in reactjs with es6 support. Here is my webpack.config.js</p>
<pre><code>webpackConfig = {
/*entry: './index.js',
output: {
path: path.resolve(__dirname, 'dist/'),
filename: 'build.js'
},*/
entry: {
lite: "./lite... | 2 | 2,340 |
JSF Primefaces ajax on p:datatable | <p>I am using JSF Primefaces for my UI. I have a specific requirement about ajax on p:datatable. This is a sample page of my project:</p>
<pre><code><?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<... | 2 | 2,846 |
Need help debugging a PHP 5 SOAP hello world application | <p>I've been trying to get PHP 5 SOAP extension to work after reading every tutorial there is on the web, but to no avail. This has been very frustrating and i would really appreciate it if someone could point out where i am going wrong and why.</p>
<p>Thanks for your help in advance, and any more details needed i'll ... | 2 | 1,791 |
Splash Screen white flicker before loading (React Native Expo) | <p>When the app loads there is a white background then a flicker before the splash screen is shown. I have removed the splash screen from the app.json file since i am manually loading and hiding the splash screen. (Leaving the splash screen in the app.json file results in the splash screen being shown followed by a whi... | 2 | 1,520 |
Java AES encryption error | <p>I want to encrypt a message with <code>AES</code> encryption techniques.
When i use this code i got some error as</p>
<pre><code>java.security.InvalidKeyException: Illegal key size or default parameters
</code></pre>
<p>My Encryption code :</p>
<pre><code>public class Encryption {
public static class Messag... | 2 | 1,573 |
BuildConfig Constants for buildType per each productFlavors in Gradle file | <p>I have two applications have single base code in <strong>main folder</strong> and each application have three types of buildTypes call <strong>debug</strong>, <strong>preview</strong> and <strong>release</strong>. So I created </p>
<p><strong><em>two</strong> productFlavors</em> i.e App1, App2</p>
<p><strong><em>... | 2 | 1,703 |
How to pass from pop up of jqgrid when clicked button? | <p>I use mvc4. There is button in rows of jqgrid. when clicked button, open pop up and in pop up edit data of row's grid. but when clicked button of pop up don't pass data to action of controller.
code of pop up:</p>
<pre><code>{
name: 'Notes',
width: 160,
sortable: false,
resizable: false,
se... | 2 | 1,259 |
How to Get Coordinates from Hex Map on Click in Unity | <p>I'm making the board game known as Hex. When I click on a tile, it changes to either blue or yellow, but I need to also be able to know what the coordinates of that tile are.</p>
<p>I can't use...</p>
<pre><code>rend.transform.position;
</code></pre>
<p>...because the the coordinates I want to receive look simil... | 2 | 1,291 |
Zero predictions despite masking support for zero-padded mini batch LSTM training in keras | <p><strong>Problem Statement</strong></p>
<p>I’m training a many-to-many LSTM in keras with tensorflow backend (tf version 1.13.1) on tagged text sequences to predict the tag of each element in the sequence using pretrained GloVe embeddings. My training regime involves mini batch stochastic gradient descent, with each... | 2 | 15,289 |
How to add JSON data to a JTable in JAVA | <p>I am using REST webservice to access the MySQL database. I have created a java swing application for REST client in NetBeans IDE. When I clicked <code>jButton</code> I am getting <code>JSON object</code> and I set those to a <code>jTextArea</code>. Now what I want is to fill the <code>JTable</code> from the received... | 2 | 1,267 |
How to use ResourceDictionary as StaticResource in Windows Phone 8 (element not fount) | <p>I am creating a Windows Phone 8 app. In the app I have a ResourceDictionary defined in a XAML file as:</p>
<p></p>
<pre><code> <Style TargetType="TextBlock">
<Setter Property="Foreground" Value="YellowGreen" />
<Setter Property="FontSize" Value="35" />
<Setter Prope... | 2 | 1,121 |
Django models: Fields name clashes | <p>I am facing an error in one of my Django practice projects. </p>
<p>Following are my apps and respective models:</p>
<p><strong>Project name: django03</strong></p>
<p><strong>app: home</strong></p>
<p><strong>home/model.py</strong></p>
<pre><code>from __future__ import unicode_literals
from django.db import mo... | 2 | 1,395 |
I want to retrieve the saved movies data from database and show it to user android | <p>I am building an app for Udacity called popular movies app which will fetch movies info from movieDB and display posters in the first activity than if the user clicked any poster it will take him to detailActivity where all the Movie detail will be displayed.</p>
<p>Now I am done with stage 1, stage 2 I am supposed... | 2 | 10,080 |
saving boolean values to postgres database using ruby on rails | <p>I've been working on a old rails project for a bit now. Since I haven't worked with rails in some time I'm a bit rusty and need some help along the way.</p>
<p>The thing is that I'm adding a pick up options to a E commerce web.</p>
<p>The backend is driven by <code>active admin</code></p>
<p>When the customer is ... | 2 | 1,840 |
Bootstrap nav dropdown-menu only showing horizontally (Rails 3.2.13, bootstrap-sass 2.3.1.2, jquery-rails 2.2.1) | <p>Using twitter bootstrap in a rails project, I'm aiming to get something looking like this (nice and simple, and readily achievable by putting the below code into jsfiddle to prove I'm not going crazy!). There follows a rather ascii art picture as unfortunately I can't post images yet:</p>
<pre><code>menu1 menu2 my ... | 2 | 3,747 |
Bad Request - Invalid Hostname HTTP Error 400. The request hostname is invalid | <p>I am getting this error:</p>
<pre><code>Bad Request - Invalid Hostname HTTP Error 400. The request hostname is invalid
</code></pre>
<p>On a brand new site that is using https.</p>
<p>My bindings look like this:</p>
<p><a href="https://i.stack.imgur.com/eOvG3.png" rel="nofollow noreferrer"><img src="https://i.st... | 2 | 1,035 |
Different results when setting/getting System properties with GStrings in Groovy | <p>I'm perplexed by Groovy's behavior here. I've run through the debugger some to try to determine where in the dynamic mixins these code paths may be getting crossed but wondered if anyone could set me straight here.</p>
<p>Basically, in setting a system property with a GString for a value, depending on how I set th... | 2 | 1,024 |
SonarQube: Unable to read 7.1.1-coverage.ec to determine JaCoCo binary format | <p>Gradle version: 2.2.3</p>
<p>Sonarqube version: 6.1</p>
<p>Sonarqube gradle plugin version: 2.2.1 </p>
<p>Java plugin version: 4.4.0.8066, Android plugin version: 1.1 </p>
<p>Sonarqube gradle task:</p>
<pre><code>apply plugin: 'org.sonarqube'
ext {
SONAR_HOST = "http://localhost:9000/"
}
sonarqube() {
... | 2 | 6,544 |
Show 2 responses for ajax success | <p>I am trying to display a message which checks for zipcode and returns whether cash on delivery and shipping is possible for zipcode entered.However I am able to get response for only one condition.Here I am posting the code which i am using.Can you help on how can i get to display message for COD and shipping differ... | 2 | 1,620 |
Qt progressBar getting Unhandled exception how detect when parent widget is done loading | <p>im using Qt QProgressBar and place it in the statusBar on my main window
Like this in the constructor :</p>
<pre><code>pb = new QProgressBar(statusBar());
pb->setTextVisible(false);
pb->hide();
statusBar()->addPermanentWidget(pb);
</code></pre>
<p>then im running procsses (web page loadding in this case ... | 2 | 1,273 |
Add localStorage to Vue JS 2 app | <p>I wanna add the localStorage to my shopping cart app in Vue JS 2 to save items in a cart when user reload the page and to save quantity of items, when user clicks on + or - buttons. How can I do that? I'm new in VueJS. Ihave tried to solve it by adding itemStorage.fetch() into shopping cart component, but it does no... | 2 | 1,765 |
c# how do i ask the user to press any keys to exit when they enter an invalid input | <p>I don't know how to ask user to press any keys to exit when they enter an invalid input.</p>
<p>Whenever i try to put <code>Console.ReadKey</code>(), the program just keeps on going. I don't know how to make it stop when user did not put a valid input.</p>
<p>Here's a screenshot
<a href="https://i.stack.imgur.com/... | 2 | 2,206 |
AngularJS uibModal dependency not found | <p>I am having a problem with injecting the <code>uibModal</code> dependency in my app.js:</p>
<p><code>Angular Version:</code> 1.5.7<br>
<code>ui.boostrap Version:</code> 1.3.3<br>
<code>Bootstrap Version</code>: 3.3.6</p>
<p>I keep getting this error:</p>
<p><code>angular.js:13708 Error: [$injector:unpr] Unknown p... | 2 | 1,254 |
How to make autoNumeric work correctly with Vue.js 2? | <p>I'm trying to create a Vue.js 2 directive that activate the <a href="http://decorplanit.com/plugin/" rel="nofollow">autoNumeric</a> jquery plugin on the input it is declared on.</p>
<p>For instance, the following input will have the autoNumeric plugin activated via the vue directive <code>v-cdz-numeric</code>, and ... | 2 | 1,053 |
Ajax call showing error when call ActionResult in MVC.NET | <p>I am using Angularjs with asp.net MVC. I want to save data using ajax hit but it is showing Error message And in browser it is showing "Failed to load resource: the server responded with a status of 500 (Internal Server Error)". I want to call
Action result once for test with a static id but it is not working. My V... | 2 | 1,123 |
Tidy data.frame with repeated column names | <p>I have a program that gives me data in this format</p>
<pre><code>toy
file_path Condition Trial.Num A B C ID A B C ID A B C ID
1 root/some.extension Baseline 1 2 3 5 car 2 1 7 bike 4 9 0 plane
2 root/thing.extension Baseline 2 3 6 45 car 5 4 4 bike 9 5 4 pla... | 2 | 1,975 |
SQL ORDER BY issue | <p>Duplicate of this <a href="https://stackoverflow.com/questions/810599/order-by-with-decode-function-issue-with-multiple-columns">question</a>, which itself cross-references 3 other minor variants of the same question.</p>
<hr>
<p>Hi all,</p>
<p>I am sorry but i am putting my question as a new question in this pos... | 2 | 1,258 |
p5.js collision/object interaction. Ball bounce | <p>Following the collision between a ball from an array and an object (rectangle), the ball doesn't seem to have the same bounce affect as it has when it hits the ground.</p>
<p>When coming into contact with the object, it seems to pick up speed and suddenly glitches through and comes to rest on the ground.</p>
<p><s... | 2 | 1,474 |
Need help adding Chart.js chart to a Modal window (I'm Using AngularJS) | <p>I'm new to most things web development related. I've been building a prototype website for the past couple of weeks using AngularJS.
Due to my flawed understanding of how angular works I was redirecting to certain webpages and so breaking the app; at the time this didn't matter as it was just a quick prototype to g... | 2 | 2,821 |
IdP initiated SSO with SimplesamlPHP | <p>I am having trouble implementing an IdP initiated login with SimplesamlPHP.
Understanding what I have to do from the documentation is not the easiest thing.</p>
<p>I am redirecting the user to the IdP server and after logging in, the server sends the SP an XML file which includes the email user's address, ID and ot... | 2 | 2,065 |
Django parler TranslatableSlugMixin translates from English to another language, but once translated cannot be translated back returns 404 | <p>I'm using Django CMS with Django Parler and have run into a problem that is driving me mad, so if anybody could help, it would be much appreciated!</p>
<p>So I'm creating a simple blog app that has the slug as a translatable field. Here is the model simplified:</p>
<pre><code>from parler.models import Translatable... | 2 | 1,060 |
Apache Spark Not able to view output | <p>I have just started learning Apache Spark. I am trying to print the output of links but it doesn't display it for some reason. I have also tried links.collect() , display(links) but none of them work. Any help would be appreciated.</p>
<p><a href="https://i.stack.imgur.com/mtBl4.png" rel="nofollow noreferrer"><img ... | 2 | 2,112 |
Angular Routing partial views in miniSPA | <p>I've flipped through tons of the posts, and can't seem to figure out what i'm doing wrong. I have a main Layout page for Bootstrap navigation. and am trying to create a Student miniSPA. </p>
<p>I have a Index.cshtml page nested in the Layout, and am trying to load my List.html partial view. It's loading up to the ... | 2 | 1,710 |
Angular2 Parent Component Not Triggering Event of Child Component | <p>I am attempting to create a component that allows the user to select actions to be performed on "tests" using a table interface. Each row of the table is a separate child component with the parent component comprising of the table headers and the child component rows, which are created using <code>*ngFor</code>.</p>... | 2 | 1,664 |
android 7.1.1 (Nougat) app standby and network | <p>I need to issue network calls when the app is in background. The sequence is as following. The app receives GCM call, issues API call to BE in order to get some more data, and then show notification.
The GCM call is received perfectly, but the API network call is failed by timeout with the following <code>stack-trac... | 2 | 1,088 |
Avatar background color not changing dynamically in material-ui v5 | <p>I'm trying to change each avatar background color on the basis of categories, for example if the category is "work" then the avatar color must be yellow if the category is "todos" then the avatar color must be pink and so on. But the code is displaying the default grey background-color of each av... | 2 | 1,045 |
Confusion Matrix - ValueError: Found input variables with inconsistent numbers of samples | <p>For the sake of reproducibility, the training and validations datasets I am using are <a href="https://drive.google.com/drive/folders/1-_dvey1kwLJoqfIdf4nxfkvWAqE1gL81?usp=sharing" rel="nofollow noreferrer">shared here</a></p>
<p>The <code>validation_dataset.csv</code> is the ground truth of <code>training_dataset.c... | 2 | 1,066 |
Could an optimizing compiler remove all runtime costs from std::unique_ptr? | <p>Reading about <code>std::unique_ptr</code> at <a href="http://en.cppreference.com/w/cpp/memory/unique_ptr" rel="noreferrer">http://en.cppreference.com/w/cpp/memory/unique_ptr</a>, my naive impression is that a smart enough compiler could replace correct uses of <code>unique_ptr</code> with bare pointers and just put... | 2 | 1,151 |
Android: SwipeListView click | <p>SwipeListView is working good,but sometimes have a problem that the "swipeBackView" item should be clicked if we click at the corresponding position at "swipeFrontView".Help me please and Thanks in advance.
My xml codes are as follows:</p>
<p>activity_home.xml:</p>
<pre><code> <RelativeLayout
android:la... | 2 | 2,850 |
primefaces requiredMessage gets lost when p:autoComplete moved into custom component | <p>I'm using PrimeFaces in a pretty standard Java web app (jsf-2) and am having an issue with my required message displaying when I move a p:autoComplete component into it's own custom component.. </p>
<p>first, the p:autoComplete when it's on the page itself - this is working fine (simplified):</p>
<pre><code><h:... | 2 | 2,396 |
Retrofit does not return a response + Null Object Reference | <p>I am new to Retrofit and was trying to build an Android App to make REST queries to my Servlet running on LocalHost.</p>
<p>I am aware that such an error is caused by incorrect POJOs receiving the JSON response via Retrofit. I fixed my POJOs according to my JSON response with the help of <a href="http://www.jsonsch... | 2 | 3,414 |
Keras Multi GPU example gives ResourceExhaustedError | <p>So I try to use multiple GPUs with Keras. When I run <a href="https://github.com/fchollet/keras/blob/master/keras/utils/training_utils.py" rel="nofollow noreferrer">training_utils.py</a> with the example program (given as comments inside the training_utils.py code), I end up with <code>ResourceExhaustedError</code>.... | 2 | 2,819 |
TypeError: readData() missing 1 required positional argument: 'data' | <p>facing an code error. iam in learning phase of python,
trying to do a DDT framework for Python with selenium.</p>
<pre><code>userN = getData.readData(path,'Sheet1',r,1) TypeError: readData() missing 1 required positional argument: 'data'
</code></pre>
<p>Below code for XLutil.py</p>
<pre><code>import openpyxl
c... | 2 | 1,214 |
Android animation - how add start margin? | <p>I am trying to make animation of group of buttons sliding in and out but I am struggling with one problem.
Current animation is moving correctly but is sliding out from the very left of the screen. Just where is the button used to show up this. So this makes whole animation looks bad, because this group is sliding o... | 2 | 2,051 |
Convert complex xml to csv using xsl using looping function | <p>I having a xml file here.. </p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE dependencies SYSTEM "http://depfind.sourceforge.net/dtd/dependencies.dtd">
<dependencies>
<package confirmed="yes">
<name>com.infopro.Dependency</name>
<class con... | 2 | 7,587 |
Set dataprovider of buttonbar component | <p>I am trying to add a navigation component with a button bar in it that controls the view stack of the main application. Here is what I have so far for the main application's code:</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
... | 2 | 1,052 |
"[unixODBC][Driver Manager]Can't open lib '/usr/lib/x86_84-linux-gnu/odbc/libmyodbc8w.so' : file not found" | <p>Not used to linux at all so forgive me. It seems as though I have been through every post online for this issue and I've finally come to post my own.</p>
<p>I need to connect to a MySQL Database via an ODBC connector. I know javascript so I am using <a href="https://github.com/markdirish/node-odbc/" rel="nofollow no... | 2 | 1,209 |
Jackson not ignoring null values | <p>Here is my object </p>
<pre><code>public class TokenTO {
private String clientId;
private String clientSecret;
private String authCode;
private String authToken;
....
}
</code></pre>
<p>and when I get the <code>JSON</code> response I see </p>
<pre><code>{"clientId":null,"clientSecret":null,"... | 2 | 1,213 |
Authorize.net : This transaction has been declined | <p><strong>CreditCard Model</strong></p>
<pre><code>def charge_cents!(cents)
begin
gateway = ActiveMerchant::Billing::AuthorizeNetGateway.new($installation[:authorize])
response = nil
Timeout::timeout(120.seconds) {
response = gateway.purchase(cents, self.to_am_creditcard, {
:order_id ... | 2 | 1,150 |
Java - is this an idiom or pattern, behavior classes with no state | <p>I am trying to incorporate more functional programming idioms into my java development. One pattern that I like the most and avoids side effects is building classes that have behavior but they don't necessarily have any state. The behavior is locked into the methods but they only act on the parameters passed in.</... | 2 | 1,178 |
Android View Binding - Unresolved Reference in Multi Module Project | <h1>Issue</h1>
<p>The <em><a href="https://github.com/AdamSHurwitz/CryptoTweets" rel="noreferrer">Crypto Tweets</a></em> sample app <code>root</code> branch implements <em><a href="https://developer.android.com/topic/libraries/view-binding" rel="noreferrer">Android View Binding</a></em> for each of the three app module... | 2 | 6,071 |
MySQL docker container crashes | <p>I'm a newbie with Docker and I'm working on a Symfony2 software development project that uses docker with MySQL, nginx and the web app containers in it. I'm constantly being disconnected from MySQL with the following error message : </p>
<blockquote>
<p>DriverException in AbstractMySQLDriver.php line 115:
An ex... | 2 | 7,207 |
RecyclerView not showing anything even after receiving data | <p>I am trying to populate some data on a <code>RecyclerView</code>. The data is obtained in one of the ways: </p>
<ol>
<li>Request data from an API if internet is present (using <code>Retrofit</code> and <code>RxJava2</code>), persist the data to local database (using <code>Room</code>), send the data to the <code>V... | 2 | 9,950 |
Why a state is not resolved as a variable in nextjs | <p>I am using passportjs middleware for authentication and it works, but when I'm trying to use the user object in components the property is undefined, although is passed in _app.js. </p>
<p>The app is nextjs based with an express server. I know the user is authenticated because I can trace it in the server, but not ... | 2 | 1,970 |
SQLSTATE[HY000] [1045] Access denied for user 'landon_app'@'localhost' | <p>I'm currently following a laravel/mysql tutorial on lynda and followed the following steps to create a database and connect it to my laravel framework.</p>
<p>The following steps helped name my database, change my user name, and password (in which it is no longer user:root, password:root):</p>
<pre><code>1. CREATE... | 2 | 2,285 |
AVAssetExportSession with instructions make black screen | <p>I'm trying to combine 2 audio files and 1 video file into 1 .mov file. I realize it with next code:</p>
<pre><code>-(void)combineData{
AVMutableComposition *mixComposition = [[AVMutableComposition alloc] init];
AVAsset *audioAsset = [AVAsset assetWithURL:_songURL];
AVAsset* audioAsset2 = [AVAsset assetWithURL:[NSU... | 2 | 1,220 |
java.NullPointException in DataFrame.show() method in spark - scala | <p>EDIT: Sorry about previous question quality, I hope this one would be more clear:
With Spark application I'm loading whole directory of following JSON files:</p>
<pre><code> {
"type": "some_type",
"payload": {
"data1": {
"id": "1"
},
... | 2 | 1,461 |
Deploying a Maven one-jar deploys wrong artifact | <p>I am trying to build a single-jar Java utility. In <a href="https://stackoverflow.com/a/11160606/827480">this previous SO post</a>, someone recommended using the <a href="http://code.google.com/p/onejar-maven-plugin/" rel="nofollow noreferrer">onejar-maven-plugin</a> plugin. I have tried it, but the problem I am e... | 2 | 1,651 |
Jquery change .prop href | <p>I'm trying to change the <code>#lienImg</code> <code>href</code> when the <code>.product_thumbnails</code> <code>li a</code> is clicked but it doesn't seem to work. Strangely, the .primary_image is updated...</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div c... | 2 | 1,660 |
Ionic list item border not seen | <p>I have created a form using Ionic Creator.
<a href="https://creator.ionic.io/share/fdd3f4198103" rel="nofollow noreferrer">https://creator.ionic.io/share/fdd3f4198103</a>
I am unable to see the borders of select as you can see in my image below.</p>
<p>Source code is :</p>
<p><div class="snippet" data-lang="js" da... | 2 | 1,652 |
How to build or publish bundled video assets larger than 50MB in Expo react native | <p>Im trying to bundle a number of video files (100 MBs each) to my app so that the user can play them offline without having to download them from internet (client requirement). Im on expo SDK 30 and tried the offline method suggested by documentation (assetBundlePatterns).</p>
<p>Problem is it looks like expo upload... | 2 | 1,142 |
How to write down nested schemas for mongoose using NestJS nomenclature | <p>I am learning NestJS, and Mongoose. I was wondering how to write down/code nested schemas in Mongoose using NextJS nomenclature.</p>
<p>Incoming data structure looks like this -</p>
<pre><code>{
something: {
info: {
title: string,
score: number,
description: string,
... | 2 | 1,327 |
Making two side by side divs scrollable | <p>I really need some help on this please. I literally spent four days to do this but no luck. Then fortunately I was searching for two 100% height side by side divs both scrolling independently if extra contents are added but won't collapse if there is less content than the page height. Here is the solution I found. <... | 2 | 1,209 |
How to automatically close an accordion when opening another? | <p>I have an accordion that includes some nested accordions that I'm intending to use an a mobile navigation. I'm not the best with JavaScript, so I've had to find tutorials to get me to where I am now. All I need now is for all other accordions to close when a different one is open.</p>
<p>Here's the HTML I have so f... | 2 | 1,083 |
send kendoGrid parameters(filters, sort) for file download | <p>I am trying to send my filters from a grid in order to export an excel file with the filters applied. I am new to kendo, and I am having difficulties sending the filters,page,sorting to the controller. Here is what i have so far :</p>
<p><strong>Controller</strong></p>
<pre><code>public JsonResult List([DataSource... | 2 | 1,063 |
External javascript does not seem to connect to html page | <p>I'm trying to use an external javascript, but when I run my html page it does seem as though my external javascript is working. I'm not too sure if it's my coding in my javascript or if I haven't connected the javascript correctly. As I wanted an alert message to put when certain things weren't met, i.e email must h... | 2 | 1,866 |
firebase cloud messaging Android push notification not working | <p>I have an android app that sends that is supposed to send a push notification to users. When the notification is received by the user, the user taps on the notification and the app is opened and a url is opened in the android webview.</p>
<p>but my app is not receiving any notification.
here is the code</p>
<pre>... | 2 | 2,048 |
Nested Tab in Tab | <p>I have a problem with nested tabs. </p>
<p>If you click on the first tab (ul.plaene li a) What I want is to load the first content of the nested tab.</p>
<p>The html code is usually a PHP loop and I do not want to change the order.</p>
<p>I have found yet no solution to this problem.</p>
<p><div class="snippet" ... | 2 | 1,923 |
variable showing null value in view laravel | <p>i am trying to sent data to view from function in controller but the variable view is not showing any result</p>
<pre><code>public function goedit($id)
{
$catg = Category::where('cat_id',$id)->first();
return view('product.gocatedit')->with('row', $catg);
}
</code></pre>
<p>and my view is</p>
<pre><... | 2 | 1,257 |
express post request won't get data | <p>lately i started to play around with express.js the nodejs web framework. i'm making a simple form that send data to a express route.
I have a users.js route file and inside that there is a register route.</p>
<p>my user.js route file</p>
<pre><code>router.post('/register', function(req, res, next) {
var name =... | 2 | 1,263 |
Why is my p:progressBar not displayed, only the number? | <p>I have following XHTML file with a progress bar:</p>
<pre><code><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:pm="http://primefaces.org/mobile">
... | 2 | 1,879 |
Load Google Maps on webpage using Javascript and PHP through drop down form | <p>I am having two drop down lists on a html page. The data is coming from a mysql database and contains information like latitude, longitude and address. The user selects one item from the drop down and clicks on submit.</p>
<p>At this stage, I want to display a google map and put a marker at the latitude and longitu... | 2 | 3,433 |
Writing A Mongoose Plug In- plugin() a method? | <p>I am interested in writing a mongoose plug in to make all fields required. I know there are other ways to do this, but I like the idea of writing my own plug in. </p>
<p>From docs <a href="http://mongoosejs.com/docs/plugins" rel="nofollow">http://mongoosejs.com/docs/plugins</a>:</p>
<pre><code>// game-schema.js
va... | 2 | 1,500 |
Navigation [destination_name] is unknown to this NavController | <p>I have seen this question several times but mostly from people needing to go back from C to A but mine goes the other way.</p>
<p>Here is what my navgraph looks like (portion of it) </p>
<p>HOME -> NestedGraph Account - >Nested Graph Contacts inside this nested graph account.</p>
<p>What i want to do is go from H... | 2 | 7,160 |
Catch ArgumentException on WebService when receive Null Parameters | <p>Ok so yesterday I posted some problem I had with some system I'm developing. The problem I have now here, I am going through the worst case scenario and thinking that the user somehow tries to call my web service and forgets to put in the parameters, therefore the web service receives null parameters ... I tried val... | 2 | 1,206 |
A better way to split a sequence in chunks with overlaps? | <p>I need a function to split an iterable into chunks with the option of having an overlap between the chunks.</p>
<p>I wrote the following code, which gives me the correct output but that is quite inefficient (slow). I can't figure out how to speed it up. Is there a better method?</p>
<pre><code>def split_overlap(se... | 2 | 1,718 |
How to make two collapsible div mutually exclusive | <p>I have two collapsible div A(collapseOne) and B(collapseTwo) that are based on twitter's <a href="http://twitter.github.com/bootstrap" rel="nofollow">bootstrap</a>. How to make A is collapsed when B is expanded or vice versa?</p>
<p>My code looks like below,</p>
<pre><code> <div class="shop-details" id="shop-ac... | 2 | 1,112 |
asp:ModalPopupExtender button causing postback on main page | <p>I have a page that I am trying to use the asp:ModalPopupExtender on. I am using the popup as a seach tool so it has a user control with a textbox, a search button, a gridview and an ok button. When the user enters a search term and clicks the Search button, a postback is occuring that is causing the popup to close... | 2 | 3,205 |
Cant seem to add my obj to the scene: THREE.Object3D.add: object not an instance of THREE.Object3D | <p>I am new to using <strong>three.js</strong>. I used to use a JSON file as my 3D model but the actual 3D file has some issues when I export it from Blender so I am switching to obj. The actual model is fine now but I have no idea how to switch from <strong>JSON</strong> to <strong>obj</strong>. This is as far as I ca... | 2 | 1,240 |
ContextMenu of TabControl "blinks" when opened a second time | <p>My <code>ContextMenu</code> shows a weird behaviour when opened again, i.e. "right-clicking" a second time such that the menu closes and openes again at the new position; the menu is part of a <code>TabControl</code>.</p>
<p>Basically, when I right-click the <code>TabControl</code> the menu opens normally, but if I... | 2 | 1,071 |
JCombobox value retrieve from My Sql | <p>I use the following code for retrieve the data from mysql Student data Base.It was work properly.It will show the student Name in combo box.The value is retrieved from Db.</p>
<p>My problem is the first value(first student Name which is stored in Database column) displayed in the Jcombobox name field Automatically ... | 2 | 6,346 |
Problems with my unity shader | <p>I have began to create some shaders for my university group project however I have ran into a bit of a snag with my water shader. I am trying to create one which utilises two overlapping normal maps. </p>
<p>Whilst everything looks okay in the editor, when I then publish to the webplayer, the scene looks like its u... | 2 | 3,304 |
Headless mode in chrome cant find elements on python | <p>For some reason when I try to run a Headless Chrome it gives me a no such element error. edit: keep in mind that I using a proxy that automatically goes through a login page for an app before rendering cnn.com. </p>
<pre><code>def start_test(proxyHostInput, port):
chrome_options = webdriver.ChromeOptions()
... | 2 | 1,060 |
Classic ASP :: Cross-Site Scripting (XSS) Poor Validation Issue | <p>For a legacy Classic ASP application, I am supposed to remove all security attack issues. Currently, DB contains data which is already encoded and there will be no more Insert/update operations. Only select operations from now on wards.</p>
<p>I am able to remove SQL Injection and few other security issues, but, un... | 2 | 3,694 |
How to center a burger icon vertically inside a div? | <p>I have a navigation menu that contains a burger icon made with 3 <code><span></code> that is inside another elements :</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><co... | 2 | 1,067 |
PHP Script for Recent YouTube video using API v3 | <p>A while ago I made a script that showed the most recent video on a channel by adding the username to an &id=username in the URL. Recently, YouTube has began pushing people onto their new v3 of the API, and I'm unsure how I can update my code to get it to still work. The old code can be found below as a reference... | 2 | 1,416 |
plpgsql: syntax error at or near ";" LINE 66:END; | <p>When I was trying to create this function in the Postgres server, it gave me this weird error:</p>
<blockquote>
<p>Syntax error at or near ";"<br>
LINE 67: END;</p>
</blockquote>
<p>Below is the code:</p>
<pre><code> CREATE OR REPLACE FUNCTION "AGMI".make_process_detail(numeric,numeric)
RETURNS text... | 2 | 1,813 |
Retrieve value from input field, inside table TD when selected | <p>I am wondering if there is some way to retrieve a value from an input field, inside a TD when this TD is being selected (clicked).</p>
<p>I managed to get 1 of the values out, but it didn't change when I pressed the other row.</p>
<p>for example, here is my JSP, which leads to 2 TD's :</p>
<pre><code> ... | 2 | 1,443 |
java.lang.StackOverflowError Recursive Directory | <p>In my Android application I'm populating all of the paths of the external storage into an array.</p>
<p>A small number of devices are reporting a <a href="http://developer.android.com/reference/java/lang/StackOverflowError.html" rel="nofollow noreferrer">StackOverflowError</a>.</p>
<p>I've read <a href="https://st... | 2 | 2,017 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.