title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Unable to update current location FusedLocationClient
<p>I am using fused location provider for fetching current location and update my marker to my current location via that. I am giving app permission and then it does nothing after that. Though i have written code for that to fetch and update location on map. I have previously given Access_COARSE_LOCATION as well, but n...
3
2,381
Optimizing code (Conway's Game of Life)
<p>I just made this console version of the Conway's Game of Life. It works well for "small" grids, 100 x 100 pixels for example, but is terribly slow for bigger ones. Can you help me to optimize it, so it can run faster?</p> <pre><code>#define _WIN32_WINNT 0x0500 #include &lt;windows.h&gt; #include &lt;iostream&gt; #i...
3
1,571
How do I compute a^b mod p for very large a, b and p?
<p>So I have to perform the following calculation in python using the following values:</p> <pre><code>g^response mod p == (commitment)*(public_key_k)^c mod p response = 1798504909811498641585788989097480059610472466605727419221908325725492625454059229439555828626804680183806468816373215601063565006206068675156743699...
3
1,978
Bootstrap4 header stuck in mobile display
<p>I'm trying to create the header in the bootstrap 4 (beta) navbar component. the navbar is stuck in mobile with the hamburgers to show the menu under a dropdowns... but I am on a desktop, so i want it to show as a normal nav bar at top of the page</p> <p><a href="https://v4-alpha.getbootstrap.com/components/navbar/"...
3
1,386
C#: Why did the design team decide against syntax allowing whitespace in identifiers?
<p>In Visual Basic you can have the following syntax:</p> <pre><code>Dim [My variable with spaces] [My variable with spaces] = 9000 </code></pre> <p>In SQL Server: (I realize this is unrelated to C# but just using as example of syntax)</p> <pre><code>create table [My Table With Spaces]( [My Column With Spaces] varch...
3
1,076
Xamarin Forms Carousel View lost selected values (Survey Sample)
<p>I use Xamarin Forms v2.3.1.114 and I want to create a survey page in my app.</p> <p>My basic class is this : </p> <pre><code>public class Question { public string Title { get; set; } public List&lt;string&gt; Answers { get; set; } } </code></pre> <p>My sample code is this :</p> <pre><code>ObservableColle...
3
1,728
jqGrid export to excel issue when loadonce option is setted to false
<p>I have an ASP.net MVC solution and use jqGrid in it. To have a better performance I use <code>loadonce: false</code> as an option and it should be in this way, unfortunately It seems to be not supported by jqGrid because I cannot find any sign of that throughout my search.</p> <pre><code>$(document).ready(function ...
3
1,917
Azure Cache intermittent response times from WCF REST service
<p>I'm building an EF6 web app in Azure and I'm using Azure Cache. I'm testing calls to my WCF service and I'm getting wildly erratic response times - between 300ms and 15sec!</p> <p>I configured my code according to the <a href="http://azure.microsoft.com/en-us/documentation/articles/cache-dotnet-how-to-use-service/#...
3
2,798
Calculate Proration Cost in Stripe using Elixir
<p>I am trying to calculate proration cost in Stripe using Elixir. I am using Stripity_Stripe library <a href="https://github.com/code-corps/stripity_stripe/tree/2.0-alpha" rel="nofollow noreferrer">https://github.com/code-corps/stripity_stripe/tree/2.0-alpha</a></p> <p>Here is what I did.</p> <ol> <li>Get a current...
3
4,283
Can't open any file with emacs-live configuration on OSX
<p>I saw the <code>emacs-live</code> demo by Sam Aaron with overtone. I went to the GitHub repository, got his <code>.emacs.d</code> setup and replaced my setup with it by deleting an existing <code>.emacs</code> file.</p> <p>Everything seems good, I have most of the <code>emacs-live</code> features but I can't seem t...
3
2,514
Traefik v2.2 on Digital Ocean Kubernetes, wildcard domain certificate works, but not with port number
<p>I am adding Traefik support for our Digital Ocean Kubernetes cluster, have used dnsChallenge to successfully get a wildcard SSL domain certificate from LetsEncrypt.</p> <p>When I try to access sites with the same domain name, everything works well:</p> <pre><code>$ curl -v https://user.example.io * Trying 159.203....
3
3,123
Woocommerce Custom Role Redirects to Shop Landing Page
<p>Hey guys I created a very simple 'order_manager' role that should only be able to view and edit orders. The code is as follows:</p> <pre><code>// Add a custom Order Manager add_role( 'order_manager', __( 'Order Manager' ), array( 'read_shop_order' =&gt; true, 'edit_shop_order' =&g...
3
2,568
Why is an object's destructor not called when an exception is thrown from its constructor?
<p>Can anyone explain me why the output of the below snippet is :<br></p> <blockquote> <pre><code>MyClass constructor catch block </code></pre> </blockquote> <p>Why is the destructor of object <code>m</code> not been called as the scope of it is within try block?<br> When it comes to catch block with <code>throw 0;</...
3
1,511
Error "reactRouter is undefined" when using script from CDN
<p>I am trying to use ReactRouterDOM in a plain-vanilla HTML + JSX page, using a CDN to retrieve the various React dependencies, as shown in the code below.</p> <p>When the JSX code ...</p> <pre><code> &lt;BrowserRouter&gt; &lt;Routes&gt; &lt;Route path=&quot;/&quot; element={&lt;Home /&gt;...
3
1,100
Javascript error when writing out html instead of dynamically creating element
<p>I have a javascript function that runs fine onclick when the td element is added via javascript. The remove button works fine. But when I create the element with php and click remove, I get:</p> <pre><code>SyntaxError: syntax error var header = document.getElementById( </code></pre> <p>Even though the counter is w...
3
1,073
Issues loading data from an iterator into a Django Model
<p>I have a webscraper that delivers dictionary objects of data to be entered into the Django model. I've written a simple script to test loading data. It operates by iterating through the dictionary object and delivering each key value into the appropriate model field (the keys share their names with the respective ...
3
2,081
type 'Null' is not a subtype of type 'String' of 'function result' when update the provider model
<p>Provider version and dart</p> <pre><code>provider: ^6.0.1 sdk: &quot;&gt;=2.12.0 &lt;3.0.0&quot; </code></pre> <p>I have two screens.</p> <p>Screen A - I have a form. when you tap on the textbox it will open a Screen B Full screen Modal.</p> <p>Screen B - you will choose an item from the list in and return back to S...
3
1,188
How to normalize a json file to pandas dataframe?
<p>I have a json file like as shown below. I already tried the solutions from this <a href="https://stackoverflow.com/questions/27240982/valueerror-when-using-pandas-read-json">post</a>,<a href="https://www.gitmemory.com/issue/iphysresearch/TOP250movie_douban/2/487555405" rel="nofollow noreferrer">post</a></p> <pre><co...
3
8,361
Multipart upload with request parameters and headers (Alamofire)
<p>I'm trying to upload a photo on the server and I have to set the request headers and parameters.</p> <p>In postman the request looks like image below: <a href="https://i.stack.imgur.com/p5746.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p5746.png" alt="enter image description here"></a></p> <...
3
1,256
I want to replace Normal Join in Informatica by Cross join in SQL by running a query in source qualifier?
<p>Normal join in informatica has been done using Dummy fields added in table dev and remote. Columns in dev table are database_region,site_cd, dev_nm, dev_locn_id, dev_typ, bond_ind , FRM_ID, AP_ID ,DUMMY_DEV and Columns of remote are node_id and DUMMY_REMOTE. We are creating a cross join using condition DUMMY_DEV = D...
3
1,127
PLINQ inside task sometime slower
<p>I'm working on some text parser logic and have IO and CPU bound operations. In general what I do: read file -> process text, read file 2 -> process text 2... and so on. <br/></p> <p>What I can do is to make operations "process text" and "read file 2" executing at the same time in different tasks. However when I cre...
3
1,422
Data from geoJSON API call in Larvel 5.8
<p>I am trying to retrieve data from the weather.gov API - it returns the format in geoJSON and I am not sure how to actually get the data I want from it. If I am using the weatherbit.io API, I have no issues as it returns JSON format in which I can pull from rather easily. I am using GuzzleHTTP to make the API call.<...
3
1,476
How do I create a while loop that will continue to run as long as the user inputs the proper tag/code at the end of each loop?
<p>I'm decently new to programming, and I'm taking an introductory course at my high school right now. One of the assignments we're working on right now is a program that asks the user what formula they would like to calculate (various area/volume/etc types of formulas), asks them for the data needed to make the calcul...
3
1,823
Hosting Bootstrap/Jquery/HTML5Shiv locally breaks site in IE8
<p>I have a site that I built using bootstrap and it worked just fine in <strong>IE8</strong>. Then I decided that in order to make my site load a little faster, i was going to stop bulling the various <code>.js</code> and <code>.css</code> files for <code>bootstrap/jquery/html5shiv/etc</code> from other servers and h...
3
1,342
WPF Listbox border on right side blurry
<p>I have a WPF application with a listbox showing some data. When i have the listbox in the center of the window and the window is an uneven width, on the right side the listbox is blurry. (Green is Rectangle, the blue part is a textbox) <a href="https://i.stack.imgur.com/P2OV8.png" rel="nofollow noreferrer"><img src=...
3
1,218
Saving Files from Assets folder to device storage working only the first time! Android studio
<p>I developing an Android app on Android Studio. I added a few files on Assets folder and my goal is the user through a button press to save them on his device. I managed to find a way to do that but I have a problem!</p> <p>After the first installation the app runs perfectly! When I uninstalled it and reinstalled it ...
3
1,368
Dropzone in div instead of entire form
<p>I am following this guide to integrate dropzone into a form and submit my form with it</p> <p><a href="https://github.com/enyo/dropzone/wiki/Combine-normal-form-with-Dropzone" rel="nofollow noreferrer">https://github.com/enyo/dropzone/wiki/Combine-normal-form-with-Dropzone</a></p> <p>However, this is what I end up...
3
2,331
Forest Plot Design questions
<p>I am creating a forest plot with the forestplot() function.</p> <p>The forest plot looks like this: <a href="https://i.stack.imgur.com/r4AZb.png" rel="nofollow noreferrer">Forest Plot</a></p> <pre><code> ## Labels defining subgroups are a little indented! subgps &lt;- c(4,5,8,9,12,13,16,17,20,21,24,25,28,29,32,33...
3
1,704
Unable to download file from private window wkwebview
<p>I am trying to download file from private window using wkwebview unfortunately unable to download the file. this is the response which i am getting.</p> <pre><code>-[DownloadHandler saveDirectoryPathForResponse:][L:124]response &lt;NSHTTPURLResponse: 0x600000434c20&gt; { URL: https://osxDev.slack.com/?redir=%2Ffile...
3
1,840
Navigation Works Once, But Then Does Nothing
<p>I'm trying to code a navigation bar with four elements. If the element is currently selected it will have a "red" background image, if it is one of the other 3, it will have a "black" background image. my four tabs are 'timetable, homework, notifications and sport' I tried making 8 functions like the 2 below</p> <...
3
1,129
ERROR : appengine-maven-plugin:1.3.2:run failed: Non zero exit: 1
<p>I have recently picked up a former employee's unfinished java appengine project. I have been trying to launch the app since this morning but i don't seem to be able to figure out what the problem is. I'm using java 8. I did an mvn clean package through terminal and then ran another appengine maven build and got thi...
3
13,222
Custom Angualr JS / Material / Datatables app - Required script load order dependent of page
<p>Below are my top two declarations on above closing body tag.</p> <p>This order produces correct results on a page a material dropdown. But, I need to swap order of the two script tags to make it work with my datatables page, which is a separate page from this page. If I dont swap before page request, one page wor...
3
1,891
Can not make containers communicate despite being in the same network
<p>Hello i am trying to make a <code>.NET Core</code>server communicate with a <code>Redis</code> database.The server works well outside of the container.<br>The containers are set up.I can access the database using the host-port mapping .<br>However when i am doing an operation that requires the server to call the dat...
3
1,509
Searchbox on a static page
<p>I have a page which contains FAQ.</p> <p>The idea is to implement a search box which has the look &amp; feel of the one shown on <a href="http://fontawesome.io/icons/" rel="nofollow noreferrer">Font awesome Icons</a></p> <p>With a bit of online help I've been able to produce the following code:</p> <pre><code>&lt...
3
1,438
Error when i click on a category
<p>I'm building an e-commerce website. I have a model with two class(Category and Product), I recently added pagination to my list_view and its working on my products but when I click on the category class, I get an error.</p> <pre><code> from django.shortcuts import render, get_object_or_404 from .models import Cate...
3
1,248
Breeze executeQuery fails randomly
<p>We are using Breeze.js for the client side data management. However I see random errors from the breeze.executeQuery on different call. Not sure what is wrong.</p> <p>Following is the error I receive (again it works most of the time and fails randomly)</p> <pre><code> at createHttpError (https://secure...
3
1,656
Implementing a Streaming Cloud Dataflow transformation that calls an API for each element in the stream
<p><strong>Use Case</strong>: I have a Google Cloud Dataflow pipeline that processes a stream coming from PubSub. One of the transformations in the pipeline needs to read from a file that kas key value pairs. The size of the file is 130.5 MB. The file works as a lookup file where one column works as they key for the lo...
3
2,054
Regular expression only finding first match
<p>I'm working on something that is similar to other designs I've done, but for some reason, it's only finding the first key/value pair, whereas other ones found all of them. It looks good in regex101.com, which is where I typically test these.</p> <p>I'm parsing c++ code to get what I need for a reference spreadsheet...
3
1,508
MySQL Conditional For Which Join to use
<p>On a query, is it possible to conditionally choose which join to use? On the query below, <code>m.bodyNo</code> is sometimes empty with the join bringing up the data using <code>m.chassisNo</code> instead and I would like it to show results for whichever one has the values.</p> <pre><code>SELECT m.`seriesYear`, m.`b...
3
1,465
MongoDB - NodeJS - Mongoose Slow Query Array
<p>I have a question about Mongo and NodeJS currently in one project that i am working on have some issues with the performance. It does work but has a mix of ideas as far as i see. I would like to see some ideas from a more experience person.</p> <p>I will share the flow with you and the used libs and tools on the wa...
3
2,214
Script push from C# to Php not working on application
<p>Okay I am using Unity To create my application and MSSQL for the database in between them both i have a PHP Exchange server.</p> <p>So basically I am having a problem with this piece of code</p> <pre><code>using UnityEngine; using System.Collections; public class NewSession : MonoBehaviour { string userLoginF...
3
1,106
flutter dart language code get current location of user and extract last firebase location and calculate remaining time and distance draw poly lines
<p>i already make a flutter dart language through which i update my location to firebase i want make one more dart funtion on mymap.dart file which get current location of user and extract last firebase location and calculate remaining time and distance in widget and on map draw poly lines thanks Here is my complete co...
3
3,638
How to use a variable/function from a class instance in a differrent class with kivy?
<p>first, I'm new here, so don't hesitate to correct me if I act innapropriatly !</p> <p>I'm making a sudo turn based RPG combat to train with kivy tools and I've come in contact with a big problem, I'm having a lot of troubles making a kivy classe use variables and function from another kivy class instance, for some c...
3
8,821
How to Hide (or Show) child drop-down (dynamic html) in jquery?
<p>Here create a dynamic table row when clicking on + button add a new row and click on - button remove row design like this,</p> <p><a href="https://i.stack.imgur.com/zDAhM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zDAhM.png" alt="enter image description here"></a></p> <p>Here subject drop-d...
3
2,213
Query on nested type with aggregation on nested types returns unexpected results
<p>We are using elasticsearch 5.6.4. As mentioned in the ES <a href="https://www.elastic.co/guide/en/elasticsearch/guide/current/_filtering_queries_and_aggregations.html" rel="nofollow noreferrer">documentation</a>, </p> <blockquote> <p>aggregation operates in the context of the query scope, any filter applied to ...
3
2,054
How to define a path for Tiles configurer?
<p>My Spring application can not start because the path of the tiles.xml file that was working fine until now can not be reached. I can deploy it locally, but when I create a .war to upload it to the server it gives me the error.</p> <p>Can anybody tell how much path should I define not to crash on this error when I a...
3
3,138
Json not deserelizing properly
<p>I need to connect to a certain API, so i am using their API documentation to generate the API calling client and models so i can use their API. However, one of their calls seems to be giving me an error. When calling that certain API endpoint, <strong>the response looks like this</strong>:</p> <pre><code> { "...
3
1,427
SDL_SetPaletteColors crashes program
<p>The program is supposed take pixel data from a uni dimensional array and display it. The pixel data is supposed to be 1 byte per pixel, which is supposed to result in a gray scale image.</p> <p>The result is supposed to look like this:</p> <p><img src="https://i.stack.imgur.com/vDYr2.jpg" alt="GRADIENT PATTERN"> ...
3
1,517
Stacked Column Annotations Google Charts
<p>While creating a stacked column chart using google charts, the annotations are getting overlapped due to large amount data. Is there anyway to get it adjusted. Like displaying only for every 3rd column. I know this concept works fine with highcharts but I was looking for free charts.</p> <p><a href="https://i.stack...
3
1,160
JQGrid DynamicLink doesn't work
<p>I am trying to add a clickable text to a column in JQGrid, hence I added dynamicLink formatter to the column, the text disappears once I use this formatter attribute. When using Link attribute, the column's data is visible. Initially i had not added the dynamicLink.js jqgrid plugin. But even after adding the depende...
3
2,334
Bulk update with datanucleus errors out
<p>I'm trying to use the JDOQL bulk update in datanucleus, but I get the following exception,</p> <p>12/08/13 13:06:56 INFO DataNucleus.Persistence: Property datanucleus.cache.level2 unknown - will be ignored 12/08/13 13:06:56 INFO DataNucleus.Persistence: ================= Persistence Configuration =============== 12...
3
1,212
XML not found in android module
<p>I am configuring my android application for <a href="https://developer.android.com/guide/playcore/feature-delivery/on-demand" rel="nofollow noreferrer">on demand delivery</a>. The app uses <a href="https://developer.android.com/guide/topics/admin/device-admin" rel="nofollow noreferrer">Device Administrator API</a> w...
3
1,517
Why the `T* operator->()` is applied repeatedly even if written once?
<p>Why the <code>T* operator-&gt;()</code> is applied repeatedly even if written once? But another <code>T&amp; operator*()</code> is applied once, and should be written many times.</p> <p>As known there is Execute-Around Pointer Idiom in C++. <a href="https://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Execute-Around_P...
3
2,354
how to edit a textfield values in reactjs
<p>Here i add my sample code.i have a static values getting from state now i want to change this values </p> <pre><code>render() { console.log(this.props.selectedVal); var name, gender, city = ""; this.props.data.map((row, index) =&gt; { // console.log(index); if (this.p...
3
1,365
BufferStrategy and Graphics g
<p>I have a sprite sheet that I want to use in a src folder within the project. Here is some code I have for a simple game I am making. I get an error when trying to draw anything with the paintbrush or (g). Can you help me figure out what is wrong? </p> <p>I have a pre-existing background that I want to draw the imag...
3
1,541
Cannot access the nested formGroup's value
<p>I am creating nested formGroup fields. The following is my html</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"><code>&lt;form [formGroup]="userProfileForm" (ngSubmit)="bookU...
3
1,421
TensorFlow: How does tf.set_shape change the channel information of grayscale images?
<p>If I have a grayscale image that undergoes a preprocessing that has its shape shaped as <code>[None, None, 3]</code>, where does the additional channel information come from? Does the channel information actually replicate? I am referring to the following preprocessing that could turn a grayscale image into an image...
3
1,838
postgres pgjdbc-ng-0.5-complete.jar driver exception java.lang.ClassNotFoundException: javax.xml.bind.annotation.adapters.HexBinaryAdapter
<p>I am trying to create datasource on JBOSS with postgres9.4 EDB with using non offical driver pgjdbc-ng-0.5-complete.jar but facing exception.</p> <pre><code>Caused by: java.sql.SQLException: Connection Error: java.lang.ClassNotFoundException: javax.xml.bind.annotation.adapters.HexBinaryAdapter from [Module "com.pgn...
3
1,796
Android setting toolbar theme causes app crash
<p>I'm trying to change my toolbar theme, but when i do the app crashes.</p> <p>By seeing other question on SO, it seems i'm doing things right, i also tried to follow some step by step tutorial(<a href="https://guides.codepath.com/android/Using-the-App-Toolbar" rel="nofollow noreferrer">tutorial</a>) but with no succ...
3
2,404
data is not emitted from android client to server using socket.io library
<p>I am creating a chat app using socket.io library. The github link to library is com.github.nkzawa:socket.io-client:0.3.0 . I wanted to add the feature of adding channels by the users. For that I am emitting the channel name and description, but the problem is that data is not emittted to the server. I have done the ...
3
2,800
VM Shutting Down after loading data into Custom Text Spinner
<p>I have a Fragment that shows the user the product they have selected from the previous screen. I am loading different products into it via a separate CustomProduct class that basically assigns values to the product displayed in this Fragment. It will display things like name, title, cost, description, etc.</p> <p>T...
3
1,672
Moving from XML to JSON, am I converting it right?
<p>Previously, I was using XML to store information about the podcasts that my app used to deal with. However, the the complexity of using the parser made me transition from XML to JSON and a few other reasons. </p> <p>Here is what my XML looks like: </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;...
3
1,058
What indexes would help speed this query up?
<p>I have the following query that's currently taking around 450ms to run:</p> <pre><code>SELECT stripe_balance_transactions.created, fee, stripe_charges.plan FROM stripe_balance_transactions JOIN stripe_charges ON stripe_balance_transactions.source = stripe_charges.stripe_id WHERE stripe_balance_transactions.ac...
3
1,674
Access JSON_VALUE from SQL Column containing JSON String with Arrays
<p>Looking to use JSON_VALUE to access some data within a JSON column in an SQL Server table.</p> <p>I have a table (tblMyTable) that has the following columns and data;</p> <pre><code>| Column1 | JSONColumn | | -------- | -------------- | | 1 | {some JSON} | </code></pre> <p>Where {some JSON} looks as f...
3
1,382
Button doesn't have ripple effect on clicking (Jetpack Compose)
<p>AFAIK, the buttons created with Jetpack compose should have ripple effect on clicking, by default. But my button doesn't show ripple effect on clicking. Below is code for my button:</p> <pre><code> BoxWithConstraints(modifier = Modifier .constrainAs(button) { top.linkTo(glTopButto...
3
1,174
PermissionError: [WinError 32] for creating files
<p>There is a code segment as follows</p> <pre><code>try: f = h5py.File(filename, 'w-') except: os.remove(filename) f = h5py.File(filename, 'w-') </code></pre> <p>Running the program getting the error related to the above code segment. I think it is because the file was not closed. Googling the similar e...
3
1,042
Extending Eloquent Models with dynamic global scopes
<p>I have a MySQL table that receives many different Jotform reports in JSON payloads. This has helped tremendously in capturing queryable data quickly without adding to the front-end developer's workload.</p> <p>I created an eloquent model for the table. I now would like to be able to create models that extend it for ...
3
1,114
How to make a parent element's height expand with the absolute positioned child element?
<p>I have a page with <code>.main_wrapper</code> class which contains two child div of id <code>#tariff-section</code> and <code>#item-desc</code>. The <code>#tariff-section</code> contains <code>.tabs</code> which contains <code>.tab-content</code> element with information that flows out of it and covers the <code>#it...
3
9,087
If condition in terraform to create user from yaml vars
<p>Variables are loading from yaml file</p> <p>project_tst.yml</p> <pre><code>project_key: tst user_config_data: - rt_env: adm groups: false disable_ui_access: true - rt_env: dev groups: true disable_ui_access: false - rt_env: prod groups: true disable_ui_access: false ...
3
1,035
Swift create a common extension for UIButton and UIView Color change
<p>In my case, I am trying to creating multiple <code>buttons</code>. Here, each buttons placed on separate UIView. This buttons working like a single section based on selection Its title color and <code>UIView</code> color I am changing in each button acton method. Here, I need to create a common extension for all but...
3
1,049
Move element on each scroll
<p>I'm trying to move the "main" tagname by 100 viewport height upwards or downwards according to the wheel delta value to make the section inside the window change. And also a way to stop or start executing a code when specified, but I'm unable to figure out what the function should be to execute it properly.</p> <p>...
3
1,034
Scraping row of info underneath a table header when the html tags for the row are not nested under the header tag
<p>I'm trying to scrape a <a href="https://wd.kyepsb.net/EPSB.WebApps/KECI/view_data.aspx?id=37161" rel="nofollow">table</a> but I've run into a bit of a snag. I want to make sure that the data underneath each header (ex. <code>Cert Issued (30)</code>) is grouped with the corresponding header. </p> <p>The problem aris...
3
8,712
How to log unconverted files in FFMPEG due to error?
<p>I am converting ~30,000 video files (each with different number of data/video/audio/subtitle streams) using a single batch file. I do not require data/subtitle streams. This is the code I am using for the batch file:</p> <pre><code>for %%i in (*.dat *.mpg *.mpeg) do ffmpeg -hide_banner -v info -n -i %%i -map 0 -dn ...
3
11,175
Debugging help requested for a small program involving a beginner level class program C++
<p>So the deadline for my program has come and gone and I'm left with a lot (re:all) failing tests and some other errors that I am not familiar with. I don't really give a damn about the grade. If I don't understand the content it's all for naught anyway. If you have some time and would like to walk through some of thi...
3
4,643
Error: Cannot convert from 'method group' to string
<p>Getting error which says Cannot convert from 'method group' to 'string'. Error is in the function <code>MapEventsAndTypes</code>. Here is the error: <code>options =&gt; options.MapFrom(MapEventsAndTypes));</code></p> <pre><code>public class AutoMapperProfiles : Profile { public AutoMapperProfiles() ...
3
1,147
ActiveMQ authentication on Spring Boot
<p>I can consume and publish a message to queue without authentication in Spring App via ActiveMQ.</p> <pre><code>server.port=9999 spring.activemq.broker-url=tcp://localhost:61616 spring.activemq.user=admin spring.activemq.password=admin spring.activemq.packages.trust-all=true </code></pre> <p>I deleted user and passwo...
3
3,011
Static access of Enums in Java?
<p>I have two enums <code>AttributesProperty</code> and <code>ResourceAttributesMapping</code> each referencing each other as shown below:</p> <pre class="lang-java prettyprint-override"><code>import org.apache.commons.collections.map.HashedMap; import test.xsd.Attribute; public enum AttributesPropert...
3
1,652
Segmentation fault (core dumped) when i run my compiled program
<p>I have this code :</p> <pre><code>#include &lt;iostream&gt; #include &lt;string&gt; #include &lt;cmath&gt; using namespace std; class Flacon { private: string nom; double volume; double pH; public: Flacon(string nom, double volume, double pH): nom(nom), volume(volume), pH(pH) {} ostream&amp; etiquet...
3
1,203
How to delete data from Sqlite on button click implemented in Recycler View in Android
<p>i need to delete item from database when we click on delete image button inside <code>recyclerView</code>.</p> <p>this is the basket activity BasketMain.java package in.haazir.haazir.basket;</p> <pre><code> import android.app.ActionBar; import android.content.Intent; import andro...
3
7,024
Passed a 2D Array to another class but can't get the object returned
<p>I'm currently developing an algorithm for my Tictactoe Android App (using Java) with Minimax, but first, I just want to make sure the algorithm works, so I made the algorithm to &quot;suggests&quot; the next move to the player.</p> <p>The player is declared as <code>String player = &quot;x&quot;;</code> in the Minim...
3
4,387
How to optimise time series based resource allocation using python
<p>I have n number of processes that needs to be assigned to unknown number of resources. Input data is in format:</p> <pre><code>Start Time-Stop Time-LocationProcessStart-LocationProcessEnd </code></pre> <p>I also have constraints for resources based on time and location like minimum time between two processes or loca...
3
3,187
How to show element or input after data is successfully verified? Codeigniter Ajax
<p>I have successfully verify if the data is recorded and not. The problem is I cannot show the button or input if the data has been successfully verified.</p> <p>Right now the problem that I have is even though the data is correct or incorrect, the button displays.</p> <p>What I need is it to display for the correct...
3
1,502
Ternary operator not working as desired on state change
<p>I'm trying to build a map that will show whisky distilleries as icons on the map. When one of the distillery markers is clicked, the state is updated to hold an object with that distillery data so a popup can render with relevant info. I've got a hover effect that I want to persist after clicking for as long as the ...
3
1,430
How to sum the values from dynamically created input fields
<p>I have created Dynamic Add / Remove fields. Everything is working perfectly. I want sum of values from <strong>Amount</strong> field to be displayed on real time basis using JavaScript. I have tried but am unable to do. I am not much familiar with JavaScript.</p> <p><strong>Following is code:</strong> </p> <p><div...
3
1,418
jQuery append HTML form data in CSV file
<p>I have simple form like this</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-js lang-js prettyprint-override"><code>function onSubmit( form ){ var data = JSON.stringify( $(form).serializeArray() ); console....
3
1,219
Same inputs on different tabPanels in navbarPage, Shiny R
<p>I have a shiny app with ui that consist of a navbarPage with different tabPanels. Inside those I would like to have the same buttons for every tab. So every tab has the same button that links to same inputs.</p> <p>e.g.</p> <pre><code>ui &lt;- navbarPage( theme = shinytheme("sandstone"), tabPanel(tit...
3
1,690
call function synchronously inside an angular for each
<p>I'm using ngCordova File Transfer plugin in an ionic project to download set of images from urls. Here is the code i'm using for that.</p> <pre><code>// Save a image file in a given directory $scope.saveImage = function(dir,imgUrl,imageName) { var url = imgUrl; var targetPath = cordova.file.dataDirectory+ ...
3
1,411
Set authenticate stuff manually in laravel 5.7
<p>I'm working on a <code>laravel 5.7</code> project and I want to have my own authentication scenario.</p> <p>Well, I'll give a mobile from my user and send her a <code>one time pass</code> to her phone and then check if she is giving me the correct code.</p> <p>So, I do not use laravel authentication system at this...
3
1,449
Sequelize returns different value than MySql result
<p>I have something very odd happening and nothing seems to work. I have a SP in MySql that returns some results. When I run the SP in MySql workbench everything is correct. The query is quite long. But this is the LEFT JOIN is somehow creating the issues. I have other inner joins/left joins but they are fine.</p> <pre...
3
2,732
Tensor Dimensions must be equal
<p>I am writing my own code for False alarm metrics in Keras for Neural networks. The Neural network implemented gives an output of (100,1) dimension, where each output value is between 0 and 1. The batch size is 1000. In the false_alarm1 function, I want to select the top k probabilities and make them 1 and the rest e...
3
3,936
Why does my code have a Limit of 1 with writing it?
<p>I have a code who should read all the rows from a mysql database table. However, it doesn't show all the data from the table.</p> <p>The $array should contains all the rows , but contains only the first.</p> <p>I have three row in my module_cmds database</p> <pre><code>+--------+------+----+--------------------+ ...
3
1,100
Process.WaitForExit() Much Slower After Refactor When Calling Taskkill
<p>I am in the process of rewriting an application I made some time ago. One of the functions available to users is to enumerate all processes which are currently running over the active Citrix session and display them (Similar Windows Task Manager). The issue is when querying <code>tasklist</code> on the user's machin...
3
2,452
authenticate user based on tap location in image in alloy app
<p>I am building an alloy app where I have the requirement to authenticate a user based on his tap location on an image, loaded with ImageView. The image has few marked points of authentication, any of which when tapped on, shows whether the tap location was right or wrong. How can I build this? </p> <p>So far, I am o...
3
2,163
Deserialization of JSON from previous data model with Custom Converters fails when deserializing collections of Interfaces
<p>I am responsible for maintaining a game system where users persist JSON serialized POCOs in a local cache to preserve state of, e.g., a <code>Character</code>.</p> <p>The newest version of the code has changed the data model of these serialized objects. In particular, a new interface was created. This is creating...
3
1,379
RelativeLayout-LayoutParams cannot be cast to FrameLayout-LayoutParams
<p>I am trying to add images dynamically because imageview sources arechangeable also image counts are changeable.</p> <pre><code>public class MatchingGame extends AppCompatActivity { String TAG = "Chic"; RelativeLayout rLayout; @Override protected void onCreate(Bundle savedInstanceState) { Log...
3
1,166
Exception handling problems in php
<p>I was trying out PHP exceptions for my project. But it turns out that the exception is thrown successfully but not being caught successfully by the code I wrote.</p> <p><strong>The code:</strong></p> <pre><code> try{ require_once(MASTER_PHP."/master_validation.php"); require_once(MASTER_PHP."/master_user.p...
3
1,122
Why links don't work in jsp when added tabs css?
<p>I have added some css to implement tabs in my jsp page (with using spring mvc). It has to work just in Chrome, it is not important to customise to other browsers</p> <p>Here is my css :</p> <pre><code>.w3c { min-height: 450px; position: relative; width: 100%; } .w3c &gt; div { display: inline; } .w3c &...
3
1,458
How can I display more points (GeoPoint) on a map?
<p>Currently I am able to display one point the first point that I crated in the code(pointStatie), but I want to be displayed both points. I want to be displayed the point where I am located and another point that I passed the coordinates from another class.</p> <p>My current code is:</p> <pre><code>package aexp.eli...
3
3,219
Linux to WinXP over UDP lag
<p>I'm having a problem with a UDPSocket wrapper I've written. I have a high bandwidth low latency local network over which I'm sending UDP packets back and forth. I don't have a concern too much for reliability of packet arrival, but it is incredibly important that the packets that do arrive do so quickly. Here's t...
3
1,517
Multiple svg on a page with not unique id for filters
<p>I'm trying to show a hovered icon on hover. I've added rules</p> <pre><code>.downloads-documentation__image:hover &gt; svg:nth-child(1) {display:none;} .downloads-documentation__image:hover &gt; svg:nth-child(2) {display:block;} </code></pre> <p>It works on the first item in a list, but when I hover the second ite...
3
13,340