title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to determine that other app lose the audio focus so that i can start my player
<p>I have seen many Android Player online that as soon it start playing other app loses the focus and stop playing. </p> <p>At other hand, as soon the gained focused app stop playing, focus Loosed app start playing again.</p> <p>can any one suggest what am i missing here to achieve the same in my app? I want as soon ...
1
1,061
How use sqlite + fdbm library with threading on the iPhone
<p>Related to <a href="https://stackoverflow.com/questions/1082554/">this SO question</a>, I want to put the data loading in the background.</p> <p>However, I get 'library routine called out of sequence' errors.</p> <p>In <a href="https://stackoverflow.com/questions/745565/how-to-properly-call-sqlite-functions-from-b...
1
1,402
lodash filter by property array of array
<p>I have array of users who have a property array 'rights' and I want to filter out the users who have specific rights. I would like to filter by an array so if I wanted all the users with full rights ['full'] or users with both full and edit ['full','edit']. I am fairly new to using lodash and I think I can chain so...
1
1,183
App crashed when R8 enabled with existing proguard settings
<p>I got a <code>RuntimeException</code> on the release build when R8 enabled together with the existing proguard configuration. Checked <a href="https://stackoverflow.com/questions/51948250/failure-to-verify-dex-file-out-of-order-annotation-element-name-idx">"Failure to verify dex file Out-of-order annotation_element ...
1
1,973
Custom Taxonomy and tax_query Issue?
<p>I am working on Plugin development and my plugin name is <code>plugindev</code>.I have a custom post type called <code>team</code>.I have a custom taxonomy <code>Team_Category</code> which is being registered by this code</p> <pre><code>/***************************taxonomy****************************/ add_action( '...
1
1,379
how to read .txt file which contains string to an array in laravel
<p>I would like to read .txt file contains string and convert it to an array, for better display i copy my string in .txt here.</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-html lang-html prettyprint-override"><...
1
2,289
WPF Hide items with trigger in treeview
<p>I've got a <code>TreeView</code>, in which I use a <code>HierarchicalDataTemplate</code>. With this, I color my different items (all of the same type). </p> <p>With a click on a <code>CheckBox</code> in the Page, I want to hide some of the items (with a certain Property). I've tested many code, but nothing works pr...
1
1,391
FindName returning null
<p>I'm writing a simple tic tac toe game for school. The assignment is in C++, but the teacher has given me permission to use C# and WPF as a challenge. I've gotten all the game logic finished and the form mostly complete, but I've run into a wall. I'm currently using a <code>Label</code> to indicate who's turn it is, ...
1
1,125
calling servlet on submiting formpanel in gwt
<p>I am trying to call a servlet when submitting the FormPanel in GWT.I am setting the url on form.setAction("myurl") and also done mapping on the web.xml but while on the form suvmit the servlet is not called.Here is the code:</p> <pre><code>public class MainEntryPoint implements EntryPoint { public void onModuleL...
1
2,282
C++ input operator overload ">>"
<p>I have a rational number class is made up of two integers: <code>num</code>, the nominator, and <code>den</code>, the denominator.</p> <p>The following operator is supposed to read the rational number from a stream.</p> <pre><code>istream&amp; operator &gt;&gt; (istream&amp; Is, rational&amp; r) { char c; //Test...
1
1,108
Where to save text file to be able to read it into Android project
<p>I have looked around to find out where to save general text files for reading into my Android project, but couldn't find a definite answer. When I save my "foo.txt" file into my res/raw folder as someone suggested (I had to create the raw folder) the R.java file gets error for these lines:</p> <pre><code>public sta...
1
2,148
mark-disabled ng-bootstrap not working with other datepickers examples
<p>I am trying to use the range selection and the global configuration from the ng-bootstrap datepicker <a href="https://ng-bootstrap.github.io/#/components/datepicker/examples" rel="nofollow noreferrer">example</a>. But the config.mark-disabled doesn't seem to apply in my code: It's almost only code from the examples...
1
1,960
How to get location using Fused Location Provider in android using Network?
<p>I have been trying to get location (lat/lon) using Fused Location Api in andriod. My code works fine when both wifi and gps are on. If I turn off the gps then i don't get any location update.<br> <br> I am using BALANCED_POWER_ACCURACY for location request. I have added Access_FINE_Location permission in manifest an...
1
1,133
File written by json.dump() not readable by json.load()
<p>I'm creating a setup script for my Python project. The script reads build configurations from a json file like so:</p> <pre><code>with open('setup.conf','r') as configfile: config = json.load(configfile) </code></pre> <p>which works perfectly. Later in the script, I constrain myself to a part of that object an...
1
1,030
Cannot retrieve id of selected row using button in each row of mat-table of angular 7
<p>I have mat-table component from angular material. I populate it and i want to retrieve id of selected row. In each row I placed a button with which i want get that id. Below i put image of it <a href="https://i.stack.imgur.com/hVQ0X.png" rel="nofollow noreferrer">image of mat-table</a>. In column "Id" I print real I...
1
1,483
How do i check if a proxy is active
<p>i have a list of proxies and i am trying to check which of them are active. What i was doing so far was to connect through curl to every single one of them and see if they responded, but i am looking for something faster and similar to what <a href="http://www.ip-adress.com/Proxy_Checker/" rel="nofollow">http://www....
1
4,549
How to test async method in Vuejs's component when using jest and avoriaz
<p>For instance, I have a component looks like this.</p> <pre><code>&lt;template&gt; &lt;div id="app"&gt; &lt;button class="my-btn" @click="increment"&gt;{{ val }}&lt;/button&gt; &lt;/div&gt; &lt;/template&gt; &lt;script&gt; export default { data() { return { val: 1, }; }, methods: { increme...
1
2,029
React-Native-Could not resolve all files for configuration ':classpath'. Could not find com.android.tools.build:gradle:3.4.1
<p>I tried <a href="https://stackoverflow.com/questions/50384733/react-native-could-not-resolve-all-dependencies-for-configuration-classpath">this solution on StackOverflow</a> but didn't work.</p> <p>I am using Ubuntu 18.04 LTS, Android-Studio-3, Java-1.8, Gradle-3.4.1.</p> <p><a href="https://github.com/ganesh-desh...
1
2,396
NoSuchMethodError: registerAutoProxyCreatorIfNecessary with Spring 4, Hibernate 4 and Maven 3
<p>I tried to configure Hibernate and Spring but I can't resolve this error: <code>java.lang.NoSuchMethodError: org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary</code>.</p> <p>I tried some solutions without success. I need you're help!</p> <p>I followed this tutorial: <a href="http...
1
7,003
Django Rest Framework User Registrations with extra fields
<p>I'm trying to use DRF to allow users to create a new user account via my API. I have a few requirements that might be different than the norm </p> <ol> <li>On successful creation it needs to return a user token using DRF's token feature</li> <li>All POST'd fields need to be validated</li> <li>I want to be able to P...
1
3,174
How to serialize and deserialize objects that contains HashMaps and Pairs using GSON
<p>I have this Hashmap <code>Map&lt;Pair&lt;String,String&gt;,Map&lt;String,String&gt;&gt; pathData = new HashMap&lt;&gt;();</code> as an attribute of other object (Tour_Object) and i'm trying to serialize/deserialize it in json using GSON library.</p> <pre><code>public static String setTourToJson(Tour_Object tourObje...
1
1,511
Inner shadow in UITextField with rounded corners
<p>I want to implement this <code>UITextField</code> design: </p> <p><a href="https://i.stack.imgur.com/9qjpU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9qjpU.png" alt="enter image description here"></a></p> <p>In Zeplin here is the properties of the shadow:</p> <p><a href="https://i.stack.im...
1
1,044
Dynamic Google Apps Script Array Construction failure
<p>Essentially I am looking through a previously created two dimensional array and wanting to output every value that matches a specific case in another two dimensional array.</p> <pre><code>function FruitsToEat() { var fruits = [ ["Name", "TastesGood?", "ShouldEat?"], ["Apple", true, true]...
1
1,606
HTML5 Canvas slow on Chrome, but fast on FireFox
<p>I'm testing Chrome 15.0.874.106m on a dual-core 2.8 GHz Pentium Windows 7 system with 4 GB RAM (and a highly accelerated video card with lots of memory) and I'm testing FireFox 7.0.1 on a single-core 1.6 GHz Athalon Windows Vista Laptop with 2 GB RAM. Yet the FireFox system is outperforming the Chrome system by abo...
1
5,086
Error: need ‘typename’ before iterator
<p>Hey guys i have this code:</p> <pre><code>#include&lt;iostream&gt; #include&lt;string&gt; #include&lt;list&gt; #include&lt;vector&gt; template&lt;class T&gt; class ListLib { public: ListLib(std::list&lt;T&gt;&amp; listItem) { *listT = listItem; } std::vector&lt;T&gt; convertToVector() { ...
1
2,827
OpenAM: Error processing AuthnRequest. null
<p>When trying to init an SSO via OpenAM, I get the following error:</p> <pre><code>HTTP Status 400 - Error processing AuthnRequest. null The request sent by the client was syntactically incorrect (Error processing AuthnRequest. null). </code></pre> <p>The logs are linking to the method <code>AMKeyProvider.getPrivate...
1
1,324
How to solve system of (non-linear) equations using Jacobian and Newton's Method in Matlab
<p>I am trying to build a function that can solve a system of n-1 (non-linear) equations with n unknowns in Matlab making use of Newton's method.</p> <p>I did some research online and came to the following procedure:</p> <p>Use matlab's 'null' function applied to an array of first partial derivatives (Jacobian) to ob...
1
1,183
CountDownTimer in Kotlin explanation
<p>I am very very new to Kotlin and as well as Java. I have search around the web and found tutorials about using CountDownTimer in Kotlin but i still do not understand. I am trying to create an android app with a page that whenever you open it, it counts down for 60 sec to 0.</p> <p>Below is what I have done, Was try...
1
1,075
Extract link and text if certain strings are found - BeautifulSoup
<p>I'm trying to run beautifulSoup to extract links and text from a website (I have permission)</p> <p>I run the following code to get the links and the text: </p> <pre><code>import requests from bs4 import BeautifulSoup url = "http://implementconsultinggroup.com/career/#/6257" r = requests.get(url) soup = Beautif...
1
1,248
Maven 3 site descriptor issue : deploying artifact not working or site not building
<p>I've migrated to maven 3.0.3 but I'm not able to build the maven site. In fact my project use an external parent pom that doesn't provide any site descriptor as artifact.</p> <p>1- Is there a way to generate the maven site even if the parent doesn't provide a site.xml ? I can't make it work. "mvn site" command stil...
1
1,857
how to store and fetch data from array using localStorage in javascript
<p>What i need</p> <ul> <li>i need to store all data in array.</li> <li><p>and then fetch data .</p> <pre><code>refrence link </code></pre> <ol> <li><p><a href="https://stackoverflow.com/questions/3357553/how-to-store-an-array-in-localstorage">How do I store an array in localStorage?</a>.</p></li> <li><p><a href="h...
1
1,607
Why there is a delay in detecting a file change using WatchService? (Java)
<p>I've an application in which when a file is added to the directory, WatchService detects the file and the file is added to a file list for further processing. This is my code</p> <pre><code> public void run() { /* * Goes in an infinite loop */ while(!finished) { /* * Get a watch key...
1
1,538
gSoap: HTTP Header, Content-Length: 0
<p>I am attempting to use gSoap in a c++ client to access the salesforce.com API using the below code:</p> <pre><code>struct soap soap; soap_init(&amp;soap); _ns1__login loginReq; _ns1__loginResponse loginRes; loginReq.username = "XXXX"; loginReq.password = "XXXX"; if(soap_call___ns1__login(&amp;soap,NULL,NULL,&am...
1
1,233
Origin header value not allowed. Even though URL is allowed
<p>I've looked at other questions on the site similar to this and despite doing those resolutions, my issue remains the same.</p> <p>Side note, I also tried <code>setHeader(clientOrigin)</code></p> <p>I am using Spring Boot v1.2.7.RELEASE and The Spring Console is what is telling me that Origin Header Value not allow...
1
1,597
in memory amqp for dev and testing
<p>I am using rabbit in my services, but for restrictions I cant download on local. For that I want to use in memory broker and figured qpic can work. I have below configuration and in logs I can see qpid broker starts fine but when spring boot tries to send message it cant connect.</p> <pre><code> @Bean Broker ...
1
5,105
Insert or update on table "django_admin_log" violates foreign key constraint when saving new model in admin
<p>When saving a new instance of a model in the admin, I get the following IntegrityError in a traceback:</p> <pre><code>Traceback: File "/venv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 149. response = self.process_exception_by_middleware(e, request) File "/users...
1
1,344
AAPT: error: resource android:attr/android:progressBarStyleSmall not found
<p>C:\Users\Admin.gradle\caches\transforms-2\files-2.1\9f39f95ecc02dcabb161a6205cd680b4\jetified-magicretry-1.0.6\res\layout-v11\magicretry_fragment.xml:121: AAPT: error: resource android:attr/android:progressBarStyleSmall not found.</p> <p>I am using PayuMoney payment gateway SDK I am getting this error after migrati...
1
1,060
Grails project - Servlet call - ClassNotFoundException: javax.servlet.AsyncContext
<p>I am using</p> <ul> <li>intellij idea ultimate 12..4</li> <li>grails 2.2.0 , </li> <li>grails.servlet.version = "2.5" in BuildConfig.groovy file</li> </ul> <p>and implemented simple servlet post request. Using RESTClient for post request i found these scenariol</p> <p>Scenario:</p> <ul> <li><p>When i use locally...
1
1,744
I can't get Trix Editor to show properly in Bootstrap theme
<p>I am trying to setup ActionText for the first time on my <code>Article</code> model.</p> <p>This is how my <code>Article</code> model looks:</p> <pre><code>class Article &lt; ApplicationRecord has_rich_text :body end </code></pre> <p>I set up ActionText like so:</p> <pre><code>rails action_text:install </code>...
1
2,047
Python/Excel: How to freeze the top line of a generated sheet (or sheets)
<p>This isn't actually a question -- it's more of an FYI. It took me a while to figure this out, since my searching with Google turned up bits and pieces (including some related questions here on StackOverflow), but no article or blurb gave me the whole answer all in one place. I was finally able to figure it out by ...
1
1,042
DAX Cumulative Total With Date Filters
<p>I am trying to calculate a running total where orders are only valid during a certain date range. Each order has a value, a start date and an end date. I want to calculate the cumulative sum of the order's values only during the dates between an order's start date and end date. </p> <p>I've read over <a href="ht...
1
1,377
System.InvalidCastException: Unable to cast object of type x to type y
<p>I have a custom messaging system which I am trying to convert so it can support plugins.</p> <p>The system has producers and consumers. Both must specify the type of message they produce or consume.</p> <p>For consumers the Interface to be implemented is </p> <pre><code>IConsumer&lt;AMessage&gt; </code></pre> <p...
1
1,303
Could not get audio input stream from input stream
<p>I want to get the sound file at the URL provided in the code and play it (It is in <code>mp3</code> format). I looked through some Stack Overflow questions related to this problem, and they all said to get <code>mp3plugin.jar</code> so I did.</p> <p>In Eclipse, I added it as an external jar (as it is located inside...
1
1,173
.NET consume SAP web service
<p>I'm trying to figure out how to consume a SAP webservice. I have a .WSDL file which looks for certain info in SAP. </p> <p><strong>My .WSDL file:</strong></p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;wsdl:definitions name="Customer_Out" targetNamespace="..." xmlns:p1="...." xmlns:wsp="http://sch...
1
6,755
java.util.zip.ZipException: invalid block type
<p>When java spring boot application jar is trying to push to cloud(cloudfoundry). getting following exception.</p> <pre><code>Caused by: java.util.ServiceConfigurationError: org.springframework.cloud.CloudConnector: Error reading configuration file at java.util.ServiceLoader.fail(ServiceLoader.java:232) at ja...
1
1,292
Datatables showing two search boxes and pagination data
<p>I am trying to integrate datatables into my project. One of my tables has a button to add additional rows. I used the method shown <a href="http://www.datatables.net/forums/discussion/8485/add-row-of-inputs-to-match-datatypes/p1" rel="noreferrer">here</a>. After adding a row and submitting the results, I end up w...
1
9,607
Populating one select menu based on another select menu using AJAX in Struts2
<p>I'm trying to use AJAX at very first time in Struts2. Therefore, I do not have precise idea about it.</p> <p>There are two <code>&lt;s:select&gt;</code>s, one holds a list of countries which is loaded on page load and another holds a list of states that corresponds to the country selected from the country menu.</p>...
1
2,625
How to solve the java.lang.ArrayIndexOutOfBoundsException: 1 >= 0 error in my java program?
<p>I got an error in my Java program. I think this happens because of the constructor is not intialized properly.</p> <p>My Base class Program</p> <pre><code>public class Hello { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application...
1
10,367
Building a cross compile of binutils on OS X Yosemite
<p>I'm trying to build binutils for generating MIPS code on Mac OS X. </p> <p>I found this site (<a href="http://www.theairportwiki.com/index.php/Building_a_cross_compile_of_GCC_for_MIPS_on_OS_X" rel="nofollow noreferrer">http://www.theairportwiki.com/index.php/Building_a_cross_compile_of_GCC_for_MIPS_on_OS_X</a>) fro...
1
1,060
WAMP Server 3+ - Putting server online with public ip address
<p>I have been scouring the web for atleast 2 hours and trying suggested fixes but to no avail, this is my last resort:</p> <p>I have managed to get my server working on localhost, my local 192. ip address and when trying to access via my public ip address (151.225..) I am getting forbidden messages, my port forwardin...
1
6,813
How to delete a particular line in xml file based on the condition using python?
<p>I have a problem and looking for a solution.</p> <p>I want to delete the line but based on the condition. for example the xml file is </p> <pre><code>&lt;app&gt; . . &lt;process&gt; &lt;tag&gt;any tag&lt;/tag&gt; &lt;trigger order="1" name="activity1" perform="y"&gt; &lt;external&gt; ...
1
1,376
MS Access Top 5 Query multiple criteria grouped by month and area
<p>I would like to use the top 5 to capture the top 5 for a number of criteria.</p> <p>The data style is month date, area1, subarea1, sub areas2 etc etc, type, unique identifier for each row.</p> <p>What I'm trying to do is for each month and for area find the top 5 types.</p> <p>Sample Data:</p> <pre><code> Date ...
1
1,542
How do I pass a 2D array in C++ to a Fortran subroutine?
<p>I am writing a small C++ program which passes a 2-D array (of complex numbers) to a Fortran subroutine and receives it back filled with values. I wrote a version which passes and receives a 1-D array, and this works well. The 2-D version doesn't work (my true goal is to write a 4-D version with large dimensions - so...
1
1,612
Publish to Azure doesn't update files in App_Data
<p>My ASP.Net Core app has an App_Data folder located under the project root:</p> <p><a href="https://i.stack.imgur.com/W20P8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W20P8.jpg" alt="Folders"></a></p> <p>(As I recall -- I may be mistaken -- I had to manually create that folder in the project...
1
1,751
How to get user email address using FBSDK in swift iOS for iPhone?
<p>I'm a self-learning fresher developing iPhone app using swift. I'm designing a login page for Facebook authentication using FBSDK. I have successfully implemented the login button that logs in and logs out. It returns the username and id, but it fails to graph user email id and shows a code 2500 error. Also I can't ...
1
1,899
PHP Laravel recursive function with nested array
<p>I am using <code>Laravel 4</code> with <code>MySQL</code> back-end. </p> <p>I want to store records of a <code>nested array</code> into database using <code>recursive function</code>. </p> <p>The input array is as below : </p> <pre><code>Array ( [0] =&gt; Array ( 'id' =&gt; 561, 'type' =&g...
1
2,582
Unit testing random numbers java
<p>My goal is to test whether a class sets one of its attributes to a random integer value. I found an algorithm for a chi square test online and decided to put it to use. I'm quite surprised by the result: the larger I make my sample size, the less likely the test seems to be to pass. I should say that I'm by no means...
1
1,470
Getting undefined method `values_at' for nil:NilClass using nested_form_for
<p>I'm using nested_form gem from ryanb and it doesn't seem to be working properly. The remove link doesn't work (I installed the //= require jquery_nested_form properly and it looks like it's loading but i keep getting this error:</p> <pre><code>undefined method `values_at' for nil:NilClass </code></pre> <p>when i g...
1
2,016
Could not find com.google.firebase:firebase-ml-vision
<p>When I added flutter_camera_ml_vision to an existing project, I got the following error.</p> <pre><code>Execution failed for task ':app:checkDebugAarMetadata'. &gt; Could not resolve all files for configuration ':app:debugRuntimeClasspath'. &gt; Could not find com.google.firebase:firebase-ml-visi...
1
2,338
Marker with label does not appear
<p>I want to attach labels to my markers, using the markerwithlabel.js package (<a href="http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.1.9/" rel="nofollow">http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.1.9/</a>). I put the package link in the document ...
1
2,090
Moving Emails to Public Folder using Dynamic Paths
<p>In our Corporate environment we have a Mailbox (not the default inbox) with many sub folders. We also have a Public Folder which is an exact mirror of the Mailbox folder structure.</p> <p>I am trying to detect the path of a selected email and move that email to its mirrored folder in the Public Folders.</p> <p>I w...
1
1,334
C# Crystal Report Warnings The report you requested requires further information
<p>I use C#.NET (WebApp) VS 2008 SP1</p> <p>I want click next page from crystal report v.10.5.3700 (Framework 3.5) but it's show input data to next page</p> <p><strong>The report you requested requires further information Server name:<br> Database name:<br> User name:<br> Password:</strong> </p> <pre><code>using...
1
1,518
In WPF, why does my Style in Generic.xaml not get applied to my Custom Control?
<p>In WPF, I have a custom control that inherits from TreeView. The code is as follows...</p> <pre><code>public class CustomTRV : TreeView { static CustomTRV() { //Removed this because I want the default TreeView look. //......CustomTRV.DefaultStyleKeyProperty.OverrideMetadata(typeof(CustomTRV)...
1
1,165
LINQ query to find Date difference?
<p>I am having date details which is in format <strong>(dd/mm/yyyy)</strong> like,</p> <p>Table #1</p> <pre><code>id Name date User -------------------------------- 1 xxx 01/01/2016 user1 2 yyy 01/02/2016 user2 3 aaa 02/03/2016 user1 </code></pre> <p>Table #2</p> <pre><code>id Name ...
1
1,030
“Undefined symbols for architecture x86_64” Xcode
<p>It's my first time with Xcode V11.3.1</p> <p>I'm trying to compiling Buildbox 3 project on Xcode and i got error list, 36 error all starts with the following:</p> <pre><code>Undefined symbol: </code></pre> <p>and this message</p> <pre><code>Undefined symbols for architecture x86_64: "PTAdInvoker::rewardedVideo...
1
2,745
How to get the data in User Model class from firebase flutter
<p>I am creating app using <code>Firebase</code>.</p> <p>My <code>Users.dart</code> file:</p> <pre><code> class Users{ final String id; final String profileName; final String userName; final String url; final String email; final String bio; Users({ this.id, this.profileName, this.userName, ...
1
3,594
Jquery datatable pagination
<p>In the below code ,the html loads up and will call group_map set python function.My question is that there is pagination enabled in the system so if a user in page 3 deletes a entry the page reloads and brings back to page 1.How to make the user stay on the same page after deleting an entry</p> <p>Datatable used i...
1
2,724
How to update single row in PHP?
<p>I have 2 buttons, approve and reject to update booking status. I am lost when trying to pass value to approve_booking.php. Have no idea how to update single row according to bookingID. Need help on coding!!!</p> <p>index.php</p> <pre><code>&lt;head&gt; &lt;script src="jquery-latest.js" type="text/javascript"&gt;&l...
1
1,396
Highcharts : How to apply style to x-axis Labels?
<pre><code>[HighchartsImageContent_Text_Overlapping][1] [1]: http://i.stack.imgur.com/dUiUI.png I am using highcharts version 3.0.1 and jquery_min.js version 1.9.1 I would like to acheive, 1) 5px of padding on each side of the tick marks 2) content should wrap up to 3 lines, and then have an ellipses 3) if there ...
1
1,524
Possible Unhandled Promise Rejection (id:0) : ReferenceError: Can't find variable TextInputEmail
<p><a href="https://i.stack.imgur.com/DGmCX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DGmCX.png" alt="enter image description here"></a></p> <pre><code>import React,{Component} from 'react'; import {View,Text,Image,ImageBackground, TextInput,TouchableOpacity,AsyncStorage, Acti...
1
2,158
SSLEngine: Invalid TLS padding data when unwrapping after a successful handshake
<p>I am using non-blocking socketChannel and SSLEngine an ssl server. So after a successfull handshake, i read the socket ( 184 bytes /384 bytes are being read in the first time), and then i pass this buffer to unwrap method. The unwrap method throw the following exception :</p> <pre><code>javax.net.ssl.SSLHandshakeEx...
1
3,377
avformat_find_stream_info not filling out the nb_streams and streams
<p>Hi this is the first time I haven't been able to find my question already answered so this is the first time I post something here.</p> <p>I have this codesniplet that is my attempt to follow the few tutorials I have found on getting some basic libav functionality (working my way to extracting video frames).</p> <...
1
1,333
java Peer to Peer using UDP socket
<p>I am having a simple Peer to Peer program written in java. I have the following code.</p> <pre><code>import java.net.*; import java.io.*; public class Broadcasts { private final Runnable receiver; private final Runnable sender; private boolean run = true; public Broadcasts(UDPSocketHandler parent) throws Unkn...
1
1,642
php mailer add confirmation email to inputted address and form submit
<p>I'm really trying to keep both functionality -- <strong>form fields filled out > form submit > goes to web masters email address</strong> with the information.</p> <p><strong>I'm failing to add a second functionality; I would like the user to be sent a custom confirmation message after form submit</strong> <em>(all...
1
2,791
itextshart Font size too small: 0 error
<p>I am trying to create a pdf file from the html content. Yet, there is a matter that prevent it this is <strong>Font size too small: 0</strong> error when ı click the button in hw.Parse(new StringReader(HTML)); line. </p> <p>please help me how can ı solve this matter.</p> <pre><code>using System; using Syste...
1
10,649
Getting NullPointerException trying to access "response" in JSP
<p>In a JSP page, when the user logs out, I'm deleting their login cookies using this code:</p> <pre><code>Cookie killMyCookie = new Cookie("cookie1", null); killMyCookie.setMaxAge(0); killMyCookie.setPath("/JSPLearn"); response.addCookie(killMyCookie); killMyCookie = new Cookie("cookie2", null); killMyCookie.setMaxAg...
1
1,162
Robolectric+Eclipse Can't find resources?
<p>I just configured a test project for my Android app to use Robolectric. I followed the <a href="http://pivotal.github.com/robolectric/eclipse-quick-start.html">Eclipse Quick Start</a>. An exception is raised executing my simple very first test.</p> <pre><code>java.lang.RuntimeException: java.lang.NullPointerExcepti...
1
1,278
Implementing a depth-first tree iterator in Python
<p>I'm trying to implement an iterator class for not-necessarily-binary trees in Python. After the iterator is constructed with a tree's root node, its <code>next()</code> function can be called repeatedly to traverse the tree in depth-first order (e.g., <a href="http://en.wikipedia.org/wiki/Depth-first_search#mediavie...
1
1,065
Unable to determine the principal end of the relationship on saving Order - EF6
<p>I am adding EF6 and trying to recreate the model of my legacy db. I am also making a WCF web service. There are way too many fields, so I've minimized the example to better pinpoint the problem.</p> <p>I am trying to enter some data into the database for an Order. The Order includes OrderLines and each OrderLine ca...
1
1,194
invalid according to policy policy condition failed starts-with $content-type ""
<p>I am trying to upload photo using fineuploader 3.8.2 on Sony Xperia Tipo or HTC Evo 3d with android 4.0 and facing a strange issue. While uploading through camera works, uploading through gallery is not working and giving me invalid according to policy policy condition failed starts-with $content-type "" error</p> ...
1
1,327
Uncaught ReferenceError: $ is not defined JSF Primefaces (h:head included)
<p>I have a simple JSF page displaying a text editor from primefaces (<a href="https://www.primefaces.org/showcase/ui/input/textEditor.xhtml" rel="nofollow noreferrer">Showcase</a>). <br/>However, the text editor is not displayed. When I inspect it (F12 in chrome), I see multiple errors, the first one is:</p> <pre><co...
1
1,385
Maven Shade Plugin + Launch4j
<p>I have two maven projects inside the same folder. One is dependent upon other i.e. has the other one it its dependencies. Now I would like to use maven shade plugin and launch4j but it seems to complicated to me.</p> <p>Can somebody give me a step by step explanation for my case?</p> <p>So I have 2 POM files, one ...
1
1,596
how to add no of weeks to jquery ui datepicker?
<p>This is my jsp page and in that i am using date picker but instead of range from two date picker i just want to use week .if i have select start date and then i have to write no of weeks and then how can i calculate the end date on basis of that no of weeks and start date? i m new in this jquery so any one can help ...
1
16,984
Interaction plot with confidence intervals
<p>I want to draw an interaction plot with confidence intervals for an assignement that is due tomorrow. This is my dataset:</p> <pre><code>Snail0 water lightness total_migration control dark 9.5 control dark 20 control dark 22 control dark 24 control dark 10 control dar...
1
2,112
ImportError: No module named boto3 on AWS EC2 instance
<p>I am running my AWS EC2 instance and when I try to run my web app, MyCoolApp.py I get the following error:</p> <pre><code>Traceback (most recent call last): File "MyCoolApp.py", line 9, in &lt;module&gt; import boto3 ImportError: No module named boto3 </code></pre> <p>This is after I try to start my applica...
1
1,152
JavaFX Application freeze some seconds when load many images although of loading them in background Thread
<p>i made a class as a loader for loading images in background Thread , to add them inside the JavaFX Application , </p> <p>my problem is , although of this class works as a Task , but it cause the JavaFX Apllication freeze during images loading , and work back again normally after it finish,</p> <p>The Loader Class ...
1
1,662
Spring integration tests issue: could not initialize proxy - no Session through reference chain:
<p>I am trying to test a controller method and I have an issue that probably has to do with lazy loading and I am therefore trying to set up a open entity manager in view filter for my tests.</p> <p><strong>Setup method:</strong></p> <pre><code>@Before public void setup() { mockMvc = MockMvcBuilders.webAppContext...
1
1,087
TypeError: $(...) not a function
<p>I've used jQuery to create a page where users can click on a cell in a table that says, "delete," and it will send an ajax request to delete that entry from a database based on the id of the cell and then it will alter the CSS to hide the cell.</p> <p>I created a test page while I was creating/tweaking the jQuery c...
1
2,064
maximum recursion error Python
<p>I am trying to scrape some box scores from ESPN.com and put them in Pandas DataFrame. I have done similar things in the past in the same manner with out any problems. However in this case I am getting this error when I try to save the DataFrame. </p> <p><em>RuntimeError: maximum recursion depth exceeded while cal...
1
1,183
Why does my NLOPT optimization error/fail to solve?
<p>I'm stumped. I have a problem formulated for NLOPT in R. The current problem solves for 180 variables with 28 equality constraints</p> <p>The code is re-used from a simpler version of the problem, earlier in my script, with 36 variables and 20 equality constraints that solves instantly using <code>NLOPT_LD_SLSQP</c...
1
16,389
SpringMVC, Shiro, and Java Configuration
<p>I am trying to use Shiro 1.2.2 with my SpringMVC 3.2.3 I have seen several examples of how to configure Shiro using ini files. But we are using JavaConfig and I have only found one partial example on that. I have several @Configuration files:</p> <pre><code>public class EdmWebInitializer implements WebApplicati...
1
6,299
git - made a push to the wrong repository, how to remove?
<p>Edit: Regarding <strong>This question may already have an answer here:</strong>, note that the title of that question refers to undoing a commit, not a push. I don't think SO should be reinforcing the frequent confusion between the two within git. Also is a question with 22 different answers going to be the best ref...
1
1,284
Can't connect to the MySql
<p>I'm trying to connect to MySQL server, but appear errors I can't handle.</p> <blockquote> <p>java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)...
1
2,006
Problems sending SOAP auth Headers in php
<p>I am very new to SOAP (i.e. no clue!)</p> <p>I have been asked by a client to interact with an existing SOAP service that requires authentication done through my SOAP headers ( a simple username and password ) </p> <p>I have 3 methods at my disposal,</p> <p>IsAlive IsAliveSecure ChangeUserDetails</p> <p>IsAlive ...
1
1,187
Numpy TypeError: an integer is required
<p>This will be maybe quite personal question but I don't know who to ask I hope somebody can help and don't skip me THANKS!. I have installed python using Anaconda and using Jupyter notebook. I have 2 csv files of data. </p> <pre><code>products.head() ID_FUPID FUPID 0 1 674563 1 2 674597 2 ...
1
2,087
Android Spinner Footer
<p>Is there a way to add a footer inside a spinner drop down list? For instance, say I am populating a spinner from a database, but I want a selection at the bottom of the list regardless of how I arrange the list. The list might be "Database Item 1, 2.., 3..." and at the bottom of the list a footer choice of "Add Item...
1
1,585
How to create Spring Bean (DataSource) with parameter?
<p>Colleagues, i am new in Spring 4. I have a class which call procedure:</p> <pre><code>public class ProductDAOImpl implements ProductDAO { public Product getProductUsingProc(int PassID, int Amount) { SqlParameterSource sqlParameterSource = new MapSqlParameterSource().addValue("PassID", PassID).addValu...
1
4,249
"LoadError -dlopen..." while pod install in Mac M1
<p>I have Mac M1 and am getting following error while using <code>pod install</code> to build flutter project in iOS. I have already installed home brew, uninstall/install cocoapods using <code>sudo arch -x86_64 gem install cocoapods</code>, but still error occurs. What can I do for solving this probrem..?</p> <pre><co...
1
1,124
Style or customize Picker in Sencha Touch Architect
<p>How can I customize a Sencha Touch picker completely?</p> <p><a href="http://docs.sencha.com/touch/2-0/#!/api/Ext.picker.Picker" rel="nofollow">Here is what the default picker looks like.</a></p> <p>I've managed to customize the frame, center, and buttons but I can't find anything to allow me to customize that blu...
1
1,884
Too many mq connections for a server connection channel which are not created by queue
<p>As per our configuration, we have WAS version is 8.5.5.11, IBM MQ version 7.5.0.3. We are using 2 channels to connect to WMQ, one with MAXINST set to 250 and one with 500. SHARECNV is set to 10 for both. Now we have an upper limit of making maximum 2000 connections in a queue manager but we end up crossing that limi...
1
1,900