title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Error in Fragment Activity in Android
<p>I am trying a fragment app as per a tutorial and getting following error:</p> <blockquote> <pre><code>06-28 04:21:47.118: D/AndroidRuntime(1491): Shutting down VM 06-28 04:21:47.128: W/dalvikvm(1491): threadid=1: thread exiting with uncaught exception (group=0xb4af7b90) 06-28 04:21:47.158: E/AndroidRuntime(1491): F...
3
5,677
Kotlin - Cannot stream online radio links using MediaPlayer
<p>I decided to learn Kotlin by developing a simple online radio streaming app. I've learnt how to implement MediaPlayer into my app, and if I pass a link for an .mp3 file, it works and successfully streams the file. However, nothing happens when I pass a link to an online radio. Here's an example of my code:</p> <pre...
3
1,080
How to stack the items inside a "Listview.builder" on top of each other? flutter
<p>I want to stack the items inside a <strong>Listview.builder</strong> but when I try to do so with the <strong>Align()</strong> class and set its <strong>heightfactor: ,</strong> it gives padding to the <strong>top</strong> and <strong>bottom</strong> and I don't want that, does anyone have any idea how do I stack th...
3
2,685
How to set Navigator animation background color between Scaffold pages
<p>I'm trying to use a different background color on my Scaffolds, however when I push to different page using Navigator, apparently the animation is performed using a fixed white background. </p> <p>How do I set it?</p> <p>Example code and behavior below:</p> <p><a href="https://i.stack.imgur.com/MVVtI.gif" rel="no...
3
1,025
fatal error: Index out of range two custom cells
<p>I have two custom cells <a href="https://i.stack.imgur.com/Wioxm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wioxm.png" alt="enter image description here"></a></p> <p>I configured them like this</p> <pre><code>func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt;...
3
1,075
Cross threaded Operation is Invalid
<p>I have a windows application which consists of Analytics Tests. When user selects the particular tests then these tests run in background thread. In background Input Files (in excel, text) gets loaded in SQL and corresponding queries get executed and output get pasted in excel.</p> <p>Now I have implemented some va...
3
1,100
Aligning content with background-image
<p>I have this picture that I want to make a webpage with:</p> <p><a href="https://i.stack.imgur.com/FsY6H.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FsY6H.jpg" alt="picture"></a></p> <p>The included HTML and CSS have it so that the page looks like this when I view it on Firefox full screen:</...
3
1,047
There is an error in my java coding when I put a grade percentage for my gradebook application
<p>I have an application that acts as a gradebook. However, in the console log when I type in a grade there seems to be an error. I was hoping someone could fix this to where I am able to put in a grade percentage and the error does not pop up.<code>enter code here</code></p> <p>Below is what the error says:java.lang.N...
3
3,782
Spring - get a page of entity with lazy elements loaded
<p>I'm very new to Spring.</p> <p>I'm trying to get a Page to return that to my front end. The AppUser has a lazy association with Role entity.</p> <p>I'm getting a failed to lazily initialize a collection of role error.</p> <p>Did a lot of research but I do not get the issue.</p> <p>Let's see the code :</p> <p><strong...
3
1,983
svelte html list chunks / segments display -
<p>Please forgive my poor question description. I'm using svelte/sapper component. In that component I'm using preload function to access an api and retrieve list of posts. I display that list in the component. I would like to split the list in chunks (whatever number, 5, 10 etc) and display that chunk in my <li></p> ...
3
1,061
Trying to scrape forecast.weather.gov and having issues particularly with getting data from a WriteText tag
<pre><code>import re from bs4 import BeautifulSoup example = """writeText('&lt;b&gt;Sunday, January 26 at 1pm&lt;/b&gt;&lt;br&gt;Temperature: 41 &amp;deg;F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dewpoint: 34 &amp;deg;F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Wind Chill: 36 &amp;deg;F&amp;nbsp;&amp;n...
3
1,029
select 2 not working for ajax response
<p>i have following JS code where i am tring to reload my modal, when my area reloads i cannot see the select2 related contents, tho they are in the DOM when i inspect them. I am using <strong>Select2 version 4.0.2</strong></p> <pre><code>$("#add_meal_item").on('click', '#save_meal_item', function () { ...
3
5,138
Error when I add a new component with Angular
<p>I begin with Angular, but I have a problem to add a new component:</p> <p>I have started a new project in Angular with <code>ng new toto</code> no error, then I add a new component with <code>ng generate component menu</code> with no error and I remove all in my <code>app.component.html</code> and I add <code>MenuC...
3
1,129
PDO Classes across multiple websites
<p>I have written PDO classes with DB connection for a single website but what I actually need to use the same class across multiple websites. </p> <p><strong>The idea is that when I change something in the class the changes will reflect in all my website not just one but these 2 websites will still use 2 separate DBs...
3
1,038
Object wrappers and forms
<p>I am developing an ecommerce platform and came across a difficulty. Basically, I have in my scenario a Product, Option and OptionValue. A product might have multiple options which might have multiple values. The problem is how to store it in a way that is easy to create and edit.</p> <p><img src="https://i.stack.im...
3
1,222
Cannot read properties of undefined (reading 'map') after adding combineReducers
<p>I combined two reducers functions one returning a list of movies and one that I am building to handle the logic enabling users to add a movie to a 'favorites list'.</p> <pre><code>import { combineReducers } from 'redux'; import movieReducer from './movieReducer'; import movieFavReducer from './movieFavReducer'; //c...
3
1,075
insert 2 List into tag <c:forEach> for loop Lists synchronously
<p>I want to insert 2 List(orders and prices) into a page(.jsp) and loop 2 list synchronously.I just know insert 1 list into , what is the solution insert 2 LIST into page(jsp) for loop synchronously that, i don't know solution for issue this. THANK ALL.</p> <p>File:UserController.java</p> <pre><code>@RequestMapping(...
3
1,235
Is there a good/right way to bulk update a shared matrix in Fluid
<p>We have an application that uses Fluid Framework where we have our data in a grid format. In order to enable collaboration on the grid, we had the data stored in a SharedMatrix. One of the issues we are having now is that the grid data can also be updated with an import. When the data is imported we update the share...
3
1,248
What's a reasonable way to make this layout?
<p>In the image below, the yellow square represents a RelativeLayout that's within my overall layout.</p> <p>The top row "status message" is a ViewFlipper that responds to the ToggleButtons (A, B) that the user can press. Buttons C, D, and E do other stuff that reload the entire view. Our client is requesting that b...
3
1,618
How to make open url on click on button in reactjs
<p>In my code I am trying to do when I select row and click on button then this url open <a href="http://codeskulptor-assets.commondatastorage.googleapis.com/assets_clock_minute_arrow.png" rel="nofollow noreferrer">http://codeskulptor-assets.commondatastorage.googleapis.com/assets_clock_minute_arrow.png</a>.</p> <p>But...
3
2,806
How to average all coordinates within a given distance in a vectorized way
<p>I did find a way to calculate the center coordinate of a cluster of points. However, my method is quite slow when the number of initial coordinates is increased (I have about 100 000 coordinates). </p> <p>The bottleneck is the for-loop in the code. I tried to remove it by using np.apply_along_axis, but discovered t...
3
1,660
How to use facebook login from a sub activity instead mainactivity
<p>I am kind of new to all these integrations of facebook and android SDKs. I followed the beginners tutorials from facebook developers to perform a login and it worked, but when i combined it with my application it didn't work from the following reason:</p> <p>In my project i wrote a calling from the main activity t...
3
3,781
item-not-found(404) in sending file(Image) using ASMACK android
<p>I am trying to send image file in my chat application . i am using asmack-android-8-4.0.6.jar .Log in and normal messaging works great but i am not able to send image . There is no fatal exception but i always get item-not-found(404) message I am using following code</p> <pre><code> public void sendFile(String pict...
3
2,046
Deep link/ One link for HTML emailer
<p>I am creating an HTML emailer for my client and they want one link for two buttons. when their users do not have their apps installed on their phones, they must be redirected to the default URL. I am not too bright in Javascript / jQuery because I am not able to find answers. If users have installed their applicatio...
3
1,087
How to hide a table row or result if checkbox is checked AND if 0 result/count
<p>I have this counter for word occurrence in the textarea. The problem is, I have a lot of items in the table, and so it can be distracting to include the zero results.</p> <p>So what I'm hoping to achieve is, if the user checks the checkbox, it will not show the zero results anymore (preferably the whole row)..</p> <...
3
1,571
Symfony 3 [Semantical Error] on authentication
<p>After some hours of search I can't find what I'm doing wrong, here my case:</p> <p>user entity:</p> <pre><code>/** * Many users belongs to one group * * @ORM\ManyToOne(targetEntity="Group", inversedBy="users") * @ORM\JoinColumn(name="user_group", referencedColumnName="id") * */ private $group; </code></pre> ...
3
1,644
Fast access to Rcpp::List elements
<p>I have a data set that I really want to work with as a 3D array. Rather than deal with an attempt to get an R array into a RcppArmadillo Cube, which I'm not sure would work (?), I'm sending in a list of matrices. My problem, however, is that the list is of large matrices and I want to be able to loop over the 3rd ...
3
1,294
h2 text is blue but should be black
<p>My h2 class="post-title" text is blue and should be black. Please can someone help?</p> <p>Also, .cat-title should be sitting on top of the image and should have a blue background. It seemed to work before I made some changes.</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code">...
3
3,909
Why does my Pandas plotting function plot independent datasets on top of each other?
<p>I have a dataset of phone price data, in lists, and I want to plot a historogram for each model using Pandas and plot method. </p> <p>When I try to do that using a function, the historograms get plotted on top of each other. So that the first plot is correct, but then the next has two historograms, then the next ha...
3
3,507
Type could not be marshaled error when interfacing function from globalplatform in C#
<p>I have been working to create an interface of globalplatform library in C#, and currently stuck with this error:</p> <pre><code>System.ArgumentException: Type could not be marshaled because the length of an embedded array instance does not match the declared length in the layout. at System.StubHelpers.StubHelpers...
3
2,318
Issues getting Offcanvas working with reactstrap
<p>I'm working with an old react app. I want to use the Offcanvas component that's in reactstrap but the version I'm on does that not that installed.</p> <p>Since the app is rather old I tried to do a pass and update everything at once. This however broke the app. So to keep my sanity I'm trying to only update the reac...
3
1,911
Nested Parallel performance question
<p>I have question.</p> <p>Are there any benefits of using Parallel.Invoke inside of another Parallel.ForEach?</p> <p>Here is my code:</p> <pre><code> Parallel.ForEach(yearMonths, () =&gt; new List&lt;DJVSStatsCo&gt;(), (yearMonth, loopState, localDjvsStatsCo) =&gt; ...
3
1,596
My docker-compose.yml couldn't build mysql5.7 container
<p>I'm trying to build docker container for laravel with docker-compose.yml.</p> <p>I hove to build database container for mysql5.7. Mysql8 cannot be used on my server witch connected.</p> <p>There is my docker-compose.yml file.</p> <pre><code>version: "3" services: app: build: context: ./docker/php ...
3
1,272
Bindable Property is not updating view on iOS
<p>I am creating a cross platform app on xamarin.forms. I needed a custom renderer with gradient background and i've created it and it works well on both android and ios. However, when i want to change the colors of the gradient background, it does not work on iOS.</p> <p>Test.xaml.cs</p> <pre><code>namespace KiaiDay...
3
3,187
Codeigniter-returning value to output in table with foreach
<p>I am using Codeigniter, and I want to return some information for an advisor. For some reason, the model isn't returning anything from the database (I'm assuming since I placed text throughout the table in view and nothing came up). The query calls information from two different tables, and I used the query directly...
3
3,305
backend not adding books to android app sql
<p>i have made an ebook android app everything works fine but the backend code of admin age which is written in php and javascript .the admin has a function to add book known as savebook the "savebook" function is not working please help me guys....every time i try to add a book i it just shows a failed message but whe...
3
6,814
A Sql statement gets different results on Maria DB and Mysql
<p>Table structures is:</p> <pre><code>+---------------+-------------+----------------+-----------+--------------------------+ | column_name | is_nullable | column_default | data_type | character_maximum_length | +---------------+-------------+----------------+-----------+--------------------------+ | id ...
3
2,053
Xcode 8 iOS 10 - NSMutableDictionary throws - "mutating method sent to immutable object"
<p>I have an NSMutable Dictionary that I preload to edit a saved estimate (saved in userDefaults). eParts is stored in another NSMutableDictionary called "estimate" The breakdown of which looks like this:</p> <pre><code>if ([appDefaults objectForKey:@"selectedEstimate"]) { estimate = [[NSMutableDictionary alloc]i...
3
1,724
Sequelize multi-table OR statement unknown column error
<p>I'm trying to do a search on my models, I want to get all users where either the email, firstName, or lastName are like the search string, or where the UsersSecondaryEmails table (related model) includes an email like that string.</p> <p>Because the parts of the OR statement are in different tables, this is getting...
3
1,246
UICollectionView space between cells
<p>In my case I want completely remove any spaces between <code>UICollectionViewCell</code>'s. In iPhone 5 it works correct but iPhone 6 and up. Every time I scroll or in the initial load <code>UICollectionView</code> adds empty space for different rows. I know that could be difference in float values. For example 8.88...
3
1,406
Segmentation Fault for Expression Tree implementation in C
<p>C noob here,</p> <p>I`'m trying to implement a C program to convert a POSTFIX expression into a valid PREFIX expression by using an expression tree.</p> <p>I created 2 files, a <em>TreeNode.h</em> file and a <em>main.c</em> file</p> <p>TreeNode.h:</p> <pre><code>#include &lt;string.h&gt; #include &lt;stdbool.h&gt; #...
3
1,648
IndexOutofBounds exception creating a maze
<p>I'm working on a school assignment where I am supposed to create a maze from a textfile. My problem is creating the maze. I know it's probably an easy fix, but I am really stuck and need to get this done.. Any suggestions? </p> <pre><code>package application; import java.io.File; import java.io.FileNotFoundExcepti...
3
2,090
Android Flashlight Won't Turn Off
<p>I am making an app that uses touchless gestures to turn off and on the flashilight in my Android app. It turns on just fine, but I can't get it to turn back off. Thanks in advance for any help. </p> <p>Here is my MainActivity.java</p> <pre><code> package com.proximitysensorapp.primo.app; import android.h...
3
1,287
Getting "No Persistence provider for EntityManager named" when Maven build is run with Junit testcases
<p>When running the maven build with Junit getting "No Persistence provider for EntityManager named" error.Not able to identify what is missing in my code.</p> <p>Main class:</p> <pre><code>public class ApprovalHistory { @PersistenceContext(unitName = "Approval_History") private Logger logger = LoggerFacto...
3
7,013
Can't import bean validation annotations
<p>I'm working in a spring boot application with spring boot version 2.3 with following dependencies:</p> <pre><code>&lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt; &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt; &lt;/dependency&...
3
1,347
app.js:40 Uncaught (in promise) SyntaxError: Unexpected end of input
<p>while running, my react app, the browser's console is showing the error like</p> <blockquote> <p>app.js:40 Uncaught (in promise) SyntaxError: Unexpected end of input</p> </blockquote> <p>kindly help me I'm stuck in this error for 1 month and I suffered a lot of online solutions but nothing helped.</p> <p><strong>Thi...
3
1,435
Camel Route read Mail by call url IMAP Server, but will throw RuntimeCamelException if Content-Transfer-Encoding:quoted-printable
<p>everyone. I have an application using camel route to call url IMAP to read mail and retrieve content, <code>from(&quot;{{route1.imap.protocol}}://{{route1.imap.host}}?username={{route1.imap.username}}&amp;password={{route1.imap.password}}&amp;consumer.delay={{route1.consumer.delay}}&amp;fetchSize={{route1.fetchSize}...
3
2,743
cast function results arguments imply differing number of rows: 9, 0
<p>I am trying to find the mean for each variable uniquely but I don't know why it's giving error after applying cast function.</p> <pre><code> library(reshape) &gt; odata &lt;- read.csv("dummy2.csv") &gt; msdata &lt;- melt(odata, id=c("A","F")) &gt; subjmeans &lt;- cast(msdata, A~ variable, mean) </code></pre> <bloc...
3
2,022
Can't access favicon from Production (Manifest: Line: 1, column: 1, Syntax error.)
<p>I can't access the favicon when I deploy to Production for my website <a href="http://thymelessapp.com/thymelessfavicon.ico" rel="nofollow noreferrer">http://thymelessapp.com/thymelessfavicon.ico</a> even though it works in my local version.</p> <p>I'm seeing the following error in the console, which I'm assuming is...
3
1,600
java.io.BufferedReader().map Cannot infer type argument(s) for <T> fromStream(Stream<? extends T>)
<p>Scenario: a Spring WebFlux triggering CommandLineRunner.run in order to load data to MongoDb for testing purpose.</p> <p>Goal: when starting the microservice locally it is aimed to read a json file and load documents to MongDb. </p> <p>Personal knowledge: "bufferedReader.lines().filter(l -> !l.trim().isEmpty()" re...
3
2,261
Changing values on a list of lists
<p>I wish could change this list of lists with other values:</p> <pre><code>DD = [['10.0.11.100', '10.0.11.10', '10.0.12.10', '10.0.12.100'], ['10.0.11.100', '10.0.11.10', '10.0.1.6', '10.0.13.10', '10.0.13.100'], ['10.0.11.100','10.0.11.10','10.0.1.6','10.0.13.10','10.0.14.10','10.0.14.100'], ['10.0....
3
1,114
Even-Odd Train-Test Split with 2D array input and return two tuples of the form (X_train, y_train), (X_test, y_test)
<p>trying to complete this function. Any help would be appreciated. This is my work so far:</p> <p>Should take a 2-d numpy array as input:</p> <pre><code>array([[ 1.961e+03, 2.263e-02], [ 1.962e+03, 1.420e-02], [ 1.963e+03, 8.360e-03], [ 1.964e+03, 5.940e-03], [ 1.965e+03, 5.750e-03], ...
3
1,661
Application crashes when I execute Keyboard.SetShifted
<p>I am trying to make a custom soft keyboard, my problem comes when I try to use the method setshifted of my keyboard, application get crashed.</p> <p>Here is my output error:</p> <blockquote> <p>02-19 19:58:45.649 2222-2222/? E/InputEventReceiver: Exception dispatching input event. 02-19 19:58:45.649 2222-2222/...
3
9,589
Z-index is not working when parent on position fixed
<p>I'm doing a menu and i need its child to have a large z-index so that it´s on top of a modal when this is opened. it works perfectly, but when i set the menu to 'position: fixed' and open the modal, the child is kept behind the modal. Here is the code, ignore the last part of the css, which is just animations. Thank...
3
1,899
Issue with getting thumbnail from videos in documents
<p>I am trying to generating thumbnail from video files which stored in documents directory. First I am collecting only video files with <code>mp4</code> formats :</p> <pre><code> override func viewWillAppear(_ animated: Bool) { let VIDEO = [collect(files: "mp4"), collect(files: "MP4")] ...
3
1,181
Grab Spreadsheet names then read each in Foreach
<p>Ok, I am trying to figure out the best way to accomplish this in code. I have a spreadsheet with numerous tabs and what I want to do is in C# read the name of each sheet and then its corresponding rows of data. Currently, this is what I have:</p> <pre><code> if (!DirectoryIsEmpty(DropZone.ToString())) ...
3
2,286
App crashes on clicking on same item
<p>I have this adapter plays music on button click. Its all working when I click a song that is already playing to stop, the app crashes. Can someone help me with this one - I'm trying to figure out for two hours now.</p> <p>Here is my adapter</p> <pre><code> public class DownloadsDetailsAdapter extends BaseAdapter {...
3
10,277
How to import image files to database on button click in asp.net mvc
<p>I want to move <strong>all</strong> the image files in the folder called <strong>Uploads</strong> to database table.i've tried following things to do so.but it is not working neither i am getting any error.Please help me with this </p> <p>here is my contoller action method</p> <pre><code> [HttpPost] public b...
3
1,066
Constant location request on startup
<p>So I am trying to make an app in Android Studio which needs location settings turned on and therefor I wanted to make that window pop up in onCreate that asks if you would like to turn on location settings. But after you press Abort I dont know how to bring that window back again... Is there a way to do so? Because ...
3
2,248
Condition variable's "wait" function causing unexpected behaviour when predicate is provided
<p>As an educational exercise I'm implementing a thread pool using condition variables. A controller thread creates a pool of threads that wait on a signal (an atomic variable being set to a value above zero). When signaled the threads wake, perform their work, and when the last thread is done it signals the main thr...
3
3,436
When I try running this class in eclipse, another class gets executed
<p>I have this class called deepToe_2. Whenever I click on the shortcut key for run, eclipse runs another class called TicTacToe which I had previously ran. I have tried making changes to run cofig but it still does not seem to work. Here is my code :</p> <pre><code>package deepToe; import java.awt.GridLayout; import...
3
3,027
Square-Connect Inventory Update cURL Call
<p>I am trying to update my square inventory from my inventory database website and I keep getting this error.</p> <pre><code>Response:{"type":"bad_request","message":"Missing required parameter `quantity_delta`"} </code></pre> <p>I am adding the quantity_delta field and adjustment_type to the cURL call because that ...
3
1,122
EF7, what is wrong with my relation here?
<p>The relation seams to be find and works with other example but when trying to get with all of the possible Include it fails with the error.</p> <pre><code> Widget widget = _dbContext.Widgets.Where(w =&gt; w.Id == id) .Include(w =&gt; w.DataSource) .ThenInclude(d =&gt; d.DataSourceParams)...
3
2,075
Range.Find method returning unexpected value
<p>This is strange. According to MSDN (and several questions on StackOverflow), the Range.Find method in VBA is supposed to return <code>Nothing</code> when the specified value is not found in the specified range. However, when I run the following code, if the value is not found, the Range.Find method doesn't return <c...
3
1,358
Passing values between asp.net page and to GA server using JavaScript
<pre><code>protected void Button_Click(object sender, CommandEventArgs e) { Response.Redirect("EnterSession.aspx?session=" + e.CommandArgument.ToString()); } </code></pre> <p>the above code pass the session_id as query string to EnterSession.aspx</p> <p>and I have the following c# related ...
3
1,323
How to align component horizentally using bootstrap?
<p>I used below bootstrap to a search page .</p> <p>Actually i want this type of screen in resolution 1024*768.</p> <p>Screen Resolution : 1360*768</p> <p><img src="https://i.stack.imgur.com/m1cXT.png" alt="enter image description here"> </p> <p>But it not working below resolution.</p> <p>Screen Resolution : 102...
3
1,944
Unhandled rejection TypeError: Role.Create is not a function error
<p>I have got stuck on a .create is not a function error when I am trying to repopulate my database when I restart nodemon. I have had this working previously and all the tables populated fine I keep getting flagged this error. I am using Node, Express, Sequelize and Postgres pgAdmin4.</p> <p>I have read on similar top...
3
4,741
Display table header only when tbody has atleast one row
<p>I have coded to display table body without headers for a click event. Now I am getting the table headers as soon as the page loads and this should not happen. I need to display the table headers only when the the form is submitted and if there is an element in the body. </p> <p>Javascript is as follows:</p> <pre><...
3
1,569
java.lang.NullPointerException at java.io.FileInputStream.<init>(FileInputStream.java:130)
<p>After upgrading Apache Tomcat and JDK, I saw this exceptions. Work's well on Tomcat 6.0.18_8084, JDK 1.7_017 and Netbeans 7.3. It seems there is some library. Edit code I don't have permissions. Please help.</p> <p>Apache Tomcat 8.0.9.0 Log</p> <pre><code> 07-Nov-2014 09:09:21.274 SEVERE [http-nio-8084-exec-9] ...
3
2,884
I can not get values from table. Relationship one to many
<p>Hi i have a problem with get many records from db this is my main table </p> <pre><code>@DatabaseTable(tableName = "MyTrips") public class MyTripTable { @DatabaseField(generatedId = true) private long id; @DatabaseField private long timestamp; @DatabaseField(foreign = true, foreignAutoRefresh = true ) private F...
3
1,520
Boost 1.48.0 upgrade_to_unique_lock on Linux: Has something changed since 1.47 or I do something wrong?
<p>I have a small <a href="http://code.google.com/p/cloudobserver/source/browse/trunk/CloudServer/src/cf-fs/fs_map.cpp" rel="nofollow">cpp source</a> and <a href="http://code.google.com/p/cloudobserver/source/browse/trunk/CloudServer/src/cf-fs/fs_map.h" rel="nofollow">h source</a> files with some class. It uses <a href...
3
1,813
JSONDecodeError: Extra data: line 1 column 65670 - line 1 column 66476 (char 65669 - 66475) & Trailing data Error when using Pandas.read_json
<p>Firstly, I want to highlight that I tried all those suggested solutions even though this question seems similar to many others. I have four folders with subfolders, each containing JSON files. I want to make csvs for each one of these. The code below works just fine with three of these folders. However, I have spen...
3
2,243
Ruby On rails xml to image
<p>I have an xml file attached to an email I want to convert it into image and save it via paperclip. I first read it from my mail inbox:</p> <pre><code>@doc = Nokogiri::XML(attachment.body.decoded) </code></pre> <p>this is the @doc :</p> <pre><code>#&lt;Nokogiri::XML::Document:0x3fe1a80c8874 name="document" childr...
3
20,609
XSLT invalid token results in invalid XML document
<p>I am using an XSLT file to transform an XML file to another XML file and then creating this XML file locally. I get this error:</p> <blockquote> <p>System.InvalidOperationException: 'Token Text in state Start would result in an invalid XML document. Make sure that the ConformanceLevel setting is set to Conformanc...
3
1,698
.net MVC show result in view from join query
<p>I have view Index. In Index view I have html drop down and table. I want to populate the drop down by Job model and table from company model. I used Join query which is giving me the required result. But I don't know how to pass data to view and show drop down and table.</p> <p>Here is My Job Model class.</p> <pre...
3
1,674
How to get key bind to work in gnuplot dumb terminal?
<p>I tried to implement a plotting loop in the text terminal <code>dumb</code>. In order to stop the loop I'm using <code>bind</code> (check <code>help bind</code>). This works fine, e.g. in a <code>wxt</code> terminal, however, the loop will not stop when using the <code>dumb</code> terminal.</p> <p>I know that I coul...
3
2,245
StyleGan3 error: Ninja is required to load C++ extensions
<p>I'm trying to run StyleGan3 code but I keep getting this error:</p> <p><code>RuntimeError: Ninja is required to load C++ extensions</code></p> <p>I did pip install Ninja and got version 1.10.2.3, and I'm on windows 10, so I installed, built and ran docker using these instructions: <a href="https://hangzhang.org/PyTo...
3
1,432
Android altBeacon sometimes I get a beacons at 5 sek
<p>This is my activity :</p> <pre><code>public class MyActivity extends Activity implements BeaconConsumer, RangeNotifier { private BeaconManager mBeaconManager; @Override public void onResume() { super.onResume(); mBeaconManager = BeaconManager.getInstanceForApplication(this.getApplicatio...
3
1,225
Authentication React Redux Application
<p>Hello wonderful people at Stack overflow. I have a question that I've been trying to solve for the past few hours. For some it might be super basic, but for me (a complete noob at Redux and React) it's like solving the Palestine conflict. However...</p> <p>In my React, Redux application I want the user to be able ...
3
1,052
SocketException:Connection reset on every request + Spring Integration
<p>I see the below line application log.</p> <p>ERROR [TcpNetConnection.java:263] Read exception rclegacy-dev.kkl.com:9103:48416:1a40a36a-8cb6-4a2a-9229-ae4fe5273966 SocketException:Connection reset</p> <p>There are no issues with the request-response flows. But I see the above line in the logs every time a request is ...
3
1,845
Spring Cloud Stream Message Handling
<p>While playing around with Spring Cloud Stream, Kafka, Debezium and Postgresql I am facing the following issue : To highlight : A table person(id,name) is there in postgresql , debezium fetched the change events and throws to Kafka topic(person) , verified messages are there in the topic , the form of the message is ...
3
2,303
Swift: How do I handle a double with two decimal places in a tableView?
<p>I've been trying to work this out for some little while now. </p> <p>I've got a double in my array, but it invariably displays as a rounded integer.</p> <p><code>var dataArray: [(colorNo: String, colour: NSColor, spares: Double)] = []</code></p> <p>Here's the tableView:</p> <pre><code> func numberOfRowsInTa...
3
1,026
Async methods Explanation
<p>Ok so I am new to async, await and Task so I played around a bit and googled but I am not quite sure yet how it works and how it is supposed to be implemented So let me start by giving my code</p> <pre><code>public class MessageQuery { public byte[] Buffer { get; set; } } public class MessageQuery&lt;T&gt; : M...
3
1,071
switch functions in c
<p>Trying to create a menu driven employee data program. I don't know how to create a functioning menu and also having trouble getting the menu options to work such as editing previously entered employee info. I would appreciate any help I can get on this. The errors that are currently arising are </p> <ol> <li><p>edi...
3
2,015
Problem with initialization bim's ready example in Octave
<p>On assignment, they gave me a step-by-step example from this article <a href="http://wiki.octave.org/Bim_package" rel="nofollow noreferrer">http://wiki.octave.org/Bim_package</a>.</p> <p>The example was typed manually, without copy-paste.I already install this packages- fpl, bim,msh, image. Octave example:</p> <pr...
3
1,271
Join Two table with Date range and grouped data
<p>I want the data from two tables in single table by filtering out based on the date and then group data by two columns. For Example:- User will give account_id,start_date and end_date by which I will filter the data from both the tables.</p> <p>This Is Inward Table</p> <hr> <blockquote> <pre><code>ID Account_Id...
3
1,158
Send Form Using jQuery after form is generated using Ajax
<p>I am trying to build a one page booking system, I know php very well but struggling with jquery side of this.</p> <p>I know basics of jquery but I am no expert.</p> <p>Anyway I have built a booking system, when someone clicks a date it opens up a form which is created using php and pulled in using ajax.</p> <p>Th...
3
1,415
Spring JPA OneToOne mapped entities not behaving properly in Transactional tests
<p>So I'm writing tests for some logic around some Spring JpaRepositories I have created. I'm doing this using the embedded in-memory H2 database. I'm seeing a weird scenario where my OneToOne mapped entities aren't behaving properly.</p> <p>My <code>User</code> and <code>SSOUser</code> are entities joined with a OneT...
3
1,371
How to get html form without form id
<p>i'm creating a system than get html form values and send it to API. I created a simple html form with javascript to get values to send, but i get form using form ID, is there any way to get form without id ? i'll creating this to work in website than have only one .</p> <p>index.html</p> <pre><code>&lt;!DOCTYPE html...
3
1,151
An exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.ni.dll but was not handled in user code: in Xamarin Form
<p>I created the MasterDetailPage in Xamarin form but when i tried to run the app it gave me the above error. Below is the Xaml code for my MasterDetailPage</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.m...
3
1,677
Symfony2 parameter with embedded forms
<p><strong>EDIT :</strong> I find the real problem!</p> <p>I am trying to give a paramEter to a sub-form from the controller. Without this parameter, the form is working perfectly.</p> <p>I want to show in the select list only users which are not already present in the relation. I have this query_builder:</p> <pre><cod...
3
1,070
jquery autocomplete not picking up array
<p>I am building a website. On the website I have a search form that should use autocomplete to find data in the database. The backend part is ready but the fron-end part I can not get it to work. I found this post: <a href="https://stackoverflow.com/questions/3694551/is-it-possible-to-change-the-url-which-jquerys-jque...
3
1,372
Loop xml and store values as variables - C#
<p>New to C# here and I would like some help with a small project of mine. I have an XML file with elements that I would like to loop through and store it´s values and use.</p> <p>I want to grab all of the descending attributes in &quot;week 2&quot; and store them as variables and execute some code. Than I would like t...
3
1,686
500 internal server error deploying Django-Wagtail application on AWS Elastic Beanstalk
<p>I have tried everything I can think of and I have gone through <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html" rel="nofollow noreferrer">the AWS</a> and <a href="https://realpython.com/deploying-a-django-app-and-postgresql-to-aws-elastic-beanstalk/" rel="nofollow nor...
3
3,579
send multiple files data using curl php ( number of files to be sent varies )
<p>I need to send multiple files using curl php, but the issue, is the number of files to be sent is varies on the user, hence I have to use some kind of iteration to create array of files to send it using "curl_file_create".</p> <p>Below is my code for sending just one file. Please feel free to ask any query. </p> <...
3
3,196
Why the behaviour differs when fgets() is used instead gets()
<p>as per <code>gcc</code> warning: </p> <blockquote> <p>the `gets' function is dangerous and should not be used</p> </blockquote> <p>I try to use <code>fgets()</code> but it does not wok out in my code as you may see the outputs for both at the end of code below. May someone please tell me what mistake (if any) I ...
3
1,086
How to make a Private Route without AuthContext
<p>I'm trying to make a private route from my login and signup pages to my dashboard page, but all the tutorials and guides that I've stumbled upon all require some sorta AuthContext thing and I didn't implement my authentication procedure using AuthContext.<br /> I've tried different ways but none of them work and jus...
3
3,464
React & Typescript: Cannot read property '0' of undefined
<p>I recently moved from .jsx to .tsx, and I'm having issues (before moving to typescript, was all working well). The first error is at line: "<code>&lt;Modal show={this.state.isOpen[key]} onClose={this.handleToggleModal.bind(__this,key)}&gt;</code>". I suspect there's something related to typescript, but I don't know ...
3
8,093
Check if Service is Running from within Broadcast Reciever
<p>I know this is a similar question to mine. <a href="https://stackoverflow.com/a/22511290/2208342">https://stackoverflow.com/a/22511290/2208342</a> but i have read that the solution to that question will become obsolete as Android are taking away that code. </p> <p>qoute below taken from <a href="https://stackoverfl...
3
1,586
angularjs material extra row and long word creates wrong layout
<p>i have following html in angularjs material:</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>angular.module('MyApp', ['ngMaterial']);</code></pre> <pre class="snippet-code-...
3
1,777