title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
m3u8 not playing offline - swift 3.0
<p>I am trying to stream an m3u8 url and save offline. Then play from offline. I am using <a href="https://developer.apple.com/library/content/documentation/AudioVideo/Conceptual/MediaPlaybackGuide/Contents/Resources/en.lproj/HTTPLiveStreaming/HTTPLiveStreaming.html" rel="nofollow noreferrer">Apple HTTP Live Streaming...
2
1,238
AADSTS90094: "The grant requires admin permission " but admin consent but was already granted
<p>I have a multi-tenant native app that calls device information from the Microsoft Graph. There is no Web API between the native app and the Microsoft Graph. The scopes being requested are: User.Read, Directory.Read.All, Device.Read</p> <p>From the customer tenant, the customer admin has granted permissions to the a...
2
1,940
calculate hours excluding weekends, holidays and non-working hours with SSMS
<p>First of all I wanna say I am new to SSMS, so please bear with me if some things are not totally clear. So here is my issue.</p> <p>I am trying to calculate time of 2 dates within the working hours and it should exclude the weekends and holidays. </p> <p>I found a function script which calculated the time within t...
2
1,594
Specify a `DataSource` factory instead of Tomcat's default
<h1>tl;dr</h1> <p>How do I tell Tomcat 9 to use a <a href="https://jdbc.postgresql.org/documentation/publicapi/org/postgresql/ds/common/PGObjectFactory.html" rel="nofollow noreferrer">Postgres-specific</a> <a href="https://docs.oracle.com/javase/8/docs/api/javax/naming/spi/ObjectFactory.html?is-external=true" rel="nof...
2
5,567
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost
<pre><code> 01-Jul-2018 20:00:33.968 SEVERE [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache....
2
5,022
Splitting a CSV File in Java that has extra commas and extra quotes in them
<p>I need to parse a one-column CSV file that not only has extra commas but also some of the names include extra quotes. I have looked over and have read the other previous questions and one of the best answers was <a href="https://stackoverflow.com/questions/15738918/splitting-a-csv-file-with-quotes-as-text-delimiter...
2
1,326
NEST returns null instead of fields
<p>I'm working with elastic for a long time, but I have never written a code that fetches some data. And now I'm in trouble.</p> <p>I have an index where I want to retrieve some documents projected on some field. I could literally write it in SQL</p> <pre class="lang-sql prettyprint-override"><code>SELECT myDocumentF...
2
1,501
dplyr and intervals: count observations and sum data without using loops
<p>I would like to use the R dplyr package to calculate the following interval related questions without using loops:</p> <ol> <li>I would like to count the observations in each interval (absolute and relative interval endpoints)</li> <li>I would like to sum the observation data in each interval (absolute and relative...
2
1,355
R function geom_freqpoly equivalent in Python to plot frequency polygons
<p>How to plot the frequency polygons in Python?</p> <p>For example, I can plot density plot like this:</p> <pre><code>import pandas as pd x = (1.5,1.5,1.5,1.5,1.5,1.5,1.5, 2.5,2.5,2.5, 3.5,3.5,3.5,3.5,3.5,3.5, 4.5,4.5, 6.5,6.5,6.5,6.5,6.5,6.5,6.5,6.5) df = pd.DataFrame({'x': x})...
2
1,151
"detail": "Not found." in Django rest-api
<p>I got the error <code>&quot;detail&quot;: &quot;Not found.&quot;</code> even though some ids still works.</p> <h3>model.py</h3> <pre class="lang-py prettyprint-override"><code>class Profile(models.Model): id = models.AutoField(primary_key=True) user = models.OneToOneField(User, null=True, on_delete=models.C...
2
1,160
PHP Parse error: syntax error, unexpected '<' at line 2
<p>Unfortunately my start was not very good at the time. But this time I have PHP Code problem.</p> <p>This code is available. In line 2 with "&lt;" it means that it can not be parsed. What am I doing wrong?</p> <pre><code>&lt;?php if (!wp_is_mobile()) { &lt;div id="content"&gt; &lt;!-- Posts anzei...
2
3,087
redux-form Dinamically inject objects into FieldArray `field` property
<p>What I am trying to accomplish is a dynamic FieldArray similar to the one in the <a href="http://redux-form.com/6.6.1/examples/fieldArrays/" rel="nofollow noreferrer">redux form example</a> but the difference is that every object I am adding to the list already has all properties (which i have to display) but one th...
2
2,202
Replace website background color from Firefox Extension?
<p>I'm building a Firefox Extension that, among other things, needs to replace body background color on one website. I'm interested in methods that work primarily on Firefox 4, compatibility with older versions of Firefox is not that important.</p> <p>I have already done this in Chrome, Opera and Safari extensions, bu...
2
1,324
Calculate the price of the items, depending on its quantity
<p>I'm trying to make block with the prices. The unit price varies depending on its quantity of units. For example:</p> <pre> Quantity — Price for each 1____________________$110 10___________________$105 20___________________$100 ... Number of items:__ Total: Price for each: </pre> <p>There is a need to write a the t...
2
1,228
Open Whatsapp contacts list from android app
<p>I am new to android and trying to do following task:- I want to open Whatsapp contact list and get selected contact data. I am able to achieve half of the work. Whatsapp contact list opens , but once i press on any contact my app crashes. Here is my code:</p> <p>To open Whatsapp contact list:</p> <pre><code>btnCho...
2
1,076
LDAP health check failed after running spring-batch
<p>I run a spring-batch project to fetch some data from an external API. It runs successfully but raises the following NPE raised after execution:</p> <pre><code>2019-07-08 10:26:53.040 |;| 8503 --- [ restartedMain] o.s.b.c.l.support.SimpleJobLauncher : Job: [SimpleJob: [name=job]] completed with the following p...
2
1,864
PHP editing data from the database
<p>i am trying to edit database before updating.first i am trying to edit the database using echo after that i want to update desired fields in the same table.please find my code below.... please help...i need to fetch values from database patient and need to update in the same table....</p> <pre><code>&lt;!DOCTYPE H...
2
4,360
Navigator.push is not working with setState in flutter
<p>Navigator.push is not working with <code>setState</code>.</p> <p>Once I removed the setState in the <code>retry()</code> function then it works but I want to use the setState inside the <code>retry</code> function.</p> <pre class="lang-dart prettyprint-override"><code>import 'package:covid_19/screens/home.dart'; imp...
2
1,149
Neo4j - Java Heap Space Error - TraversalDescription.traverse(Node);
<p>If maxDepth is 3 code runs fine, if maxDepth = 4 this code hangs @ the call to td.traverse(start) (~line 38) &amp; then I get: </p> <p>Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(Abstrac...
2
2,844
Luamacros for autohotkey
<p>i'm currently using a lua script by taran van hemert,where it save every keypress on text file and autohotkey will detect every keypress based on that text file, and i'm just wondering how i can make shift work on other keys, i mean when i press shift+2 it will display &quot;@&quot; at the text file. does anyone kno...
2
3,218
Read in file with UTF-8 character in path in R
<p>Let's assume I have a large amount of *.rds files with some have UTF-8 characters in their path. For some reason R can't handle some special accents. For example <code>enc2utf8(&quot;Č&quot;)</code>, which should print &quot;Č&quot; but on my end it converts to 'C&quot; which makes it impossible for R to recognize t...
2
1,695
fo:for-each is not a valid child of fo:table-row
<p>I'm using Apache FOP 2.1 for generating PDF documents inside a simple java application.</p> <p>When it comes to generate a table with dynamic rows then it always ends in an error: <code>(Position des Fehlers unbekannt)org.apache.fop.fo.ValidationException: "fo:for-each" is not a valid child of "fo:table-row"! (Kein...
2
2,254
Kotlin Multiplatform Library: Unable to generate .framework for iOS
<p>I am new to Android/KotlinMultiplatform , I am trying to create a library for iOS/Android using Kotlin Multiplatform.</p> <p>When I run the command on terminal <code>./gradlew :shared:packForXcode</code> It succeeds but could not find a <code>/build/xcode-frameworks</code> folder inside the root folder.</p> <p>Could...
2
1,675
Shared Preferences doesn't seem to save username in session
<p>For a few days, I have been trying to get the username to save in session properly. First, I opened the app and it would open login screen. I login with username, then it would take me to the MainActivity. Now I exit the app and reopen the app to ensure that username is saved and it would pass the login screen and g...
2
1,229
Modifying Code of Function at Runtime
<p>I am trying to write a decorator that adds verbose logging to a function via a decorator (a method would be nice too, but I haven't tried that yet). The motivation behind this is that patching in a one-line add_logs decorator call into a box in production is much easier (and safer) than adding 100 debug lines.</p> ...
2
1,497
Laravel phpunit Cannot modify header information - headers already sent
<p>I've gone around the multiple posts around the same issue and it can't seem to cover my case.</p> <p>My idea:</p> <p>I'm using JWT to authenticate users and my idea is to determine that whenever a token is nearly expiration date, I want to return a new token within the headers (Header Authorization).</p> <p>I've ...
2
1,492
Word Split Algorithm into Prefix Stem and Suffix
<p>I have a problem where I need to split an input string into possible <code>Prefix</code>, <code>Stem</code> and <code>Suffix</code>.</p> <p>The rules are:</p> <p><code>Prefix</code> = 0-4 chars</p> <p><code>Stem</code> = 1-* chars</p> <p><code>Suffix</code> = 0-6 chars.</p> <p>Say I have input "wbAlErbyp" it ne...
2
7,792
Bukkit adding multi lores through split() | everytime player does has \n in config
<p>Whenever a player does lore:\ndog the <strong>\n</strong> should add a new loreline so if the so if a player does lore:\ndog1\ndog2(in the config) it should add 2 lores the first one being dog1 and the second one being dog2. </p> <p>The problem is that it's not even returning the correct lore it's always returning ...
2
1,449
Elasticsearch Parent/Child. How to query and filter on Parent and sort on Child field
<p>So far I can Filter Parents with Children and sort the response on a Child field, works like a charm. See bellow. </p> <pre><code>GET /parent_child_meta_poc/paren_doc/_search { "query": { "has_child": { "inner_hits": {}, "type": "most_read_doc", "query": { "function_score": { ...
2
1,108
ScrollView embedded in TableLayout embedded in RelativeLayout with ListView outside Not Working
<p>Before I added my ListView, along with changing my TableLayout height to "wrap_content" as opposed to "fill_parent", my ScrollView displayed properly. Here is my XML:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_hei...
2
1,158
Maven duplicates all my .class files in the JAR
<p>I've been having running optimizers on my JAR. I've always wondered why. Today I wanted to replace single <code>.class</code> file, and when I opened the jar, I looked at this in the <code>/cz/autoclient/</code> directory:</p> <p><img src="https://i.stack.imgur.com/flQFJ.png" alt="image description"></p> <p>No won...
2
1,783
How to print QR Code using Commands with Zebra RW 420 thermal printer via USB in C#
<blockquote> <p>Before you go on and flag my question as a duplicate, believe me, its not. I have gone through virtually every solution provided here and I still can't get to get my app to work, so please will you just be nice and take some time to help me.</p> </blockquote> <p>Scenario: I have a Zebra RW 420 ...
2
2,220
Testing Sidekiq/ActiveJob - Job in ActiveJob but not Sidekiq
<p>I monkey patched my user class (backed by devise) to use ActiveJob like so:</p> <pre><code>class User &lt; ActiveRecord::Base # Omitted def send_devise_notification(notification, *args) devise_mailer.send(notification, self, *args).deliver_later end end </code></pre> <p>I tried testing this with the fol...
2
1,470
Displaying Cropped Image On ImageView
<p><strong>Overview</strong>: I have a simple layout with a button which when pressed.. opens up gallery telling me to choose a picture to crop, once picture is chosen, it goes into a cropping image screen. Once cropping of the image finishes and I hit "save/done" it should display the new cropped image onto my ImageVi...
2
3,643
Retrieving Building Blocks from user generated Word document
<p>I've searched far and wide, and I haven't found a proper solution yet.</p> <p>First off, this is a WinForms application using .NET 4.0 and DevExpress.</p> <p>I've been attempting to retrieve Building Blocks (Watermarks, Cover Pages etc) from Word documents (.docx), or at least user generated template files (.dotx)...
2
1,354
D3 vertical bar chart add newline to label text
<p>I was trying to break long lines of y-axis labels. My bar chart is like <a href="http://bl.ocks.org/erikvullings/51cc5332439939f1f292" rel="nofollow noreferrer">this</a> but with longer labels (usually more than 10 words with spaces). This is my code (it works and I see the chart, the only 'error' is the text, i loa...
2
3,216
php - Need a foreach loop to display only 1 set of values
<p>I'm trying to write a script that takes results from an SQL query and as it goes through each result it checks to see what the name of $row[13] should be and then Im wanting as it goes through each query result it identifies any names that are similar and keeps a count of how many times it sees that name. I thought ...
2
1,042
Hide tabBar and navBar on react-native-router-flux navigation
<p>I'm using <code>react-native-router-flux navigation</code>(version: <strong>^4.0.0-beta.21</strong>) for <code>React Native</code>.(version: <strong>0.48.3</strong>) The scenes are as follows:</p> <pre><code>&lt;Scene key="scene_condition" tabs={true} type="reset" tabBarStyle={styles.tabBarStyl...
2
2,053
Wildfly 21 with eclipselink 3.0 getting error as Persistence Provider not found
<p>Wildfly Version: 21.0.2.Final <br>JDK Version: openjdk-11.0.2 <br>Eclipselink: Migrating from 2.7.8 to 3.0.0 ( <strong>2.7.8 working fine</strong>) <br>When I try to deploy EJB 3.2 (JPA 2.2) project I am getting the below issue</p> <pre><code>10:29:59,261 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) M...
2
2,546
Autolayout works fine on iOS 8, but doesn't behave well on iOS 6 and 7 (I'm using XCode 6.2)
<p>I'm using autolayout to correctly lay out some views inside a UICollectionViewCell. It works fine with iOS 8, but when I try to run it on iOS 7 or iOS 6, the cells appearance varies widely everytime they are laid out (sometimes I see small changes in size and positions - one or two pixels - and sometimes big changes...
2
2,257
How to map columns from CSV to the class properties in C#?
<p><strong>TO DO</strong></p> <p>To create a console application, which can read a CSV file and auto determine to which of the three CSV files(varies in column data) it belongs to.</p> <p>I have created a console application, which is currently reading all the csv files from the directory using SmartXLS library. </p>...
2
1,700
Apple MDM Push Notification: Which key and certificate to use?
<p>I've been at this for about 12 hours. All of the google links are purple that have anything to do with MDM. I swear to all that matters that I've tried everything. I've regenerated the Vendor and Customer CSRs, keys, etc a dozen times and cannot get a push notification to work.</p> <p>Here's what I've done:</p> ...
2
1,103
jQuery ajaxSubmit ignored by IE8
<p>I am combing the <a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" rel="nofollow">jQuery validation plug-in with the jQuery Form Plugin</a> to submit the form via AJAX. This works perfectly in Firefox &amp; Chrome, but (as usual) Internet Explorer is being a pain. For reasons that are alluding...
2
1,544
display my output in a matrix form
<p><img src="https://i.stack.imgur.com/cOXPw.png" alt="my application-sequence alignment"></p> <p>Above is the image of my application.i am build an application to do the alignment of two string.the two string will be compared and a 2d array will be populated.the values of the 2d array will be the values of the matrix...
2
1,279
receive sms from my application in android from special number
<p>I want my program to be able to receive sms from a special number("+9856874236"). But, if the SMS is from any other number, it should go to the phone's message inbox and not to my application.</p> <p>please help me my dears</p> <pre><code>import android.content.BroadcastReceiver; import android.content.Context; im...
2
1,302
newline not coming in mail body in Notes
<p>I am new to Notes. I am trying to send a mail from my application using Lotus Notes with an attachment,mail goes properly and attachment also goes but the problem is with the body content,the body looses its format and comes in a straight line</p> <p>i expect as follows</p> <pre><code>Dear Sir, please check the at...
2
2,271
onblur event not firing
<p>I am not sure why this is not firing and I didnt want to spend a whole lot of time working on it. Does anyone have any ideas?</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&g...
2
1,842
2 or more digit numbers with delimiters in java
<p>I have this basic program that works pretty well when entering single digit numbers. But when calculating an expression with multiple digits, like 1337 - 456 + 32, the program doesn't move on...it acts likes I did nothing. It doesn't freeze or output an error message, it just stops.</p> <p>here's the code:</p> <pre>...
2
1,300
xsl file using properties.xml file in order to transform an xml file into the xml file with custom tags defined in properties.xml file
<p>If you store the properties file in XML format, for instance</p> <pre><code>&lt;Properties&gt; &lt;Property value="abc"&gt;ABC1&lt;/Property&gt; &lt;Property value="..."&gt;...&lt;/Property&gt; &lt;/Properties&gt; </code></pre> <p>then we can use xslt to process both(properties,input) XML files and replace...
2
1,518
C# EntityFramework Core - Invalid object name, cannot update database
<ol> <li>Added MDF database to project called FxTrader.mdf</li> <li><p>Created simple Model:</p> <pre><code>public class MarketTickContext : DbContext { public DbSet&lt;MarketTickRecord&gt; Records { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { string connectionSt...
2
2,070
How to get relative path of uploaded file as variable in php (repost)
<p>How can I get the relative path to my uploaded file? For example if I upload test.png I would get /upload/test.png. Here is my HTML:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;title&gt;Jquery Ajax File Upload&lt;/title&gt; &lt;/head&gt; &lt;body...
2
1,509
Bootstrap Modal Carousel not showing previous slide on previous slide link
<p>I am using bootstrap3 and trying to display a gallery of images using Bootstrap Modal carousel. I found the below mentioned code from github. Everything works fine except the previous slide link. Its not making the slider moves backward to previus slide/image. Can anybody please help me with the issue.</p> <p>Here'...
2
1,645
Unable to locate Spring XML Schema Namespace Exception for the Spring Data JPA (only while deploying!)
<p>I have two Spring-Maven Projects. First one is for the <strong>backend</strong> (SpringDataJpa Repositories and Service Classes). It runs standalone (JUnits) without problem. </p> <p>The second one is for the <strong>frontend</strong> (SpringMVC), and this project defines the backend as a required project on the bu...
2
8,501
Drupal upgrade from 6 to 7 undefined variables
<p>When I tried to run update.php as per instructions at <a href="http://www.siteground.com/tutorials/drupal-tutorial/drupal_upgrade.htm" rel="nofollow">http://www.siteground.com/tutorials/drupal-tutorial/drupal_upgrade.htm</a> a long list of errors started appearing.</p> <blockquote> <p>Notice: Undefined variable: ...
2
1,085
How can I make this SQL script run faster?
<p>I wrote the script to do some fixing for the values in the tables. But it takes forever to finish.. actually never saw it finished.. just hanging there.. any point how to optimize it will be appreciated.</p> <p>There are 2 tables: <code>FundCorrespondencePreference</code> which can have some of the <code>IDContacts...
2
2,027
Django error 'too many values to unpack' in objects.get(id)
<p>I have url like this <a href="http://gagandeepdesk/2690/" rel="nofollow">http://gagandeepdesk/2690/</a> which I am filtering with urls.py file and sending 2690 as one of the parameters to the function.</p> <p>my urls.py filter looks like this,</p> <pre><code>url(r'^(\d+)/', 'scango.scanner.views.download'), </code...
2
1,092
How to change background at runtime on openscenegraph
<p>I try to add an 3d object on viewer and change background dynamically. I capture webcam using opencv <code>VideoCapture</code>.</p> <p>I did below steps :</p> <ol> <li><p>Open video capture and get frame</p> </li> <li><p>Create openscenegraph root</p> </li> <li><p>Add a child to root ( read from <code>.osg</code> fi...
2
1,060
Sonata admin "sonata_type_collection" tries to remove entity
<p>I have two entities and two Admin classes(StripePage and Stripe) for them. Form looks good, it has my fields and button to add new subforms. When "add new" button is clicked, new subform with form from Admin class is rendered, but if you click second time on this button or try to save entity error appears:</p> <blo...
2
1,079
Integrating OpenSeaMap into Android application
<p>I successfully integrated OpenStreetMap into my Android application using <a href="https://code.google.com/p/osmdroid/" rel="nofollow noreferrer">osmdroid</a> and decided to try my hand at using <a href="http://wiki.openseamap.org/wiki/OpenSeaMap_in_Website" rel="nofollow noreferrer">OpenSeaMap</a> as the map tile p...
2
1,066
Cross-Origin Request Blocked between Node dev server and Spring Boot application
<p>My stack is as follows:</p> <p>Backend: Spring boot(Java) exposed at :8088</p> <p>Frontend: Vue hosted on a Node development server exposed at :8080</p> <p>On the frontend, I am re-configuring <code>axios</code> in a <code>http-common.js</code> to put the baseURL to the Spring boot application, and allow connecti...
2
1,470
Quicksort with insertion sort in java
<p>Hello I have been trying to implement my quicksort algorithm with insertion sort according to how our teacher told us, but I just can't figure out exactly what to do...And my teacher's pseudo code seems doesn't seem to help me much... Anyways, I have searched online but I can't find anything. Here is the pseudo code...
2
1,709
Access-VBA check if the cursor in a Textbox is in the first or last line
<p><strong>The Goal:</strong> I've got an Access database with a continuous form and I want to add the functionality that you can go to the next or previous record by pressing the up- or down-arrow. </p> <p><strong>The Problem:</strong> I've got a multiline TextBox named <code>txtProjekt</code> and I want the database...
2
1,215
TypeError: The view function did not return a valid response. The return type must be a string, dict, tuple, Response instance, but it was a int
<p>I have encountered this error while working on my first flask web app. In this app, I am trying to get the distance between two points by using Uber H3 and the haversine formula. I am a beginner in this so any help would be appreciated.:</p> <blockquote> <p>TypeError: The view function did not return a valid respons...
2
1,597
Styling inline SVG in CSS (eg fill prop)
<p>I'm trying to style SVG image putted inline in CSS. I will use examples for better understanding the topic.</p> <p><b>Example 1.</b> <em>Inline SVG in HTML - setting color of path via CSS</em></p> <p>In this example SVG takes color of path from CSS <code>fill: currentColor;</code> property (with means <code>#67809...
2
2,125
C++ Sieve of Atkin overlooks a few prime numbers
<p>Recently I've been working on a C++ prime generator that uses the Sieve of Atkin ( <a href="http://en.wikipedia.org/wiki/Sieve_of_atkin" rel="nofollow noreferrer">http://en.wikipedia.org/wiki/Sieve_of_atkin</a> ) to generate its primes. My objective is to be able to generate any 32-bit number. I'll use it mostly f...
2
2,609
How to print output of external script to PyQt gui Window without extra "/n" characters
<p>I am trying to print the output of a called script to the window of a PyQt5 gui. I have been able to successfully use subprocess to get the script to execute the called script, but it is printing the characters "/n" between each print statement in the called script.</p> <p><strong>ex: b'stuffz\nhere is another li...
2
1,061
PHP isn't linking MySQL shared library correctly on build
<p>I'm trying to build PHP on my new computer with this configuration:</p> <pre><code>export MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" LIBS=-lresolv export DYLD_LIBRARY_PATH=/usr/local/mysql/lib ./configure --prefix=/usr/local --with-apxs2=/usr/sbin/apxs --with-ldap=/usr --with-kerber...
2
1,308
When using Session variables to control my embedded YouTube player, I receive the error: Uncaught TypeError: Cannot call method 'postMessage' of null?
<p><a href="http://mixtape.meteor.com" rel="nofollow">A link to the page where it is deployed</a></p> <p>After attempting to control using Session, the YouTube embedded player stops being responsive, and returns the error: <code>Uncaught TypeError: Cannot call method 'postMessage' of null</code>. This doesn't happen e...
2
2,016
Android google map shows blank
<p>I'm trying to implement google maps V2 but the maps is showing blank. I've edited the manifest, created xml layout and the activity but maps is showing blank.</p> <p>Here is what i did to the manifest:</p> <pre><code>&lt;permission android:name="com.biznismap.com.permission.MAPS_RECEIVE" android:pr...
2
1,422
Sending ZIP-archive with multipart/form-data POST in Android App
<p>I'm trying to post a ZIP-archive. </p> <p>I have a website, where a file can be uploaded. The file is simply picked with a file chooser. When the "upload"-button is clicked, the website reloads itself. Before the site reloads, it checks, if there was a file submitted with POST. So if a file was chosen, the file is ...
2
1,665
Can't publish the electron app from github
<p>I just created my electron-react application and also I implemented the auto-update functionality. But unexpectedly I got some weird error logs from electron-builder.</p> <p>I'm not sure how to resolve it. I tried different kinds of ways. I hope this community helps me. Thanks in advance.</p> <p>This configuration w...
2
3,178
Traefik 2 & Docker - CORS error on ElasticSearch api
<p>I use Docker &amp; Traefik to manage a ReactJS app calling an ElasticSearch API.</p> <p>Here is my elasticsearch.yml config :</p> <pre><code>cluster.name: &quot;docker-cluster&quot; network.host: 0.0.0.0 http.cors.enabled : true http.cors.allow-origin: &quot;*&quot; http.cors.allow-methods: OPTIONS, HEAD, GET, POST,...
2
1,027
Creating tables at bookmarks in a Word document through Excel VBA from dynamic controls
<p>I'm hoping someone can help me on this as I have been banging my head against this for about a week or so.</p> <p>I have a userform that creates a set of controls (3 text boxes and a combo box) and interates a counter by 1 each time the button is pressed.</p> <p>I have written an Excel VBA Macro that should open u...
2
2,984
file_get_contents('php://input') is always empty
<p>I'm trying to get the data of a POST request sent via cURL. I'm using <code>file_get_contents('php://input')</code> but it's always empty. What am I missing?</p> <h3>My script</h3> <pre><code>&lt;?php $data_string = json_encode([ "foo" =&gt; 123 ]); $ch = curl_init('http://httpbin.org/post'); # # Debugging # ...
2
1,055
How can i get token number from notify url in Laravel?
<p>I am using citruspay Payment gateway in my project, when return url hit the page </p> <p>than TokenMismatchException in VerifyCsrfToken.php line 53: error show.</p> <p>How can i match token .</p> <p>route.php</p> <pre><code>Route::POST('ideas/paymentResponse',function(){ return View::make('ideas.paymentDone...
2
1,711
Unable to get result after Inner Join 3 tables
<p>I have declare a <code>List&lt;Object[]&gt;</code> which returning list of object array, where each array represents a row in result. And index of values are based on your select statement.</p> <pre><code>productList = (List&lt;Object[]&gt;) session.createSQLQuery(" SELECT User.username, User.email, Orders.p_id, O...
2
1,510
shared preferences with getter and setter
<p>I am using <code>SharedPreferences</code> to handle session. My getter method is returning <code>null</code> which is not supposed to.</p> <p>Code :</p> <pre><code>public class SessionManager { SharedPreferences pref; SharedPreferences.Editor editor; Context _context; int PRIVATE_MODE = 0; private static final Str...
2
2,452
How to send multi POST request via CURL at same time on PHP? (over 2.000 requests)
<p>Well, i need <strong>send multiple http post request</strong>(over 2500) and get result via Curl(php or command), but i dont know whats it the best and better way to send it..</p> <p>In the query that I send, also I have to send the "javax.faces.ViewState" parameter that has about 150,000 and characters(arround of ...
2
2,746
OnResume method throws NullPointerException
<p>I am trying to add an item in the action bar, but when I click on the item from <code>MainActivity</code>, it shows a NullPointer exception. It should start that activity. I have registered that activity in my Android manifest file as well !! Here is my code.</p> <pre><code>package milind.com.bluetooth_transmission...
2
1,806
Spring MVC 4.2 - An issue with Class and Method Level Mapping
<p>I have an issue when try to access URL defined using class + method level mappings. Only method level works BUT NOT when class + method both have mappings defined.</p> <p>I meant below URL works which are on METHOD level mapping only. <a href="http://localhost:7001/SpringMVCFirstApp/hi" rel="nofollow noreferrer">ht...
2
5,501
Remove / delete row from listview under control inside each row
<p>I have listview under there are some data and in same table I have Button to delete particular row. I want to know how to remove row on which click of it's button. see below how it looks like.</p> <p><a href="https://i.stack.imgur.com/rinQM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rinQM.jp...
2
1,306
iPhone: SIGSEGV occurs seemingly randomly (ViewDidLoad, setFont, etc.) on device, never in simulator
<p>First, thanks in advance for taking the time to read through this. I have been searching for an answer to this issue for a few days but I cannot seem to find what I am looking for. I know that SIGSEGV errors (or EXEC_BAD_ACCESS faults) are usually caused by memory management issues but after hours of looking at th...
2
2,836
dropwizard-testing resouce test blows up when building ResourceTestRule
<p>I have a simple ResourceTest that I am trying to set up, however When I try to build the ResourceTestRule I get the following exception:</p> <pre><code>ProfilesResourceTest,shouldGetEmptyStuff WARN [2016-05-15 17:44:50,159] org.glassfish.jersey.internal.Errors: The following warnings have been detected: WARNIN...
2
11,222
Using objective-c blocks recursively with iOS Twitter API
<p>So I'm trying to use the built in Twitter API in iOS 5 to retrieve a list of all the followers for a given user. In all the example documentation I can find, requests are made to the API passing inline blocks to be executed when the request returns, which is fine for most of the simpler stuff, BUT when I'm trying to...
2
1,845
Is there a way to move the entire post {} build section in Jenkinsfile to the global pipeline library?
<p>I'm relatively new to Jenkins pipelines, but having implemented already a few, I've realised I need to start using jenkins shared library before I go mad.</p> <p>Have already figured out how to define some repetitive steps in the library and call them with less clutter from Jenkinsfile, but not sure if the same thi...
2
1,134
Maven runs profile executions only after the build executions
<p>Given a following maven pom.xml development profile </p> <pre><code>&lt;profiles&gt; &lt;profile&gt; &lt;id&gt;development&lt;/id&gt; &lt;build&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.liquibase&lt;/groupId&gt; &...
2
3,265
Pytorch model.train() and model.eval() behave in a weird way
<p>My model is a CNN based one with multiple BN layers and DO layers. So originally, I accidentally put model.train() outside of the loop just like the following:</p> <pre class="lang-py prettyprint-override"><code>model.train() for e in range(num_epochs): # train model model.eval() # eval model </code></p...
2
2,571
Nelmioapidocbundle won't work with symfony 5.0.2 ans annotations
<p>I try to use the nelmioapidocbundle : </p> <pre><code>namespace App\Controller; use App\Entity\User; use Lexik\Bundle\JWTAuthenticationBundle\Services\JWTTokenManagerInterface; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Resp...
2
1,133
The crosswalk build for Android failed (XDK-app-Build)
<p>I could build my app yesterday. But today I cannot and I don't know what the problem is...</p> <p><strong>The ERROR I get is</strong>:</p> <pre><code>An error occurred while building the application. Verify your build assets are correct and try again. </code></pre> <p><strong>Build Log</strong>:</p> <pre><code>T...
2
4,239
Cannot create Angular application http-server - Error: css and js files 404 Not found
<p>I want to create a PWA but the http-server package doesn't work.</p> <p>So I've created a default Angular-App with <code>ng new myProject</code> and then created the <code>dist</code>-folder with <code>ng build --prod</code></p> <p>Now all is set so I <code>cd</code> into the <code>dist</code>-folder and run the n...
2
1,114
google app engine deploy a custom vm app takes a long time to deploy
<p>Here is my worker.yaml</p> <pre><code>runtime: custom #python27 api_version: 1 threadsafe: false vm: true service: worker env_variables: PYTHON_ENV: lab network: instance_tag: testing123 name: dev handlers: - url: /.* script: Framework.Workers.PushQueues.worker.app login: admin </code></pre> <p>Dockerf...
2
1,606
Android - Binary XML file line #10: Error inflating class <unknown>
<p>I am trying to go to another activity but the app crashes with these errors. I have 2 activity:</p> <ol> <li>Acivity Chat</li> <li>FriendProfileViewActivity</li> </ol> <blockquote> <p>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mycompany.newchatapp/com.mycompany.newchatapp.Activities.Frien...
2
5,507
How do I align my qml component properly?
<p>I'm trying to write simple QML application, which will consist of many repeated elements, organized in rows. The outcome will be similar to the one presented below: <a href="https://i.stack.imgur.com/DnQ0T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DnQ0T.png" alt="enter image description here...
2
2,211
AnimeJs implementation with react doesn't work
<p><strong>I've implemented a simple Anime Js text animation into my react app; I have other other Anime Js projects which perform perfectly but I just don't see the issue with this one, and why it doesn't work.</strong></p> <p><strong>TextColourChangeLoader.js</strong></p> <pre><code>import React from 'react'; impo...
2
2,071
How can I change the output of a label, based on what's selected from a dropdown list (C# in ASP.NET)
<p>What I want to happen is to create a statement that describes the type of work the user selects in the second dropdown list (titled workList). When the user selects one of the options from the dropdown list, I want a short text description of that work to appear where the label below it is (titled lblWork). I only h...
2
3,335
constant error with bean name
<p>recently I decided to play with Spring. I did some tutorials and everything seems fine until the moment I am trying to use multiple properties files. As Internet says, it is enough to do something like </p> <pre><code>&lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt; ...
2
1,791
Polymer 1.x: How to position paper menu
<h1>Question</h1> <blockquote> <p><strong>How do I position <code>&lt;paper-menu&gt;</code> element relative to <code>&lt;paper-menu-button&gt;</code> (or <code>&lt;paper-button&gt;</code>) that controls it and expand the menu to the left upon dropdown in order to prevent contents from going off screen?</strong> (Pl...
2
1,339
How do you keep track of changes in registry using powershell?
<p>I have a ruby script that basically checks for few keys in registry that are flags for our application. The script would check if the flag was 'on'(DWORD value 1) for longer than 14 days, it will turn it off(0) and send out an email. </p> <p>To track this, what the script does is during the first run, it creates a ...
2
1,453
MVC4 & IClientValidatable - Automatic AJAX calls to server side validation
<p>I'm looking to implement custom client side validation in MVC4. I currently have it working well with the standard attributes, such as this in my model</p> <pre><code>public class UploadedFiles { [StringLength(255, ErrorMessage = "Path is too long.")] [Required(ErrorMessage = "Path cannot be empty.")] [...
2
1,090
Authenticating your client to Cloud Endpoints without a Google Account login
<p>I have been doing extensive research on how to authenticate your client (Android, iOS, web-app) with Cloud Endpoints <em>without</em> requiring your user to use their Google account login the way the <a href="https://cloud.google.com/appengine/docs/java/endpoints/auth" rel="nofollow noreferrer">documentation</a> sho...
2
3,770