title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Unable to add separator in list view | <p>This is my code </p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.email_list_main);
emailResults = new ArrayList<GetEmailFromDatabase>();
//int[] colors = {0,0xFFFF0000,0};
//getListView(... | 3 | 2,169 |
How To Hide Admob UIViewController Until Loaded In SwiftUI | <p>I have a UIViewController wrapped inside of a UIViewControllerRepresnetable. I followed a tutorial that displays Admob Native ads inside of SwiftUI located here <a href="https://github.com/sakurabird/iOS-Admob-SwiftUI-example" rel="nofollow noreferrer">https://github.com/sakurabird/iOS-Admob-SwiftUI-example</a>. Unf... | 3 | 8,457 |
How to validate my custom input fields before save? | <p><strong>"react-admin": "^3.7.1"</strong></p>
<pre><code>import {
Create,
SimpleForm,
TextInput,
SelectInput,
NumberInput,
required,
} from "react-admin";
import { getChoices } from "../../utils";
import RichTextInput from "ra-input-rich-text";
import { m... | 3 | 3,386 |
Why is Akka.Persistance not replaying my Journal entries | <p>I am writing an implementation of the Akka.Persistence for Service Fabric, and I don't seem to be able to get the snapshotting working. When it attempts to recover state it gets the latest snapshot but it does not replay the events since the latest snapshot. Its not clear to me If I have simply not wired up the comp... | 3 | 1,727 |
Rails - toggle boolean on click of a link | <p>I'm trying to make an app with rails 4 and simple form.</p>
<p>I have models separately called Project, Scope and Finalise. Finalise belongs to Scope. Scope belongs to Project. Project accepts nested attributes for Scope and Finalise. Scope accepts nested attributes for Finalise.</p>
<p>I have an attribute in my F... | 3 | 1,472 |
Displaying text on only one image at at time in React | <p>I am working on a portfolio page using React and Tailwind. I am trying to get to where when you hover over each image, it will display the text at the bottom of a single image. Right now when I hover over the image, all text displays on all images. How would I fix this? Also, I know there has to be a way to clean th... | 3 | 2,404 |
"org.json.JSONObject" missing "Request.Method.GET" and "com.android.volley" JsonObjectRequest arguments appear to out of order | <p>I am trying to make a GET request for some Json data with the "com.android.volley" module's JsonObjectRequest.</p>
<p>The android development page (google's own website) shows the set up like this:</p>
<pre><code>JsonObjectRequest jsonObjectRequest = new JsonObjectRequest
(Request.Method.GET, url, ... | 3 | 1,344 |
Power query Excel Loop Date | <p>i would like to loop this query directly in excel powerquery. I would like to loop the date found in the link: from the date in the link to today's date. the data must all be inserted into a query. how can i solve? thank you.</p>
<pre><code>let
Origine = Web.Page(Web.Contents("https://www.forebet.com/script... | 3 | 6,172 |
How to upload a file directly to azure blob from the URL in c#? | <p>I have a url which looks like following "https://XXXXXXXX-functions.azurewebsites.net/api/UploadedZIPFile?ticket=1234&code=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" which contains the file. "UploadedZIPFile" is the file Name. In URL I don't have the extension of filename. After downloading the fi... | 3 | 1,335 |
How to populate master detail combobox in VB? | <p>I have two <strong>Comboboxes</strong> with Master Detail Relationship Table <strong>Bank</strong> and <strong>Branch</strong></p>
<p><a href="https://i.stack.imgur.com/hatX2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hatX2.png" alt="enter image description here" /></a></p>
<p>My VB code behi... | 3 | 1,025 |
Datatable api.draw is not woking. How can i define the columns and render each row? | <p>Currently appending each row, but without the draw method pagination doesn't show. How can the column be defined and with the defined column need to render rows. What am I doing wrong here ?</p>
<p>//ignore this repeated section .
Currently appending each row, but without the draw method pagination doesn't show. Ho... | 3 | 6,478 |
Input Value doesn't save, when pushing onto array gives undefined value | <p>I am trying to update the user account details in firebase but I have noticed that the input value for one of my fields keeps coming up as undefined even when I console.log it. I am working in two files one is a loginjs file in which I am defining the user input.</p>
<pre><code>signUpForm.addEventListener('click', ... | 3 | 1,241 |
Order UITableView cells by calculated distance (Parse) | <p>I have a problem with the database created on parse. I have a table that shows me how many miles of the various local (once you download the list from DB) the problem is that I would order it for distance upward, but I do not know how to do. The code I used to calculate the distance is this:</p>
<pre><code>- (id)in... | 3 | 1,956 |
Error: Missing argument for parameter #1 in call when I am calling a function from different class in Swift | <p>Hey guys I am trying to call <code>applyProcessing()</code>on ViewController class using this method: </p>
<pre><code>@IBAction func intensityChanged(sender: AnyObject) {
FilteredMainImageOne.applyProcessing()
}
</code></pre>
<p>and suddenly I got an error message "<strong><em>Missing argument for para... | 3 | 1,324 |
DIfficulty determining what 'this' refers to in JS/jQuery code | <p>I'm experiencing difficulty figuring out what 'this' refers to, in multiple instances of the following code:</p>
<pre><code> jQuery(function ($) {
var coreChat = {
fetch: function (fn) {
$.ajax({
url: "https://api.parse.com/1/classes/chats",
data: {
order: 'creat... | 3 | 1,642 |
Image overlay on video between two time using mobile-ffmpeg android | <p>I am trying to add image overlay on video using "mobile-ffmpeg-full-gpl:4.4" library but faced following error:</p>
<pre><code>Error when evaluating the expression 'between(t' for enable' error.
</code></pre>
<p>I have a class that create overlay filter for adding image:</p>
<pre><code>class ImageFilter {... | 3 | 1,434 |
codeigniter success insert to database but failed to insert uploaded file | <p>I'm new here, so nice to meet you all.</p>
<p>I have trouble with codeigniter.</p>
<p>Maybe hard to tell so I will show all of my code :</p>
<p>my controller :</p>
<pre><code> function upload_barang(){
$this->admin_model->login();
$this->admin_model->valid_product();
$config['upload_pa... | 3 | 1,040 |
I've written C++ code to treat boost::optional as a range but it doesn't compile | <p>I wish to treat boost::optional as a container that can have zero or one elements in it. Logically I should be able to create an iterator to the container and use boost::for_each on it as well. My attempt is below but it fails to compile. I have tried it on GodBolt.</p>
<p><a href="https://godbolt.org/g/z5MFfe" rel... | 3 | 3,547 |
Segmentation fault while writing to outputfile | <p>In the following program, I am writing some data into a file named "griddata.dat". I am getting a segmentation fault during the function</p>
<blockquote>
<p>write_grid_file</p>
</blockquote>
<p>The function is partly executed. After running the programming, the last line of the file griddata.dat is "The threshol... | 3 | 3,305 |
how can I get custom data group by enum property with JPQL or Criteria Api in spring data? | <p>I have an enumeration to store Currencies : </p>
<pre><code>public enum Currency {
USD,EUR,GBP
}
</code></pre>
<p>And I have Sales entity that contain currency as a property: </p>
<pre><code>public class Sales {
private Long id;
private Merchant merchant;
private Customer customer;
private ... | 3 | 1,132 |
Selecting a div within the n'th element of an unordered list | <p>I am trying to click the div contained within the third item in the unordered list. So with the HTML (see at bottom) I am trying to click the div:</p>
<pre><code><li>
<div class="rg-ss-thumb ">
<img style="max-width: 100%;height: auto;" src="/media/rokgallery/8/810b28b9-29e6-4e39-a104-510... | 3 | 1,494 |
Sending knockout viewmodel to controller is missing items from drop down box | <p>Little by little I'm learning this...</p>
<p>In my C#/MVC4 demo build I've created a controller to send data to my view through JSON. In my view I am able to parse the response and populate a drop down list.</p>
<p>I'm using knockout similar to a cart to create additional lines (colors) for posting to the control... | 3 | 2,055 |
how can i solve "empty() received an invalid combination of arguments - got (tuple, dtype=NoneType, device=NoneType)" in MushroomRL? | <p>I'm using MushroomRL for a Deep Reinforcement Learning project, and I'm using a Graph representation as RL Environment where the number of nodes represents the number of actions now in my neural network the input is one value ex: <code>tensor([[5.]]</code>, and the output Q is the number of nodes which is ten ex: <c... | 3 | 1,341 |
Split one dataframe to multiple sub-dataframes based on common columns in Pandas | <p>Assuming the dataframe <code>df</code> as follows:</p>
<pre><code> ISIN Coupon Issue Date Maturity Date Jan 18th Jan 19th \
0 CA135087A610 0.0150 7/30/2012 6/1/2023 103.13 103.14
1 CA135087F254 0.0075 10/19/2015 3/1/2021 100.08 100.08
2 CA135087F585 0.0075 4/... | 3 | 1,202 |
Using $_GET and $_POST in custom WordPress plugin | <p>I'm new to developing plugins for WordPress, I've been doing it for Magento 2 and thought it would be similar, so here I am.</p>
<p>I'm consuming a RESTful API to display information about some courses, it retrieves me the info on all courses so now I have to filter some attributes, for example "city", for this my ... | 3 | 2,986 |
Hammer.js and jQuery confusing classes | <p>I am trying to make a web app that would run on my phone. I am using the Hammer.js library for recognizing touch gestures and animate.css for the animations. I use the <code>swipeleft</code> and <code>swiperight</code> touch recognizers to change the classes of certain <code>div</code> elements. however when I use <... | 3 | 1,065 |
Problem while developing spring controller, every time I get Ambiguous mapping | <p>The error I'm getting: </p>
<pre><code>Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'tagController' method
public java.util.List<javaBrains.model.Tag> javaBrains.controller.TagController.getAllTags()
to {}: There is already 'tagController' bean method
public javaBrains.model.Tag... | 3 | 1,223 |
Checking all Data Value in Table | <p>My code is as follows:</p>
<pre><code><div class="input-group select-all" >
<span class="input-group-addon disabled">
<input type="checkbox" <?php if($pagetitle=="Trash") echo "disabled"?>>
</span>
<div class="input-group-btn">
... | 3 | 1,561 |
Mysql multiple matches with left join | <p>Hello i working with multiple tables(around 40) and i make a left Join for link multiple tables, the problem is in some of those tables there are multiple matches and for this rason get many rows, them i look a method for get the result more organized, because this result is sended to Javascript and the result is ma... | 3 | 1,672 |
Is it possible to display more detailed Function() info during debugging | <p>I have an issue random number generating. I've made an AI for game "Guessing number game" and it works just fine until the Player hit number <strong>lower</strong> than searched number. After that Math.random(); <strong>may</strong> and it is very likely to generate negative numbers. If player hit the number lower t... | 3 | 1,500 |
There is no error but still can't change phone contact image | <p>I'm quit scared with this application. I'm developing an application that changes the contact photo with from image-view. It doesn't generate any error but does not even change contact image. I have a doubt, if it's the OnActivityResult() method. Please correct me on that. Here is the code of OnActivityResult() meth... | 3 | 2,041 |
why django haystack spelling_suggestion() is always None | <p>I need to integrate spell check mechanism in Django application. I found that Haystack has "Spelling Suggestions" method to use it. So I have installed latest dev version(2.0.0 beta) of haysatck with Django(1.4.1).</p>
<p>I have downloaded apache-solr-3.6.0 and configured as like in <a href="http://django-haystack.... | 3 | 1,258 |
How to Properly Store ShapeFiles when Deploying R Shiny App | <p>I am working on an R Shiny project to visualize the spread of COVID19 around the world. When I run the app locally, it works just fine, but when I try to deploy the app, it runs into issues which I am assuming are related to storing the shapefiles: I get an error on the map page that reads, "An error has occu... | 3 | 2,665 |
Google OR-TOOLS VRP Problem with previous OR-TOOLS Assignment problem | <p>Im trying to solve a 2 step problem, where in the first one I run an assignment model which calculates the best option that optimize the pick up and deliveries arcs between nodes because not all the vehicles can transport the same products and other complications the problem has. The result of the first model are th... | 3 | 4,615 |
Copying ConcurrentHashMap to HashMap inconsistency | <p>im trying to do the following:</p>
<ol>
<li>My program starts threads, which increment an <code>AtomicInteger</code> from <code>ConcurrentHashMap<String, AtomicInteger></code> and adds new <code>Integer</code> to <code>ConcurrentHashMap<String, CopyOnWriteArrayList<Integer>></code>. In that case, ... | 3 | 1,773 |
Is it possible to create an endless loop of the same html elements, scrolling from the top to the bottom with a portal like effect? | <p>I'm trying to create an endless animation loop using a set of html elements, similar to a marquee.
The goal is to have all the elements visible in the container at the beginning of the animation, with each element sliding downward. As soon as the bottom element starts to go out of frame, it would appear at the top ... | 3 | 1,672 |
EOF when posting JSON to localhost Go backend using VueJS | <p>I'm setting up a login system using VueJS for frontend and Go for backend. I'm currently stuck at POSTing the username & password to the backend in JSON format.</p>
<p>Currently I am attempting to post using fetch, after having bad luck with Axios earlier.</p>
<p>Post method:</p>
<pre><code>fetch("http://loca... | 3 | 1,163 |
Comparing timestamps in dataframe columns with pandas | <p>Lets say I have a dataframe like this</p>
<p>df1:</p>
<pre><code> datetime1 datetime2
0 2021-05-09 19:52:14 2021-05-09 20:52:14
1 2021-05-09 19:52:14 2021-05-09 21:52:14
2 NaN NaN
3 2021-05-09 16:30:14 NaN
4 ... | 3 | 1,291 |
How can I edit a URL obtained from RSS | <p>I have edited this RSS feed CodePen <a href="http://codepen.io/RobKirby/pen/azwwvM?editors=001" rel="nofollow">http://codepen.io/RobKirby/pen/azwwvM?editors=001</a> to display Wordpress posts <a href="http://tomcandy.com/blogtest/" rel="nofollow">http://tomcandy.com/blogtest/</a> however my RSS feed on wordpress lin... | 3 | 1,357 |
Save cocoa App Passwords In strings | <p>I'm trying to make an app for my own use secured with 5 passwords and have all my passwords and pins in it if u type all 5 passwords correctly.</p>
<p>and I'm wondering if i add the passwords programatically and build the app so everything is inside the textfields or in source files in string codes can people hack ... | 3 | 1,827 |
Nginx geoip does not show the country in the logs | <p>I am using a public repo for nginx configured for geolocation with geoip, but I am getting dashes in the fields <code>$geoip2_data_country_code $geoip2_data_country_name'</code>. I have the following <code>Dockerfile</code>:</p>
<pre><code>FROM alpine:3.11
COPY GeoLite2-Country.mmdb /usr/share/geoip/
# Install lib... | 3 | 5,362 |
Dynamic row in el-table Vue JS | <p>I'm learning Vue JS. I'm using el-table to display my data as follows:</p>
<p><a href="https://i.stack.imgur.com/Z3AGV.png" rel="nofollow noreferrer">el-table data</a></p>
<p>Basically, I'm creating a function for a button's clicking event that contains parameter using properties of the row in the table (scope.row.i... | 3 | 6,427 |
DiscordAPIError: Invalid Form Body options[2]: Required options must be placed before non-required options | <p>Okay guys so after I posted the first question and got no answer, I almost surfed the whole net, formatted the code but still couldn't find a fix.</p>
<p>I keep getting this error when I register about 13-14 slash commands using the <code>commands.set()</code> method:</p>
<pre><code> throw new DiscordAPIError(d... | 3 | 7,952 |
Converting an AVFrame to QImage with conversion of pixel format | <p>I need to extract frames of videos to images in my QT application. I don't know in advance the pixel format of the source videos/frames (yuv, rgb...), But I need to obtain a reliable image pixel format such that I can consistently handle the images later.
I'm using the ffmpeg libraries to get the frames, which are a... | 3 | 1,235 |
Problem size and input pre-process costs in finding time complexity of an algorithm | <p>I read different topics about time complexity on algorithms. I try to understand and learn how to analyze algorithms, but I still have some concerns. Therefore, I hope that this topic will help to make them clear.</p>
<p>Here is a problem:</p>
<blockquote>
<p>Give an integer <strong>n</strong> (1 ≤ n ≤ 10^18). Remov... | 3 | 1,710 |
ERROR in No NgModule metadata found for 'Module' | <p>When building Android App from Ionic4 using "ionic cordova build android"</p>
<p><strong>package.json</strong></p>
<pre><code>{
"name": "campusrides_v2.0",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "https://ionicframework.com/",
"scripts": {
"ng": "ng",
"start": "ng serve",
... | 3 | 2,033 |
How to only delete one item at a time in ReactJS? | <p>I'd like to, when a user deletes on row, for only that row to be deleted. Currently that only happens sometimes. And when you have only two items left to delete, when you click on the delete button, the row's data toggles and replaces itself. It doesn't actually delete.</p>
<ul>
<li>mainCrud.js - houses the add and... | 3 | 3,003 |
python3: Extract same type value from Json file | <p>The following is my Json file which is decoded on base64.</p>
<pre><code>response={"response": [{"objcontent": [{"title": "Pressure","rowkeys": [
"lat",
"lon",
"Pressure"
],
"rowvalues": [
[
... | 3 | 1,929 |
populate a new column in a df with new values | <p>I'm looking to populate a new data frame column with a calculated value that is unique to each subgroup of data. Here is my exact code:</p>
<pre><code> df <- read.csv('data_30_Mar2015.csv')
df$dCT <- NA
#FUNCTION
calc_dCT <- function(sample, DF){
sample_df <- DF[ which(DF$Sample=='sample'),]
pr... | 3 | 1,127 |
For-loop working but not as axpected | <p>I'm working on making a loop to compute three columns: the min, the max and the mean of the mesurement of several plots. I am working with forest inventories of several measurements at thousands of plots.
What I want to do is to compute the min, max and mean of the basal area (a measurement) for each species (153 sp... | 3 | 1,603 |
PHP - foreach repeating values in every new created array | <p>I'm looping in an <code>array</code> and trying to get and push each <code>element</code> in another array with <code>associative key</code>. then push it again in another array that serves as a <code>Row</code> array. The loop shouldn't push the previous <code>element</code> on the next <code>Row</code> array. But ... | 3 | 1,269 |
Bootstrap 4: Column rows | <p>No clue how to name this, honestly. So I'll just give you an image. </p>
<p>I need to make my columns to look like this: </p>
<p><a href="https://i.stack.imgur.com/I9iFV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I9iFV.png" alt="enter image description here"></a></p>
<p>To make the second ... | 3 | 2,241 |
For a group of ids pick out distinct ids in another column and count | <p>Im working on a project at my University and its really important I get this right. I think I have it working but I had to learn SQL in the last few days to do this and I want to post it here to double check with you all who know more about SQL than I do. </p>
<p>Here is a small example to test</p>
<pre><code>inde... | 3 | 1,279 |
Why is not number of bean ONE? | <p>I saw <a href="http://opencv-java-tutorials.readthedocs.io/en/latest/05-fourier-transform.html" rel="nofollow">http://opencv-java-tutorials.readthedocs.io/en/latest/05-fourier-transform.html</a> and I want to do it in Spring Framework. It seems to work well. But number of controller is 2. And When I click button, ne... | 3 | 6,765 |
Post SOAP XML Request | <p>I was trying several examples from here, but nothing seems to work for me.</p>
<p>I need to send this envelope for the request:</p>
<pre><code><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:v2="http://xmlns.oracle.com/oxp/service/v2">
<soapenv:Header />
<soapenv:B... | 3 | 1,050 |
Internet explorer versions >8 compatibility issues, not working with meta code too | <p>I have of compatibility issue of my website working on internet explorer versions 9 and above only. I searched the net but I got no answer. I got something close, if I add this line:</p>
<pre><code><meta http-equiv="X-UA-Compatible" content="IE=edge" />
</code></pre>
<p>The website works on Internet version ... | 3 | 4,799 |
Hibernate doesn't get the full @ManyToOne object information needed after executing update | <p>I have a scenario when I need to update a relation a detail table "USER_PROFILE" in this case and update it's relation column reference to "NATIONALITY" parent table (just a change for NATIONALITY_ID column in USER_PROFILE, and NATIONALITY table is just a predefined lookup and won't change).</p>
... | 3 | 2,230 |
Difference between when applying tbody td:nth-of-type(3){ border-bottom-color: transparent; } and tr.noborder td{ border-bottom: transparent; } in CSS | <p><strong>First Scenario:</strong></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-css lang-css prettyprint-override"><code>h1{
text-align: center;
}
td{
width: 100px;
height: 100px;
border-right: 1px solid g... | 3 | 1,533 |
ng-submit is not working | <p><em>I HAVE A FORM BUT NG SBMIT DOESNOT CALL THE FUNCTION</em> </p>
<p>I dont understand why this form not submitting . i have check every thing but it not even call the alert button also </p>
<p><strong>HTML</strong></p>
<pre><code> <form role="form" name="frmCashback" method="post" ng-submit="CashbackUser(frm... | 3 | 2,004 |
htaccess too many redirects on iphones | <p>I have an issue with my htaccess causing too many redirects on a Joomla site on ONLY safari (iphones), works fine on android and i am using the same code on another website which is not joomla and it works fine. Here is the code for the redirect. Again this is Joomla.</p>
<p>Here is the redirect code:</p>
<pre><c... | 3 | 1,788 |
Parallax effects on multiple banner images (Without Using Background Image) | <p>I'm building parallax banner images with text overlays and <strong>I DON'T want to use css. background images</strong> to make this happen as I'm building a Wordpress Theme that can be altered by the client.</p>
<p>Instead, I'd like to keep the <strong>DIV</strong> with the image overlay (and text), positioned relat... | 3 | 2,679 |
Unwind segue issue when navigating back to parent scene | <p>I'm trying to unwind segue form a scene. It works fine but I need to get a value to the parent screen. (I use the push segue to navigate from parent to child scene)</p>
<p>I'm calling the unwind segue like this</p>
<pre><code>- (IBAction)done:(UIStoryboardSegue *)segue {
NSLog(@"gonna navigate");
RESTToppi... | 3 | 2,081 |
How can I change my html script to run a command line command | <p>I've had a look to see if this has been covered elsewhere but I couldn't find anything, so can anyone help me, please?</p>
<p>I have an html page, which includes a script section. Currently, the script shows a button to start and stop the streaming of esp32 camera video to a webpage. The relevant sections are these,... | 3 | 2,492 |
Select Tag Data Bind Issue In AnjularJS | <p>I have a strange Issue in Angular JS, where I am not able to data bind data to a Select control. Let me explain the issue.
I am dynamically creating controls in my application, all the information that is needed to create the controls comes from the data base. Like control type(textbox,checkbox dropdown list), contr... | 3 | 1,357 |
CodeIgniter Login using google openid | <p>I'm new to CodeIgniter framework. I have tried login using openid for that i copied lightopenid url and put it in config/config.php</p>
<pre><code>$config['base_url'] = 'https://gitorious.org/lightopenid/lightopenid/raw/9d42dc24e4dd34121c98a6491bc3ef7933a68a19:openid.php';
A PHP Error was encountered
Sever... | 3 | 1,496 |
Page redirection (on Flickr) issue for WP7 WebBrowser | <p>I am having some difficulties with the OAuth authentication process with Flickr in the WP7 Mango WebBrowser control.
After for example "Google" sign in the browser gets redirected to the following page:</p>
<pre><code><html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body dir="" onload... | 3 | 1,662 |
HtmlAgility edit HtmlNode inside foreach | <p>I'm trying to replace some nodes inside my root document with some edited HTML but i'm getting an error: <code>Collection was modified; perhaps enumeration operation is not performed. on parallel foreach</code>. I know this error occurs because i'm modifying the original structure inside a loop. How could i do it ? ... | 3 | 1,157 |
How to fit whole image inside Bootstrap Carousel? | <p>The bottom part of the images are always cut out. Does anyone know how I can fix this? Thanks for your help! </p>
<p>Here is the code I have for the bootstrap carosuel:</p>
<pre><code><div id="carousel_world">
<div id="carouselExampleIndicatorss" class="carousel slide" data-ride="carousel">
... | 3 | 1,651 |
C++ .EXE Crashing Unhandled exception at 0x10006454 (libmySQL.dll) | <p>I am trying to connect to an online MySQL database(Which I managed to do) but I crash after I reach "Loading map data" and I get this error when I debug:</p>
<pre><code>Unhandled exception at 0x10006454 (libmySQL.dll) in Spitfire.exe: 0xC0000005: Access violation reading location 0x00000000.
</code></pre>
<p>This ... | 3 | 1,701 |
Issue with Geofences - addGeofence() not 'working'? | <p>I'm Having an issue with creating a list of Geofences. Within my onCreate method I have a for loop which calls createGeofence() and createGeoFenceRequest(). Within createGeofenceRequest, the builder should use the addGeofence method which then calls createGeoFencePendingIntent(). My Stack Trace is showing that on cr... | 3 | 11,322 |
How do I omit the xml version tag when a xml file is created in php | <p>I've made this program that updates an xml file based on entries in an array.
I've used FILE_APPEND because the entries are more than one and otherwise file gets overwritten. But the problem is the xml version tag prints out as many times as many entries are there.
So i want to remove this tag.
Here's my program:-</... | 3 | 1,076 |
blazor add parameters to templated component | <p>I have a Blazor Popup that takes a template to show his content:</p>
<p><em>CustomPopup.razor</em></p>
<pre><code><Popup
@bind-Visible="@CreatePopupVisible"
HorizontalAlignment="HorizontalAlignment.Center"
VerticalAlignment="VerticalAlignment.Center"
ShowFooter="... | 3 | 1,513 |
helloworld on Kie Server version 6.4.0 | <p>I am currently evaluating KIE Server without using KIE Workbench.
The scenario am evaluating is, </p>
<p>1) A third party will give me a drl file its value object (VO which will be used inside drl). I need to create a kjar or jar programmatically through a standard maven project structure and also create a contain... | 3 | 3,742 |
Change cell value in a row based on others | <p>I have the following table with two columns and two inputs each:</p>
<pre><code><table id="ASD" style="border:1px black solid">
<thead>
<th>Columna 1</th>
<th>Columna 2</th>
</thead>
<tbody>
<tr name="1" style="border:1px black solid">
<td style="borde... | 3 | 1,232 |
Angular 2 Beta Routing Error: Template parse errors: Can't bind to 'router-link' since it isn't a known native property | <p>I just started learning angular 2 and I am trying to set up a router. I checked out other blogs about this and nothing has worked so far. I have a basic setup with an apps Component that would be shown when the user clicks the links at the top of the page. </p>
<p>Here is the code I have so far. I am sure that some... | 3 | 1,563 |
Paperclip video attachment error using paperclip-av-transcoder | <p>I am making a Ruby on Rails application and am trying to allow video files to be uploaded through the application.</p>
<p>I'm using the paperclip gem to handle the attachment of files, paperclip-av-transcoder gem (as suggested) to handle the transcoding. I also have the aws-sdk gem installed, but that's irrelevant ... | 3 | 1,144 |
Make bins in 100000 intervals and count occurrences with R | <p>I'm working with genomic data in this format:</p>
<pre><code>chr start end lengthabs_summit pileup X.log10.pvalue. fold_enrichment X.log10.qvalue. name
chr1 29017 29389 373 29358 31 28.59002 11.7551 24.95703 7_peak_2
chr1 569886 569978 93 569924 1334 334.59555 3.66639 329.13641... | 3 | 2,886 |
ngx-mat-select-search is not loading the data in dropdown after init | <p>Reference used:
<a href="https://stackblitz.com/edit/github-yn8zve-xl2vcs?file=src%2Fapp%2Fexamples%2F01-single-selection-example%2Fsingle-selection-example.component.ts" rel="nofollow noreferrer">https://stackblitz.com/edit/github-yn8zve-xl2vcs?file=src%2Fapp%2Fexamples%2F01-single-selection-example%2Fsingle-select... | 3 | 1,204 |
jQuery unobstrusive validation fetch server response and display it | <p>I have a form like following: </p>
<pre><code>@using (Html.BeginForm("DoRegister", "User", FormMethod.Post))
{
@Html.AntiForgeryToken()
<div class="inputBox">
@Html.TextBoxFor(m => m.FirstName, new { @class = "form-control", @type = "text", @aria_describedby = "emailHelp" ... | 3 | 1,746 |
building android-7.1.2_r36 on ubuntu 18.04 fail | <p>I was building AOSP(android-7.1.2_r36,aosp_x86_64-eng) on ubuntu 18.04 with openjdk version "1.8.0_212" but it always fail in the same error.</p>
<p>My computer has 32G memory,so I dont think it fails because of lacking memory.</p>
<pre><code>ERROR: /home/duoduo/aosp/out/target/product/generic_x86_64/gen/JAVA_LIBR... | 3 | 3,230 |
Button Crashes App When Touched In Swift | <p>I made a button called <code>playAgainButton</code>, which is a button that allows the Tic Tac Toe game reset so you can play again...but this <code>playAgainButton</code> is crashing my app, instead of reseting the game to the default <code>gameState</code>. </p>
<pre><code>import UIKit
class ViewController: UIVi... | 3 | 1,584 |
popup disappear for few seconds in android chrome browser when scrolling | <p>I have a dialog box, it is made as a popup, but whenever I scroll on an android device with a chrome browser, it disappers for a few seconds only to reappear.</p>
<p>The dialog box contains a HTML form that the user needs to fill out, the data does however stay in the form.</p>
<p>I have looked all over JqueryMobi... | 3 | 1,627 |
Unable to access SQL Server database in asp.net | <p>I am trying to access an online SQL Server database using asp.net</p>
<p>I have used following lines in the code,</p>
<pre><code>string connectionString = "Data Source=xx.xx.20x.82;Initial Catalog=mydbname;User ID=myusername;Password=mypass";
string insertSql = "INSERT INTO Users (FirstName, LastName, UserName, P... | 3 | 1,835 |
WebRTC: setRemoteDescription throwing error | <p>I have been using one of the open-source(Muaz Khan's) library for WebRTC. The following error is thrown in the following line of code : </p>
<pre><code>peer.setRemoteDescription(new RTCSessionDescription(remoteSdp), cb || function() {}, function(error) {
if (!!connection.enableLogs) {
console.error(JSON.str... | 3 | 1,557 |
NodeJS with Scaffold: How to set up dev environment? | <p>I'm trying to set up a dev environment for my Nodejs project using Skaffold to handle k8s. I notice that sometime when there's an error (usually syntax error cause I'm using auto-save), the entire local server seem to stop working and the error message doesn't get displayed. Sometimes it can fix itself but most of t... | 3 | 1,339 |
Set a value to HTML select while using Ajax and SweetAlert2 | <p>I am building a form using SweetAlert2 + Ajax, but I have a problem with the <code><select></code> tag, so I will skip segments of the code that have nothing to do with the problem</p>
<p>The Ajax sends the email to the PHP code, then with the email I make a MySQL query to get the full information from the use... | 3 | 1,479 |
adding field value from aggregation to an array | <p>Skill collection:</p>
<pre><code> "skillID" : "10cff2ae-76e7-455a-b1f2-07c6104d254b",
"skillname" : "java",
"languageID" : "84c2613c-81c3-4477-ab38-433aaef74373",
"languagename" : "English",
"noofendorsement" : 0
"skillID" : "10cff2ae-76e7-455a-b1f2-07c6104d254b",
"skillname" : "जावा",
... | 3 | 2,651 |
Is there any way to stop pycurl perform() execution? | <p>I'm currently working on a simple multi-threaded downloader with pycurl and python, now I can pause the download if I want but that simply eats too much memory and if the process is killed I cannot directly resume it. So I came up with a workaround (not implemented yet) to stop the download, save the byte position (... | 3 | 1,579 |
The fixed header tables are getting issue with horizontal scrolling | <p>I'm trying to create a demo with Fixed Header Tables. The first table horizontal scrolling is working fine but I'm getting a problem with a second table horizontal scrollbar. When I'm scrolling the horizontal scrollbar of second table the vertical scrollbar area is not fixed. I'm sharing my code.</p>
<p><strong>Tab... | 3 | 6,835 |
$http Service Not Invoking and No Error in Browser | <p>I am new to AngularJS and trying to write simple POC application, I am trying to load messages for a user but the $http service is not invoking even the controller is not loading. No errors in console. I am sure there must more easy way to implement this kindly suggest. My files are below kindly help, thanks in adva... | 3 | 3,837 |
What's best way to playback forward and backward a high fps video programmatically? | <p>I need to playback video programmatically forward and backward, by having a slider that sets the playback speed and direction; with about 150-400 fps. Visually, it would be like:</p>
<pre><code>[-10x][-8x][-4x][-2x][1/8x][1/4x][1/2x][1x][2x][4x][6x][8x][10x]
</code></pre>
<p>And slowly transitioning between these.... | 3 | 1,130 |
Faster performance for normalizing a numpy array? | <p>I am currently normalizing an numpy array in python created by splicing an image by windows with a stride which creates about 20K patches. The current normalization implementation is a big pain point in my runtime, and I'm trying to replace it with the same functionality done maybe in a C extension or something. I a... | 3 | 2,722 |
how to send parcelable class in android | <p>I have gone through a lot of solutions on SO. But none of them work for me. I am simply trying to send a parcelable class from one Activity to another using </p>
<pre><code>Bundle bundle = new Bundle();
bundle.putParcelable("parcelableMovie", (Parcelable) movieItemArrayList.get(position));
Intent intent = new Inten... | 3 | 1,176 |
AVAssetReader audio capture, samples missing | <p>I've a weird question. I'm capturing some audio samples of a .mov/.wav/.aiff files to playback them.
I'm using the following codes that captures unchanged PCM samples if available , otherwise convert them to 32 bit float.</p>
<pre><code>NSError *error = nil;
AVAssetReader *assetReader= [[[AVAssetReader alloc] initW... | 3 | 4,554 |
Are angularjs has any ways to update the ng-model and the input text value separately? | <p>I have a directive to get the lat log form google map api
and autocomplete the address</p>
<pre><code> .directive('googleplace', function() {
return {
require: 'ngModel',
link: function(scope, element, attrs, model) {
var options = {
types: [],
... | 3 | 1,103 |
'./build_frameworks.sh' fails with `xcodebuild: error: '../AudioKit.xcodeproj' does not exist.` | <p>First time installation of AudioKit with:</p>
<p>-OS X 10.15.5 (19F101)
-XCode Version 12.0.1 (12A7300)</p>
<p>For other people's benefit: running ./build_frameworks.sh initially complained with:</p>
<pre><code>xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/... | 3 | 1,162 |
Signing data in JAVA with secp256k1 and verifying in c++ | <p>I want to sign data in Java and then veify it in c++. When I sign the data in c++ with bitcoin-core/secp256k1 library and then verify it in c++ it works flawlessly. But when I sign it in Java and then transfer it to c++ it does not work anymore.</p>
<pre><code> secp256k1_context *ctx = secp256k1_context_creat... | 3 | 1,086 |
Why the robot doesn't move in RVIZ? | <p>I am working now with the real robot which is turtlebot3 burger. As shown in the rqt_graph below, I've run my custom package which is Im adding the <code>ann3_publisher</code> node to be published to the <code>gmapping</code> package and run in the real robot.</p>
<p><a href="https://i.stack.imgur.com/nDXjP.png" rel... | 3 | 1,475 |
Is there a way to use vectors to determine the order of x-axis labels and plot colours when using facet_wrap in ggplot2? | <p>I would like to make 3 plots using facet_wrap, where I could set the order of the x-axis based on <code>myOrder</code>, and the colours based on <code>myColours</code>.
I have the following <code>data.frame</code>:</p>
<pre><code>Cell <- c("AAA", "AAA", "AAA", "AAA", "AAA", "AAA", "AAA", "AAA", "AAA",
"AA... | 3 | 1,613 |
NASM x64 on macOS using mach_absolute_time - Trouble getting nanoseconds (working code review) | <p>I am just learning NASM so sorry if I am making some obvious mistake but I cannot understand what I am doing wrong. </p>
<p>Please look into the code below and let me know what is incorrect. It compiles & runs ok, but prints garbage as a result.
I know that the info coming from <code>mach_absolute_time</code> i... | 3 | 1,796 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.