title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
audiotrack: playing noise for a raw pcm 16bit wav file
<p>I am trying to play a wav file of size 230mb and 20 min whose properties are as below: </p> <pre><code>ffmpeg -i 1.wav Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s </code></pre> <p>I am learning how to use audiotrack.</p> <p>I found two solutions to play this audio play...
2
1,030
Json Web Token - jose4j - SyntaxError: Unexpected token e in JSON at position 0
<p>I have a controller which tries to get a token.</p> <p>I got this error in postman when I execute it in the view PRETTY </p> <blockquote> <p>Unexpected 'e'</p> </blockquote> <p>But if I go to the view RAW I can see the token like this.</p> <pre><code>eyJraWQiOiIxIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJJc3N1ZXIiLCJhd...
2
1,556
React Native undefined is not an object (evaluating 'this.onPressButton.bind')
<p>For so "onPress={this.onPressButton.bind(this)}" cause my application to fail?</p> <p>What can I do to fix it. I believe its something to do with (this) becoming unbinded or something?</p> <p>I have a component called Login being rendered:</p> <pre><code>export default class Login extends Component { constructor...
2
1,231
Is it possible to use JWT Bearer received from MSAL (MS identity platform) to access MS AppCenter API?
<p>I am writting Android app to call MS Appcenter API (<a href="https://openapi.appcenter.ms/" rel="nofollow noreferrer">https://openapi.appcenter.ms/</a>) and want the users of the app to login with their credential so i can not use pregenerated tokens.</p> <p>I am able to get JWT token using MSAL android library com...
2
1,246
Basemap and Fiona won't install for processing of maps & shp files in iPython Notebook
<p>I'm a relatively new student of python and am still finding my way around. I usually find answers pretty quickly via stack overflow but this one leaves me stumped</p> <p>I simply cannot get shape and map files to work with ipython notebook. I can't seem to install basemap or fiona</p> <p>Here is the command:</p> ...
2
3,289
Have button link to Symfony controller route and open a modal
<p>I have a table of entities, where each row has the contents, and buttons to both edit and delete the entity in that row. I am trying to have a button link both link to a route in my controller as well as open up a modal. However, with <code>data-toggle</code> and <code>data-target</code> present the button wont link...
2
3,565
Facebook SDK error during login attempt: No URL set
<p>I'm getting the following error message</p> <blockquote> <p>Facebook SDK returned an error: No URL set! </p> <p>Fatal error: Uncaught exception 'Facebook\Exceptions\FacebookSDKException' with message 'No URL set!' in /membri/csslab/sdk/src/Facebook/HttpClients/FacebookCurlHttpClient.php:83</p> <p...
2
1,479
How to get spec name to be used as output file name in protractor-html-reporter-2?
<p>I'm using protractor html reporter 2 for my reporting. I need to get spec name as html report output file name.</p> <p>i'm using the below code in my config file.</p> <pre><code>var today = new Date(), timeStamp = today.getMonth() + 1 + '-' + today.getDate() + '-' + today.getFullYear(); onPrepare: function () { ...
2
1,517
DOMDocument return empty data
<p>I am try to learn data scrapping from other website so I started by trying creating a small HTML file.</p> <p><strong>domhtml.php :</strong></p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; &lt;html&gt; &lt;body&gt; &lt;div id="mango"&gt; ...
2
1,386
Argument 1 passed to PHPExcel_Shared_Date::isDateTime() must be an instance of PHPExcel_Cell, double given
<p>I'm using PHPExcel for my code and I'm getting an error in this part: </p> <p>line 159 -179 :</p> <pre><code>if($extitle == $h){ $data = $objWorksheet-&gt;getCellByColumnAndRow($col, $row); if(PHPExcel_Shared_Date::isDateTime($data)){ ...
2
1,484
Manually Sorting Data in Gridview in asp.Net Webforms
<p>I am having some difficult manually sorting data on a gridview. I used a dataset and when set the AllowSort to true and also wrote the code to handle the sort based on the guide given on <a href="https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.sorting.aspx" rel="nofollow">https://msdn.mic...
2
1,184
Visual Studio 2017 Pro forgot it is installed
<p>After updating Visual Studio 2017 Pro to the latest version as of this writing (15.6.2, updated from 15.5.2) I have the strangest problem. So I can start Visual Studio perfectly fine and all, but whenever I attempt <em>any</em> operations that have to do with the Visual Studio Installer or the installation/update of...
2
1,292
Access webpage's localStorage from a Chrome extension?
<p>I have a webpage and a Chrome extension built for that webpage.</p> <p>Once the user successfully login into my website. I trigger this:</p> <pre><code> localStorage.app_isLoggedIn = true; localStorage.app_loggedInTimeStamp = new Date(); </code></pre> <p><hr> (I verify this : saves successfully)</p> <hr> <p><...
2
1,267
Implementation of MINLP solver "apopt" in Pyomo
<p>I have a mixed integer non linear problem in Pyomo with an objective function and several constraints consisting of non-linear terms and binary variables.</p> <p>The popular solver &quot;ipopt&quot; finds a solution, but it treats the binary variables as continuous variables.</p> <pre><code>opt=SolverFactory(&quot;i...
2
1,141
JSF State saving and custom components with dynamically added children
<p>I am developing a JSF custom component. This component has the purpose of encapsulating another component (namely a PrimeFaces table) and adding customized behaviour to it. For example, one of the features that it supports is creating PrimeFaces columns dynamically from the underlying data or from certain attributes...
2
5,043
correct use of linux inotify - reopen every time?
<p>I'm debugging a system load problem that a customer encounters on their production system and they've made a test application that simulates the load to reproduce the problem:</p> <p><img src="https://i.stack.imgur.com/VVr6U.png" alt="sexy graph"></p> <p>In this particular workload, one of the things the coder did...
2
1,611
How to get row position for the ListView when a button on the row pressed
<p>I have a simple list with 3 items including a button. I want to get the row number of the button. I am not able to get it work. Experts please help.</p> <p>Here is my activity</p> <pre><code>import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.Men...
2
1,948
Awk between two dates in a logfile - almost working
<p>I have a csh script which is trying to identify entries in a logfile between two dates </p> <p>(in the script they are $start_date and $end_date entered as DD/MM/YYYY but I have simplified here)</p> <pre><code>more text_B_14_FEB_03.dt | grep TMYO TMYO140043J:=TMYO140043J P33BJm SOLO 03/02/2014 TM...
2
1,995
.NET MVC unobtrusive validation / checkbox captcha
<p>I'm trying to implement a checkbox captcha I read about here: <a href="http://uxmovement.com/forms/captchas-vs-spambots-why-the-checkbox-captcha-wins/" rel="nofollow noreferrer">http://uxmovement.com/forms/captchas-vs-spambots-why-the-checkbox-captcha-wins/</a></p> <p>However I'm having issues adding the checkbox w...
2
1,044
JQuery validation is only validating the first input
<p>I have two input areas in one form to capture the main contact and then additional contacts. The main contact is working fine but the additional contacts (which all have the same input names) is only validating against the first contact.</p> <p>Html...</p> <pre><code>&lt;form action="/Book/Register" id="Registrat...
2
3,252
Fix size of the Canvas who contains a Scrollable FigureCanvasTkAgg
<p>I want to ask you if anyone can fix <code>ScrollableTkAggX</code>, </p> <p><strong>The problem</strong> is that the <code>tk.Canvas()</code> or <code>tk.Tk()</code> in the grid position always need to set the <code>gridrowconfigure</code> and <code>columnconfigure</code>, to make the widget expand and resize, in th...
2
1,744
Unable to install firebase-admin pip package for python django in Apple M1 chip
<p>Unable to install firebase-admin in Apple M1 Chip System</p> <p>System Configuration</p> <pre><code>System OS: macOS Bigsur(11.2.2) chip: Apple M1 python version: 3.9.2 Pip Version: 20.0.1 Djnago: 3.1.7 </code></pre> <p>I create virtual env for my project using below steps</p> <ol> <li><code>install virtualenv u...
2
1,638
Laravel 5.1: can't upload a video file
<p>On submitting a file I had this following error:</p> <pre><code>SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'video_ogg' cannot be null (SQL: insert into `profiles` (`about_me`, `video_ogg`, `updated_at`, `created_at`) values (lorem, , 2017-07-23 02:15:50, 2017-07-23 02:15:50)) </code></pre> <p>whi...
2
1,212
React-Redux: mapping an array of objects and initializing a component from each
<p>I have a presentational component, , which takes a <code>{props}</code> object and populates itself with the proper values.</p> <p>I also have a container component, , which is supposed to map state to props, take the array of objects representing the plots, map it and initialize a from each one.</p> <p>This is t...
2
2,340
CSS accordion menu - How to expand and hyperlink <div>
<p>I've taken a complex Accordion Menu design, and reduced the HTML and CSS to as basic and clean as possible. </p> <p><a href="http://soflorealty.com/menu/menu.html" rel="nofollow">http://soflorealty.com/menu/menu.html</a></p> <p>1) The "AAA - Expanded" menu link is expanded with a specified "height: 75px". Which me...
2
1,855
Iterate over cursor in Oracle SOA XSL transform
<p>I have a basic application, where I get Loan Products list from database and show to users. I wrote a xsl transform file, where I iterate over resultset and add each row as a Loan Product. But the final List is filled with the same objects.</p> <p>My composite.xml:</p> <p><a href="https://i.stack.imgur.com/Yz2C9.p...
2
3,468
sqlite insert or ignore always inserts on empty field
<p>I am getting multiple inserts when a field is empty despite using <code>insert or ignore</code> with a primary key. I also tried adding a unique index, just to be sure. I only want new inserts when the primary key is not equal to any existing row. </p> <p>According to <a href="https://www.sqlite.org/nulls.html" rel...
2
1,225
Waiting for AsyncTask to get data and doing something in UI thread after that
<p>I create a <code>AsyncTask</code> instance that calls a web service, gets Data and converts that to string. I want to update some picture based on the string taken from <code>AsyncTask</code>. (String includes some image URL I want to download if they aren't already exist in my app data folder)<br> My problem is: UI...
2
1,700
Serverless deploy fails due to state machine definition error
<p>I am trying to deploy a simple app using Serverless and can't get the deploy to finish. I am getting the following error:</p> <pre><code>Serverless Error --------------------------------------- ✕ State machine "checkAirtableSM" definition is invalid: [{"keyword":"additionalProperties","dataPath":".States['Chec...
2
1,916
Why is this segmentation fault inconsistent across builds?
<p>I wrote a c program, compiled it and it ran fine. After a few compiles - it started giving me a segmentation fault. I renamed the folder, recompiled and it worked again.<br> Is this something normal? To have an inconsistent segmentation fault? I change the output name, change folder names etc.. and it bounces from g...
2
1,799
unable to submit form using java URLConnection
<p>I'm trying to submit a form using JAVA URLConnection class but I keep on getting back a page with:</p> <pre><code>meta http-equiv="refresh" content="1;url=/nidp/jsp/err.jsp?sid=0?error=Required+JavaScript+support+is+not+available.&amp;cause=JavaScript+has+been+disabled+or+the+browse+does+not+support+JavaScript.+Use...
2
1,482
Automation using mshtml dll c# for webforms getelementbytagname doesnt work
<p>I am trying to automate a flow of logging in to a third party website and fetching data using C#, mshtml dll and SHDocVw.dll in webforms.</p> <p>I am able to login, Fill textboxes, click on button, navigate to new page. I am using getelementbyid method to get the details of the above controls to perform action.</p>...
2
2,216
How can I make an input readonly in a row of ng-repeat on click of a button
<p>HTML content:</p> <pre><code>&lt;!---- HTML Content ----&gt; &lt;div class="container-fluid" ng-app="myApp"&gt;&lt;br&gt; &lt;div class="row" ng-controller="mainController"&gt; &lt;div class="col-md-12"&gt; &lt;div class="panel panel-primary"&gt; &lt;div class="panel-heading...
2
2,427
Multiple column output in UDAF Spark
<p>I get some data from my mongodb that looks like this:</p> <pre><code> +------+-------+ | view | data | +------+-------+ | xx | *** | | yy | *** | | xx | *** | +------+-------+ </code></pre> <p>It's not really necessary to know what is inside.</p> <p>I wrote an UserDe...
2
1,482
BaseModelFormSet __init__() got an unexpected keyword argument
<p>I am getting the above error when I have tried to convert my inline_formset to have at least the first row required. <a href="https://stackoverflow.com/questions/2406537/django-formsets-make-first-required">(please see here for the StackOverflow question)</a></p> <p>My existing code is below:</p> <pre><code>#views...
2
1,247
Using UIImageView's with [UIImage resizableImageWithCapInsets] in a UITableView causes lag
<p>Here is the code I'm using to generate the UITableViewCell. I'm testing in iOS6/iOS7. If I remove the code about the UIImageView the UITableView scrolls just fine. But with the UIImageView it lags and spasms. I'm looking for some solution to fix the lagging. Thank you in advance.</p> <pre><code>- (UITableViewCell *...
2
1,634
Create scheduled task with administrative rights running from normal user account
<p>I am creating an scheduled task during installation of an application. The installer itself is running with administrator permissons:</p> <pre><code>SchTasks /F /create /tn "MyApp Start" /XML "D:\MyApps\start.xml" /ru "System" </code></pre> <p>This task is intended to start during system startup, which is working ...
2
1,246
Is this a good example for representing the abstract factory pattern
<p>Want to check if this a good example for representing the abstract factory pattern. Here is the theme Dell (Factory) makes xps (Product) Dell (Factory) makes inspiron (Product) hp (Factory) makes envoy (Product) hp (Factory) makes presario (Product)</p> <p>BestBuy sells computers.</p> <pre><code>//Abstract factory...
2
1,270
Node is 20x faster Than .NET Core in Connecting to Postgres
<p>I have two servers connecting to a <code>PostgresSQL 9.6</code> db hosted on Azure. The servers are doing one thing - hitting the Postgres db with a <code>SELECT 1</code> query every 5 seconds.</p> <p>Typical time to connect to db and get data:</p> <ul> <li>Node: <code>25 MS</code></li> <li>.NET Core 3.1 using Nps...
2
2,216
Disable jQuery event if Textbox is in focus
<p>I want to disable the jQuery event if a Text box is in focus. I am using following code. If a user is entering any text in text field then if by change the cursor moves to the image then it will reset the text in text field to the value shoot by event. I don't want to the event to execute if text field is in focus.<...
2
1,110
C++ passing a list of a class with elements of a subclass
<p>I am sort of a noob in C++ and I am trying to make a simplegame. This is my problem:</p> <p>I created class called sprite:</p> <pre><code>class Sprite { private: Point2D sp_pos; Point2D sp_vel; SDL_Surface* sp_img; Point2D sp_center; Point2D sp_size; double sp_radius; bool sp_animated; ...
2
1,984
Sending data to CloudWatch using the AWS-SDK
<p>I want to write data to CloudWatch using the AWS-SDK (or whatever may work).</p> <p>I see this:</p> <p><kbd> <a href="https://i.stack.imgur.com/iReg5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iReg5.png" alt="enter image description here"></a> </kbd></p> <p>The only method that looks remot...
2
1,097
Suggestions for fitting noisy exponentials with scipy curve_fit?
<p>I'm trying to fit data that would be generally modeled by something along these lines: </p> <pre><code>def fit_eq(x, a, b, c, d, e): return a*(1-np.exp(-x/b))*(c*np.exp(-x/d)) + e x = np.arange(0, 100, 0.001) y = fit_eq(x, 1, 1, -1, 10, 0) plt.plot(x, y, 'b') </code></pre> <p><a href="https://i.stack.imgur.co...
2
2,205
Kendo UI Child Grid -> Destroy Confirmation Firing Twice on Cancel
<p>I have a grid which has a child/sub Grid. It works fine, I can add and remove. However, when I attempt to run the command.destroy, should I press Cancel on the confirmation, it fires again (so I have to press Cancel again). If I choose Confirm, it doesn't popup again and does delete it on first try.</p> <p>I am uns...
2
1,344
Sum of maximum flow between every pair of vertices of a tree
<p>Given a undirected tree with <code>N</code> vertices numbered from 1 to N. Each edge tree has some capacity. Find the sum of maximum flow between all possible pair of vertices. There exist only one way to go between any two vertices.<br/> Find the sum of maximum flow between all possible pair of vertices. </p> <p>F...
2
1,260
Incrementing a counter inside a timer (System.Windows.Forms.Timer) C#
<p>I'm writing a Windows Forms application using C# which gets frequencies from user input into the device's microphone, I want to get frequencies calculated at certain intervals,</p> <p>I was hoping to achieve this by assigning the last calculated frequency to a global variable and when the timer.tick event is raised...
2
7,824
How to change item text color from a NavigationDrawer menu using styles.xml?
<p>I have a Styles.xml file describing the colors of my NavigationDrawer:</p> <pre><code> &lt;style name="NavigationDrawerStyle"&gt; &lt;item name="android:textSize"&gt;16sp&lt;/item&gt;&lt;!-- text size in menu--&gt; &lt;item name="android:textColor"&gt;#880ACE0A&lt;/item&gt; &lt;/style&gt; </cod...
2
1,446
JSON serialization with root element does not work in RestEasy/Jettison/JBossAS7
<p>I am desperately looking for a way to make JSON serialization with root element to work on JBoss AS 7.1 with RestEasy and Jettison provider enabled.</p> <p>Although, according to RestEasy documentation, returning of the JSON root element should work, I never retrieve when requesting a REST servlet.</p> <p>I use an...
2
2,310
Ways to compress GIFs in Swift?
<p>My gif generator function reduces the resolution and minimizes the frames from a series of photos, but I don't have anything to reduce the amount of colors or make it lossy. How would I go about doing this in Swift 4?</p> <pre><code> func generateGif(photos: [UIImage], filename: String) -&gt; Bool { let...
2
1,361
How can I use 'this' in defaultProps React.Component class syntax?
<p>In the past I was able to set a default prop that used <code>this</code> like so...</p> <pre><code>let MyButton = React.createClass({ getDefaultProps() { return { buttonRef: (ref) =&gt; this.button = ref }; }, </code></pre> <p>But now that I'm using JS classes <code>MyButton</co...
2
2,803
Getting import error vuejs + jest + Vuetify
<p>I am getting following import error while running unit tests</p> <p>● Test suite failed to run</p> <pre><code>/Users/aniruddha/works/awsportal_2/node_modules/vuetify/es5/components/VDivider/VDivider.js:3 import Themeable from '../../mixins/themeable'; ^^^^^^ SyntaxError: Unexpected token import at ScriptTransfo...
2
4,320
Unable to match csrf-token using ajax/json
<p>I have one login page, with a sign-in pop-up, which has username, password and a captcha. Each time when I try to post the form using ajax ( return value is json ), I will get an error like this:</p> <blockquote> <p>com.opensymphony.xwork2.ognl.OgnlValueStack - Error setting expression <code>'struts.token.name'<...
2
1,552
NullReferenceException WIA C#
<p>When I run the code below I get this error</p> <p>NullreferenceException was unhandled..</p> <p>below is my code</p> <pre><code>private void showScannerDialog() { this.scanner = null; this.imageItem = null; this.getScanner(); WIA.CommonDialog dialog = new ...
2
3,566
CSS active pseudo-class changing state swallows up onclick event
<p>I'm adapting an example found <a href="http://bytutorial.com/blogs/css/css-vertical-fly-out-menu#" rel="nofollow">here</a> to be a little more like a "real" menu in that it should collapse on user clicks.</p> <p>I rather like the fact that all of the visual aspects of the menu are dealt with in css, with javascript...
2
4,763
Doesn't get success message in Magento
<p>I have controller called IndexController.php. I am getting message when i delete record in deleteAction().But i doesn't get any message when i add or edit record in addcategoryAction.Can anyone please look at in my controller and check why i doesn't get any message in addcategoryAction. Here is my controller.</p> ...
2
1,182
How to interpret values of parameters of MIDI file analysis especially the "data" field of "midi.NoteOnEvent"?
<p>I am trying to analyse MIDI files using a toolkit <code>python-midi</code> for <code>python</code> (<a href="https://github.com/vishnubob/python-midi" rel="nofollow">link to the repo</a>).</p> <p>Basically, <strong>my question is about the interpretation of the data</strong> I just extracted. </p> <p>Here is the d...
2
1,063
EntityManagerFactory must not be null after migrate to hibernate 5.2.6 in spring boot
<p>I using Hibernate in my Spring boot App after migrate from Hibernate 5.0.11 to 5.2.6.Final .i get EntityManagerFactory must not be null exception this is my codes </p> <p>My Hibernate Configuration</p> <pre><code>@Configuration @EnableTransactionManagement public class DatabaseConfiguration { @Bean publi...
2
1,499
SparkException: Values to assemble cannot be null after adding vector column
<p>Spark 2.1 (standalone) on Windows. Unable to save spark dataframe to parquet file after adding VectorAssembler column. No problems to save dataframe before vector column, all "features" is not null (NVL used)</p> <pre><code> val conf = new SparkConf().setAppName("RandomForestModelML").setMaster("local") val spar...
2
3,538
How to deserialize a nested JSON object as a String with Gson, Retrofit, Active Android
<p>I am using a ActiveAndroid to cache response from Retrofit network calls.</p> <p>I made a class which looks like :-</p> <pre><code>class Article extends Model { @Column(name = "title") @SerializedName("title") @Expose public String title; @Column(name = "authors") @SerializedName("authors"...
2
1,063
Golang map len() reports > 0 when map is empty
<p><strong>Short story:</strong></p> <p>I'm having an issue where a map that previously had data but should now be empty is reporting a <code>len()</code> of > 0 even though it appears to be empty, and I have no idea why.</p> <p><strong>Longer story:</strong></p> <p>I need to process a number of <em>devices</em> at ...
2
4,669
Android Beacon Library - BLE beacons detecting is not working
<p>I am trying to detecting beacons with <a href="http://altbeacon.github.io/android-beacon-library/index.html" rel="nofollow">Android Beacon Library</a> in Android. I created a service which is running in background and detecting beacons.</p> <p>The problem is that app is not detecting beacons when bluetooth is turne...
2
1,437
Kendo Grid resizable is not working in IE
<p>I am using Kendo Grid to show the records.Below is my sample Html Page where i want to achieve the result for re-sizable in IE only. I have modified the code for Sample purpose only in Html. Resizable in Chrome is working.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;base href="http://demo...
2
4,333
Navigating to a <div data-role="page"> without using anchor tag
<p>I have two div tags in single HTML with data-role as 'page'. First one is a form which contains a table with two columns say A and B and a button.The second page contains a text box and dropdown and sublit button. On clicking of button in first page jquery should call web-service and should navigate to second div in...
2
2,500
access denied 403 symfony2
<p>I have a problem with the authentication on my webapp. When the user log on the app, have this error:</p> <pre><code>Access Denied 403 Forbidden - AccessDeniedHttpException 1 linked Exception: AccessDeniedException » </code></pre> <p>The user has the problem when log in with the role <code>ROLE_BASIC_INSTALLER</co...
2
1,034
Tomcat/IntelliJ run fails
<p>Using Intellij and Tomcat7, I am trying to run my the <code>war exploded</code> application,but I am encountering errors.</p> <p>The same application compiled using ANT (outside of Intelij) works fine, with no errors..</p> <p>It fails with the following log:</p> <pre><code>"C:\Program Files\Java\jdk1.7.0_07\bin\j...
2
2,456
How to find the intersection point of a ray and a triangle?
<p>I find the trilinear coordinates of the coordinate of the point of intersection through the barycentric coordinates. Barycentric coordinates are correct (seemingly).</p> <pre><code> private const double Epsilon = 0.000001d; public static Vector3? GetPointIntersectionRayAndTriangle(Vector3 rayOrigin, Vector3...
2
1,376
How to INSERT new row and UPDATE old row value?
<p>I want to insert a new row to <em>table</em> with my PHP form input values</p> <p><code>$_POST['bill_amount']</code>, <code>$_POST['paid_amount']</code> and <code>$_POST['due_amount']</code> </p> <p>as well as update the <em>due_amount</em> column of the second last row with value "0".</p> <p>Afterwards, I'd lik...
2
1,871
Submit value of a checkbox via jquery/ajax to php and insert into db
<p>I tried to find help via the search function on here but all the answers given to similar problems were too elaborate for me to understand, i.e. the example code was too complex for me to extract the parts which could have been relevant for my problem :(</p> <p>I have a html form which sends userinput on a specific...
2
1,480
d3 Axis Ticks Not Updating
<p>I have taken the example from <a href="http://bl.ocks.org/mbostock/3883245" rel="nofollow">here</a> and I am modifying it slightly so that the graph is drawn when the page loads and the line is drawn when a user selects a file from a jsTree. That is all working fine and the data is plotted correctly. But, the tick m...
2
1,025
Android EXIF data Image from Camera or Gallery lost
<p>I need to read some <code>Exif</code> properties of an <code>Image</code> (taken with the <code>Camera</code> or picked from the <code>Gallery</code>).</p> <p>Here is how I launch the <code>Camera</code>:</p> <pre><code>Intent intent = new Intent("android.media.action.IMAGE_CAPTURE"); File file = new File(myOb...
2
1,033
Send more data than what can be stored in send buffer
<p>I am using C# sockets to implement my own basic RTSP server (for learning purposes). I am currently in the process of writing the logic for the server to perform the handshake with the client when negotiating media ports on a DESCRIBE request.</p> <p>The client application was not written by me and I have no acces...
2
3,723
doctrine2 queryBuilder must return only result matching with array values (ids): 0/Null and/or One and/or Many id(s) have to return One result
<p>I have an array of collection named <code>$configurations</code>. This array matches of my Entity <code>Configuration.php</code> connected to <code>Product.php</code> as a <code>ManyToMany</code>. Now I have another entity named <code>WorkType.php</code> which is connected too to <code>Configuration.php</code> by a ...
2
1,087
Bazel with Java 11 on Ubuntu
<p>I am trying to use Java 11 for my Java Homework. It works fine on my OS X machine, but I have JDK 13 installed on my machine. My instructor uses Ubuntu and does not have the latest java installed. How Can I get Bazel to use JAVA 11 without requiring my instructor to update his JDK.</p> <p>My .bazelrc is as follows:...
2
1,490
Showing null pointer exception in setting the value in model class
<p>Here goes my Activity class where there is a log which indicates that there is some value in selectedcategory String. But showing me exception when i am setting the value in my model class</p> <h1>Activity Class</h1> <pre><code>private ListView list; private MenuItem myActionMenuItem; private EditText myAc...
2
5,297
Get Checkbox to toggle div based on only the string inside a checkbox's label - jQuery
<p>I'm trying to create a script to hide divs based on just the label of a "checked" checkbox. And do it without having to use a specific value, id or attribute. I was previously shown how to <a href="https://stackoverflow.com/questions/23583040/jquery-use-the-text-of-an-element-to-toggle-another-element-that-contains-...
2
1,407
Android - Adding a button to each row in the listview
<p>For some reason I am unable to view the button that I have included in the row.xml file for the list view.</p> <p>This is the main.xml that I am using</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientatio...
2
1,062
jquery element is not a function
<p>Hi I have followed the example to get this carousel working <a href="http://kenwheeler.github.io/slick/" rel="nofollow">carousel link</a></p> <p>It works fine in Internet Explorer however when I run it in firefox I get the error TypeError: $(...).slick is not a function</p> <p>I keep looking and can't see any diff...
2
2,048
Creating a function using yield instead of return to generate frames from an http stream continuously
<p>I would like to create a function that reads frames from an HTTP stream using <a href="http://docs.python-requests.org/en/master/" rel="nofollow noreferrer">requests</a> and returns each frame. But because of the fact that the stream reader is based on an iterator object (if I understand correctly), returning a fram...
2
1,129
Is there a way to sort by pubdate in descending order
<p>i read my rss.xml file out in a php file. Now i want to sort the rss feed in descending pubdate order. Is this possible</p> <pre><code>&lt;?php $rss = simplexml_load_file('../../rssfeed.xml'); echo '&lt;h1&gt;'. $rss-&gt;channel-&gt;title . '&lt;/h1&gt;'; foreach ($rss-&gt;channel-&gt;item as $item) { echo '&lt;...
2
4,193
Error in configuring jhipster project : I am having existing jhipster project which includes maven, hibernate, spring-boot
<p>When I am running command "mvn clean install" build failed. Error caused by :<br> Results :</p> <blockquote> <p>Caused by: org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat</p> <p>Caused by: org.springframework.beans.factory.BeanCreationException...
2
1,508
Prevent GridView from resizing when clicking on The LinkButton
<p>How can i prevent my grid from resizing when clicking on the edit link button? i just need my gridview to be fixed..</p> <p>note that when you click on the edit linkbutton 2 buttons appear : 1 for the update and 1 for the cancel and in the other cells textboxes appear to update the values that's why my grid is resi...
2
3,187
Custom emoji in discord.py (on_reaction_add) not working
<p>I'm sorry for my english, i'm french :P</p> <p>I'm doing a discord bot in python (i'm a beginner in python) and i'm doing it step by step. Right now, I want the bot react when user click on an emoji. I used 3 custom emojii, it's not working :(</p> <p>For the test, i tried with a :slight_smile: and it works perfectly...
2
1,056
Notification after Form Submit
<p>I have a form that feeds fields into a website. But i would like to send a separate email, once my form has been submitted, to notify the client that a lead has been submitted.</p> <p>This form collects customer information and is fed to a website where all the client information is stored. That part of the form wo...
2
1,406
Problems using start-dfs.sh
<p>I have used this link to create a 4 node cluster: <a href="https://blog.insightdatascience.com/spinning-up-a-free-hadoop-cluster-step-by-step-c406d56bae42" rel="nofollow noreferrer">https://blog.insightdatascience.com/spinning-up-a-free-hadoop-cluster-step-by-step-c406d56bae42</a>, but once I reach the part to start...
2
1,257
HttpClient hangs on GetAsync when making many web requests to localhost
<p>I'm having the below issue when calling <code>api/Values/Test?times={x}</code>. The issue doesn't occur when <code>x</code> is 1, 2, ..., but the web request times out when it reaches 9, 10, and so on. As you can see, the <code>Test</code> endpoint will make a web request to <code>EndPoint</code> <code>x</code> time...
2
1,952
how to get valid fb access_token using php curl?
<p>I am working on a project which require an access token of the user using curl. The user will enter his username and password. he will be logged in to facebook using curl. The login part works. I also gets a token that has the pipline in it like: xxxxxxx|xxxxxxxxxxxxxxxxx, but i want an access token to post to the ...
2
1,308
image file attachment on email not sent properly through PHP
<p>I'm using the <code>mail()</code> function to test sending emails with image file attachments to myself. The problem with the script is that when I look at the email, I see a long wall of random numbers, letters, and symbols where an image is supposed to be. </p> <p>Please don't recommend PHPmailer or manually putt...
2
1,731
ASP.Net Get HTML cell value for code behind by clicking
<p>I'm not a professional in C# and ASP.Net so please have some patience with me.</p> <p>I have the following problem.</p> <p>I'm using ASP.Net WebForm API with C# for creating a dashboard. </p> <p>I have a generic HTML table (taken out from a sql query) which will be displayed. Now I want to implement the feature, ...
2
1,862
wp_nav_menu() not adding .menu-item and similar classes?
<p>According to the Codex at <a href="http://codex.wordpress.org/wp_nav_menu" rel="nofollow">http://codex.wordpress.org/wp_nav_menu</a>, </p> <p>the following classes <strong>should be applied to &lt;li&gt; menu-item elements generated by wp_nav_menu():</strong></p> <ul> <li>.menu-item (all &lt;li&gt;'s )</li> <li>....
2
1,326
How can I turn a SimpleXML object to array, then shuffle?
<p><strong>Crux of my problem:</strong> I've got an <a href="http://gdata.youtube.com/feeds/api/videos?q=skadaddlemedia&amp;max-results=20&amp;orderby=published&amp;prettyprint=true" rel="nofollow noreferrer">XML file</a> that returns 20 results. Within these results are all the elements I need to get. Now, I need to r...
2
1,563
Invalid Cast Exception: Unable to cast object of type '__DynamicallyInvokableAttribute' to type 'BugFixApplication.DeBugInfo'
<p>I tried to type cast Attribute variable to DeBugInfo type. </p> <p>Here's the code in Main function in class ExecuteRectangle:</p> <pre><code>class ExecuteRectangle { static void Main(string[] args) { Rectangle r = new Rectangle(4.5, 7.5); r.Display(); Type type = typeof(Rectangle);...
2
1,995
Decrypt in Golang what was encrypted in Java (without iv)
<p>Wenn I try to decrypt a string, encrypted in Java I get an error: <em>"cipher: message authentication failed"</em>. </p> <p>Does java <em>inputOffset</em> from <em>AESCipher.engineDoFinal(byte[] input, int inputOffset, int inputLen)</em> meens the same as the Go <em>nonceSize</em> in my code?</p> <p>And is "<em>Ne...
2
1,067
How to avoid cairo drawing xlib surface from flickering?
<p>I'm doing some programming with <strong>cairo</strong> and <strong>xlib</strong> in <strong>C++</strong>, my code is listed below.</p> <p>I had some flickering issues but by modifying my code, it seems works good now generally.<br> But when the window is resized at a <strong>small size</strong> (about 600x450 on my...
2
2,385
500 internal server error in rails with ajax
<p>I am trying to make a text box that displays a list of sorted users that sorts per every typed letter. From there the person can add the user as a collaborator. The result should be kind of like facebook's search feature when you are searching to add new friends. When I press a key I see a new 500 internal server er...
2
1,047
How to manage and selectively stop a published subscription from Meteor server side code
<p>I'm developing a competitive turn based game. When an anonymous visitor visits a page, he is automatically subscribing to a non-full instance of the game he can then either just observe or join the action. There are limited number of spots in each game instance. When joining the game (taking up a spot), the old subs...
2
1,039
How to group clases in CSS - Tailwind
<p>I am trying to group clases so the code will be cleaner and legible. In the <a href="https://v2.tailwindcss.com/docs/functions-and-directives#apply" rel="nofollow noreferrer">documentation</a> of Tailwind it talks about &quot;@apply&quot;, that can be used for this objective but I am using the CDN and therefore this...
2
1,348
Entity Framework Code First Fluent API configuration for one to one identifying relationship
<p>I have the following class structure:</p> <p><img src="https://i.stack.imgur.com/KyQs8.png" alt="enter image description here"></p> <p>How to configure Fluent API to put identifying relationship in Cards table? </p> <p>I mean </p> <ul> <li>Cards Table PK: Id, CustomerId</li> <li>Cards Table FK: CustomerId</li> <...
2
1,637
How to convert list of group-by objects into html unordered list in Java?
<p>I have list of grouped objects into a ArrayList and I want to display it as a html unordered list into a jsp. Please see attached image for the description.<img src="https://i.stack.imgur.com/itdqK.png" alt="Click here for image"></p> <p>So far I have created a java POJO class as per below:</p> <pre><code>public c...
2
3,356
Replace specific value in pandas dataframe column, else convert column to numeric
<p>Given the following pandas dataframe</p> <pre><code>+----+------------------+-------------------------------------+--------------------------------+ | | AgeAt_X | AgeAt_Y | AgeAt_Z | |----+------------------+-------------------------------------+-------...
2
2,358
caching image and load them
<p>I downloaded images and cached them into my cache folder by using Fedora's lazylist but now, instead of displaying them into a listview. I need to make use of a viewpager + touchimageview. I have already found the example but have no idea how to load them into the AndroidTouchGallery. Can someone give me pointers?</...
2
2,898