title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Get the input from a form to display in textbox in the same web page | <p>My form collecting input.</p>
<pre><code> <table>
<tr>
<td>First Name:</td>
<td><asp:TextBox ID="txtFirstName" runat="server">
</asp:TextBox>
</td>
<td class="style2"><asp:RequiredFieldValidator ID... | 3 | 3,283 |
Button click pulls wrong DataTable for export into Excel | <p>I'm pulling company schedule data from a web API and formatting the data so it can be displayed neatly on a local site and also available to export onto an excel template for distribution across the company.</p>
<p>I've added a button on the bottom of the site to display the previous weeks schedule and another to ex... | 3 | 1,551 |
Unmarshalling a Struct containing an array of structs | <p>I'm trying to get back this struct from a native C library through P/Invoke: </p>
<pre><code>struct ndb_mgm_cluster_state
{
int no_of_nodes;
struct ndb_mgm_node_state node_states[1];
};
</code></pre>
<p>where <code>ndb_mgm_node_state</code> is:</p>
<pre><code>struct ndb_mgm_node_state {
int node_... | 3 | 1,580 |
Rename file while uploading? | <p>I have the following code in my Wordpress. I need to add every uploaded image a counting number like, image_1, image_2, image_3 and so on.. </p>
<p>The purpose of this is that every uploaded image attached to post, gets post ID name, and counting number in end to it.</p>
<p>It would be great if some one help me wi... | 3 | 1,274 |
How to disable google map current location tracking after first loading android | <p>I am google map apis for my current location. I am working on map application in which it first load current position then user can be able to point to any where on the map. My problem is that if i am moving, then my location is again and again moving towards my current position and user is not able to point the des... | 3 | 1,497 |
I need to redirect iframe to different page when the form is submitted | <p>This is my code:
I have tried many ways to redirect iframe to a different page when the function is called.
I need to solve this and I need to know how to load iframe on a different page when I input the alphabet in the input field</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data... | 3 | 1,090 |
Detecting duplicates in pandas when a column contains lists | <p>Is there a reasonable way to detect duplicates in a Pandas dataframe when a column contains lists or numpy nd arrays, like the example below? I know I could convert the lists into strings, but the act of converting back and forth feels... wrong. Plus, lists seem more legible and convenient given <a href="https://www... | 3 | 1,178 |
Change function in order to have a separate JS file - AJAX, HTML and MySQL | <p>I'm doing a project atm and I need to display a table from MySQL in a HTML page. I have code currently that is doing this but as I am using framework 7, I need to change the JavaScript function so that I can move the function to a separate <code>.js</code> file instead of having all the code in my HTML file. I liter... | 3 | 1,368 |
MultiLayer Neural Network | <p>Below is the code (taken from somewhere on the internet) that I am trying to use for Multilayer neural network.</p>
<pre><code>import math
import random
BIAS = -1
"""
To view the structure of the Neural Network, type
print network_name
"""
class Neuron:
def __init__(self, n_inputs ):
self.n_inputs = ... | 3 | 2,098 |
There is no output for my Vue view after adding it to laravel | <p>I tried to connect my Vue Games.vue view but couldn't get my info from this template to the template blade in laravel, I don't understand what is the problem here.</p>
<p><strong>Games.vue</strong></p>
<p>As you can see I write the code here.</p>
<pre><code><template>
<h1>New Vue View</h1>
<... | 3 | 1,549 |
Cannot use nested class of templated class as a type | <p>I'm playing with an implementation of a generic <code>Tokenizer</code> class wrapped inside a <code>tok</code> namespace.</p>
<pre class="lang-cpp prettyprint-override"><code>template <typename TokenEnum>
class Tokenizer {
public:
struct Token {
// ...
};
class Context {
// ...
... | 3 | 2,912 |
AccessibilityService: Is possible draw password on remote smartphone screen with mouse? | <p>I'm working in a project similar to <a href="https://play.google.com/store/apps/details?id=com.teamviewer.quicksupport.market&hl=pt_BR" rel="nofollow noreferrer">Team View QuickSupport</a> and i want know if <a href="https://developer.android.com/reference/android/accessibilityservice/AccessibilityService" rel="... | 3 | 2,626 |
Displaying data into a graph in web service ASP.NET MVC Framework | <p>I am very new to web services and I have just recently started developing a service that receives data from a raspberry pi. All the data sent from the Raspberry Pi is stored inside the Microsoft SQL server, which I have established a connection with my web service. Right now, I am able to view the data when I click ... | 3 | 1,229 |
Xamarin Android BottomBarBadge doesn't properly display counts of 100+ | <p>When I try to display a count higher than 99 in the <code>BottomBarBadge</code>, it won't be displayed correctly because there is not enough space in the Badge. </p>
<p>This screenshot shows a badge which actually contains a count of 110, but it looks like "11" because the "0" is cut off by the small badge:</p>
<p... | 3 | 1,611 |
C - recursive function loses tracks of array's address? | <p>I am implementing a binary search. I seem to have solved my problem but I'd like to understand what was going on.</p>
<p>Here is what I was originally doing for my search:</p>
<pre><code>void find_index(double *list, int val, int low, int high, int *target)
{
int mid;
if (list[low] == val)
{
target[0] ... | 3 | 3,363 |
vuejs datepicker rearrange my template setup | <p>i have try to insert vuejs datepicker in to my vue template but when i add the component it rearrange my template by shifting from right to left. affecting other html elements</p>
<p>this is a picture of my template before adding the </p>
<p><strong>This is my template BEFORE add datepicker</strong></p>
<p><a hre... | 3 | 1,076 |
Eiffel: compilation error `Source of assignment is not compatible with target` | <p>With complete void check set in compiler I've got a Variable is not properly set compilation error on following case which for me is right (in my mind). It says that the source of assignment is not compatible with target. What am I missing here??? (<code>DB_SERVICE.load_from_primary_key...</code>) </p>
<p><a href="... | 3 | 1,404 |
Navigation Bar Using WPF error (Cannot resolve all property references in the property path) | <p>i have worked in Windows form development & new for WPF Development. i don't have any idea about Xaml development. i wrote some code but facing Error </p>
<blockquote>
<p>An unhandled exception of type 'System.InvalidOperationException' occurred in PresentationFramework.dll Additional information: Cannot res... | 3 | 3,670 |
PSET 2: Vigenere Cipher partially working? | <p>I have created the following code as an answer to CS50x PSET2: Vigenere and it works to some extent however when running through check50 I get some errors listed below:</p>
<pre><code>:) vigenere.c exists.
:) vigenere.c compiles.
:) encrypts "a" as "a" using "a" as keyword
:( encrypts "barfoo" as "caqgon" using "ba... | 3 | 2,739 |
java jdbc and jframe | <p>When I execute the application I get 'build successful' but <code>jframe</code> is not displayed on the screen. The application is about retrieving data from an oracle database and
finding the particular person(record) from the database. <code>jframe</code> may have details of person
such as firstname,lastname...et... | 3 | 3,177 |
Is there a way to generate a third category with the usage of .where or any other method? | <p>I can get the two categories, but when I go and implement a third category with the additional coding, I come across an error.</p>
<p>Data:</p>
<pre><code>Active State/UTs
0 6 Andaman and Nicobar
1 14550 Andhra Pradesh
2 ... | 3 | 1,612 |
WSO2 Kafka Inbound Endpoint Retry on Error | <p>We try to use Kafka with WSO2 ESB server.</p>
<p>We've implemented and API which puts incoming messages to Kafka.</p>
<p>Then we've implemented an inbound endpoint that retrieves messages from Kafka and transfer these messages to other external sytems. </p>
<p>Everything works very well in happy path but when we ... | 3 | 1,527 |
SQL count occurrences of values grouped by external tables references | <p>What is the best approach in terms of performance and maintainability to count the number of occurrences of the same value in a table, grouping the results with the same reference that groups the entries of the table?</p>
<p>Let's say I have three tables (concepts have been shrinked in order to represent a scenario... | 3 | 1,226 |
Trying to access array offset on value of type null & isset problem in API call loop - 504 Gateway Time-out server | <p>I am building cron job with API calls in loop for DB entries and Have performance issues.</p>
<p>Particularly in this part:</p>
<pre><code> if (!empty($sudCode) && !empty($sudBroj) && isset($sudCode) && isset($sudBroj)) {
// echo $sudCode . "<br>";
// echo $... | 3 | 3,172 |
How can I pass a value to a current/previous stage in JavaFX? | <p>I'm building a calculator in javafx and I'm attempting to implement a utility where the user can enter the formula they want to compute, instead of typing in numbers and operations one by one. The application should open a new window, the user can type in the formula and then hit calculate. Then the formula window s... | 3 | 11,396 |
Unable to dynamically change KDE Plasma 5 Widget Expandable FullRepresentation Component size outside of Component.onCompleted | <p>I'm coding a widget that can be expanded to its FullRepresentation by being clicked on:</p>
<pre><code> onClicked: {
plasmoid.expanded = !plasmoid.expanded
}
</code></pre>
<p>I have a function that updates its contents and puts them into a Gridview. The update fu... | 3 | 1,424 |
NullPointerException at setProgressImgView | <p>I'm getting a NullPointerException error at line 423:</p>
<pre><code>mProgressImageview5 = (ImageView) findViewById(R.id.loading_empty5);
</code></pre>
<p>and I'm not sure why. Everything was working fine up until a moment ago and I don't recall changing anything related to this and I've looked it over several tim... | 3 | 9,990 |
After groups validation error textbox's position is changing | <p>I have used group validations of jquery validations to validate phone number which contains 3 textbox. My code will display single validation error for 3 textbox. But if validation error occurs then textbox position is changing. Following is my code</p>
<pre><code><!DOCTYPE html>
<html>
<head>
... | 3 | 1,770 |
Android CursorAdapter not refreshing on first load | <p>EDIT I didn't add my XML</p>
<p>I am writing a dialog for tagging selections. The first view is applying tags they have in their db. The next screen is a dialog for adding new tags to their db. I am supplying suggestions for them to use for their tags. I want to filter the list when they begin typing in their tag... | 3 | 6,126 |
Pass image between canvas with Webrtc | <p>I have found a similar question but it doesn't seem to answer my question. I have an HTML5 canvas and i use pubnub with webrtc. What i want to do is to pass my image between the canvas like the data from here are passed <a href="http://pubnub.github.io/codoodler/history.html" rel="nofollow">http://pubnub.github.io/c... | 3 | 1,616 |
Recursive function to reverse an array implementation of a queue in Java | <pre><code>import java.util.Scanner;
class ed {
int fr, r;
int q[];
int n;
ed(int x) {
n = x;
fr = -1;
r = -1;
q = new int[n];
}
void enque(int n) {
int val = n;
while (r < n-1) {
if (r==n-1) {
System.out.println(&... | 3 | 1,135 |
Queue not adding objects - C++ 11 | <p>I have two custom classes, <code>Passenger</code> and <code>Elevator</code> contained in the <strong><code>Passenger.h</code></strong> header file:</p>
<pre><code>#include <iostream>
#include <queue>
#include <vector>
using namespace std;
class Passenger
{
public:
explicit Passenger(int... | 3 | 2,468 |
Capturing (animated) screen behind UIView | <p>I asked a similar question recently on how to add a translucent effect to a UIView and got a good response.</p>
<p>However it used a lot of CPU power to process so I used some of the ideas behind the answer but did the filtering using GPUImage which is much more efficient.</p>
<p>It works well for a static screen,... | 3 | 1,162 |
Shifting a css 3d animation so it is right (instead of left) aligned | <p>I found a great little CSS animation that makes a pure CSS book rotate upon hover. The problem: it is aligned on the left, but I want to adapt it so I can have <em>a second book which is aligned on the right</em>. If you look at my demos you will see I almost managed it. I do have a second book's div on the right si... | 3 | 7,175 |
vertical align middle wont vertical align middle when the div is a fixed height | <p>See below:</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>.fixed-height {
height: 100px;
background-color: green;
}
.fixed-height h1 {
font-size: 14px;
color: re... | 3 | 1,050 |
Triple for loop with arrays | <p>I'm trying to get string with specific value. The issue is with FIND_IN_SET, because <code>$find_demographics</code> doesn't work propely if is outside for loop with <code>$j</code>. Also If I try to move <code>$$demographics_values</code> to the <code>$j</code> for loop, then names for values doesn't work.</p>
<p>... | 3 | 1,171 |
Unfocus live-updating chart | <p>I have a project which consists of two forms, <code>MainForm</code> and <code>CrossCorrPlotForm</code>. On <code>CrossCorrPlotForm</code>, I have two <code>charts</code> (<code>CrossCorrExpChart</code> and <code>CrossCorrRefChart</code>) which I enabled scroll wheel zooming on, using the code described <a href="http... | 3 | 1,578 |
angular2: strange null error from an injected service | <p>I have a very basic web app which has a <code>Home component</code> that uses a <code>localStorage</code> service to check if a local ip has been set. If the local ip hasn't been set it must navigate to the settings page where a local IP can be entered. When I run my app (using ng-cli) I get the following error. ... | 3 | 1,186 |
Why is my nav bar (flex-box) not collapsing when I resize the browser window to a smaller size? | <p>I am tinkering with FlexBox to design my site, and I am trying to apply these techniques to make a responsive and collapsable nav bar (ideally for mobile users). How can I achieve this? Apparently the flex commands in the .nbar class are not working.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data... | 3 | 2,379 |
Giving functionality to a remove button | <p>I want to delete an element from a bootstrap list once the remove icon is pressed. The add function add the string and the remove icon on the list. I am planning to iterate over the list and check if the remove button was clicked and if it was clicked, delete. The problem is that I don't know how to acess the elemen... | 3 | 3,231 |
Javascript elements in Bootstrap not working | <p>I am a beginer in bootstrap. I have tried elements like navbar, dropdowns, modal, carousel etc. and none of them are working properly. I'm guessing, it is because of the JS files which are linked to it. Please help I require these elements for a project. </p>
<p>Thank you.</p>
<pre><code><div class="navbar navb... | 3 | 1,247 |
How to record audio with different frequency? | <p>I am trying to record audio with different frequency. Though I have been trying to implement it by the following code but its not working (app unexpectedly stopped).</p>
<pre><code>//importing packages
import android.app.Activity;
import android.media.AudioFormat;
import android.media.Au... | 3 | 3,148 |
How do i get image or banner above the tab group in titanium android? | <p>I am still pretty new at this but I want a image/banner above the tab bar like this:</p>
<blockquote>
<p>Image/Banner</p>
<p>Tab group</p>
<p>The tabs.</p>
</blockquote>
<p>Is there any way on how to do this :P? I can only get it below the tabgroup.:(</p>
<p>This is my code:</p>
<pre><code>console.log(Ti);
var xhr =... | 3 | 2,429 |
Sql injection script | <p>This title of the question may seem to be previously asked and answered but its different scenario for me. I use this script to stop sql injection in my ASP site. As per my knowledge or injecting script i have tried everything . Is it still possible to break through this code or do you feel this is fine . </p>
<p>H... | 3 | 1,255 |
What are the possible causes of a ConnectionStateError? | <p>I'm having trouble with a <code>ConnectionStateError</code> that happens sometimes on a Plone 4.3.8 site.</p>
<p>I can't find the reason why it happens. I get it in many different situations, I'll post a couple tracebacks to show you what I mean.</p>
<p>Loading a portlet page:</p>
<pre><code>2016-08-01T11:38:15 E... | 3 | 5,334 |
Error executing connecting to database and executing database query | <p>I am creating a log in for a website. index.php file controls what is displayed by checking the user details. It display a message if user is logged in else the login form. I have included the files connect.php and core.php. When I open index.php I get the following error. The variable con is already defined but it ... | 3 | 1,659 |
Python - Heroku urllib2.HTTPError | <p>I've spent the past day or so working with a group to create a facebook app that computes a user's cluster coefficient (a measure of the interconnectedness of their friends.)<br>
In order to accomplish this, I need to get the number of mutual friends the user with each of their friends. Unfortunately, I keep gettin... | 3 | 1,395 |
How to set the threshold for closest date when comparing two columns with dates | <p>I am extracting the rows from two csv files based on values in two columns. The name of columns in both files are same but values are different. I am matching the <code>'Education_Period'</code> column of df22 with <code>'Education_Period'</code> column of df33 to find the rows based on exactly same <code>'Education... | 3 | 2,068 |
ListView Selection color in WPF | <p>I am new to WPF and i am not getting how to change the selection color in the List view. I have tried many things but i am not able to change. Following is the code:</p>
<p><strong>MainWindow.xaml:</strong></p>
<pre><code><Window x:Class="MyListView.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/... | 3 | 1,266 |
MariaDB stored procedure select statement only returning single row | <p>I have created the following stored procedure which creates a table with multiple rows.</p>
<p>The select statement should return multiple rows as well, however it is only returning a single row.</p>
<pre><code>DELIMITER $$
DROP PROCEDURE IF EXISTS sp_loadMarginAllocations;
CREATE PROCEDURE sp_loadMarginAllocatio... | 3 | 1,476 |
How to filter html table td attribute? | <p>I want to filter the td attribute in my HTML table, but it does not return any results. I just want to show the tr data-value attribute that contains the value. does not return the result as I want now</p>
<p>"I am sorry for this English"</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="t... | 3 | 1,070 |
The difference between CASE and UPIVOT to find the max date across the columns; ORA-00904 wrong message | <p>I have millions of IDs and I need to find the max date from 3 different dates for each ID.<br>
Then, I need the start date of the month of the max date.<br>
Here's a reference:</p>
<pre>
+---------+-----------+---------------+--------------------+
| ID | SETUP_DT | REINSTATE_DT | LOCAL_REINSTATE_DT |
+------... | 3 | 1,064 |
How to get a NSBatchDeleteRequest to delete and allow you to add back to an object again | <p>I have the following code.</p>
<pre><code>let workorderFetchRequest = NSFetchRequest<NSFetchRequestResult>(entityName: "Workorders")
let deleteWorkOrderRequest = NSBatchDeleteRequest(fetchRequest: workorderFetchRequest) //Deletes ALL workorders
//Question is will it delete ... | 3 | 1,637 |
calculation error vb.net textbox | <p>I am working with inventory system, Transaction form I had mainly 2 text box, first 1 is avaqty its from database available qty, other textbox is avqty from user adding qty.</p>
<p>When user add qty avaqty textbox automatically change to
(avaqty) -(avqty) but as an example 10-10 result come in -1</p>
<p>My code i... | 3 | 1,176 |
How to get a loaded data from view back to controller to be reused on another function? | <p>I am studying CRUDS in codeigniter and have been successful in displaying data from a database and inserting data in the database. I am not sure where I went wrong here but I need to reuse the ID I loaded in the view page to edit it in the database, I loaded the data using the code below, (its part of a foreach loop... | 3 | 1,204 |
ScheduledTaskAgent not working for updating tiles in Windows Phone | <p>I am working on a Windows Phone 7 app and trying to implement the features of a Windows Phone 8 like wide tiles into it. I achieved it using reflection but when i wanted to update the tile using a ScheduledAgent for a Periodic Task the tile is not getting created.</p>
<p>The scheduled agent OnInvoke code looks like... | 3 | 1,838 |
White row below main menu and above jumbotron | <p>White row appeared below main menu and above jumbotron on a drupal site. I am unable to remove it.
I think that it is css problem but I can't find what exactly causing it. Here is the link to codepen: <a href="https://codepen.io/lomachx/pen/WNbLgYa" rel="nofollow noreferrer">https://codepen.io/lomachx/pen/WNbLgYa</a... | 3 | 1,464 |
How to show selected value from modal on text component in react-native | <h2>How to set selected value from modal on text component in react-native.</h2>
<p>I am using modal component from 'react-native'.</p>
<p>import { StyleSheet, View, Text, TouchableOpacity, Image,Modal,} from 'react-native'</p>
<pre><code> <View style={styles.vwstyle}>
<Text style={styles... | 3 | 1,489 |
How to get just smaller value than target from an array | <p>I am trying to refund funds to the customer whenever one cancel the booking. As I have different refund percent according to the cancellation time, considering how early someone cancel the booking. </p>
<p>Currently, there are mainly two array of data:</p>
<p>1) TimeMeta : This is an array of reserved time slot.</... | 3 | 1,364 |
React - Collect data in a react form - react hooks | <p>I want to collect all the data from a form</p>
<p>I'm using react hooks. From my understanding of hooks, I just need to use a set to update a variable. Currently this doesn't work for me.</p>
<p>I want to collect all the information, then console.log it within my onSubmit form for my next step</p>
<p>I created a <a ... | 3 | 1,726 |
Solution could not found FileStreamResult mvc5 | <p>I'm working on a mvc5 project and at some point I will need to be able to print documents using the application.The problem is I get this error.</p>
<blockquote>
<p>Error The type or namespace name 'FileStreamResult' could not be found
(are you missing a using directive or an assembly reference?)</p>
</blockquo... | 3 | 2,119 |
When the sensor event is changed, the ListItem Click event does not fire or responding very slow | <p>I have an application, on which when device is rotated, i.e., when onSensorChanged(), I am trying to display a ListView with some dynamic data populated in it through a custom list adapter. When the device is rotated, the data in the ListView is to be updated in the ListView dynamically accordingly. I am able to gen... | 3 | 1,612 |
How does this actually update the table? | <p>Warning: I am very new to Access coding.
I am used to .NET and PHP</p>
<p>I just converted an Access 95 program to Access 2007 and I got it all working now I am trying to make some updates.</p>
<p>I have a form that updates a table in the database but I can't find an attached query or anywhere where it actually ... | 3 | 2,827 |
Boost - When interrupting thread, access violation occurs | <p>I have some code, that started in boost::thread. That thread is interrupted in some moment.</p>
<p>Thread code:</p>
<pre><code>void CLifeSimLauncherDlg::hashFilesThread() {
wstring *pathToMainDir = new wstring(L"./LifeSimGame");
boost::this_thread::interruption_point();
MyLib::hashFilesInDirExternal(... | 3 | 1,603 |
Trying to use django pagination I get this error "TemplateDoesNotExist at /videos/" | <p>I keep getting the following error message trying to use pagination in Django. I have tried and tried but can't seem to figure this out. Was gonna do without it but a modern site needs pagination.</p>
<pre><code>TemplateDoesNotExist at /videos/
</code></pre>
<p>this is what I have in my views.py</p>
<pre><code>fr... | 3 | 1,129 |
Trying to Get a new ServerSocket to open fails | <p>I was given the below code by my teacher for a class. I ran it one or twice and it worked fine. However I suddenly cannot get it to run from the command prompt on Windows 8 anymore. No matter what port I specify it just prints "Opening port..." and never continues. No exception is ever thrown. I have disabled my fir... | 3 | 1,117 |
Empty client-side models | <p>I'm working on a Windows Phone 8.1 app, and I'm having trouble getting the client's model objects to obtain their values from the database that I'm hosting on Azure. The code I've written seems to work (at least iterate correctly), but my problem is that the Bars objects are empty. I don't know how to get them to ... | 3 | 3,191 |
Receiving mail in google app engine, handler works but a datastore entity is not created | <p>The datastore entity gets created in the dev server.</p>
<p>However, when I deploy the app and send a mail, it receives the mail and runs the handler however no datastore entities are created, here is the handler code:</p>
<pre><code> 1 import logging, email
2 import wsgiref.handlers
3 from google.appengine.e... | 3 | 1,146 |
Order values in specific way based on values in group before and after | <p>I have a task where i need to read a table from a database that looks like following for example:</p>
<pre><code>------------------------------------
| id | value | date |
------------------------------------
| 1 | val1 | 23-12-2020 |
------------------------------------
| 2 | val2 ... | 3 | 1,333 |
Convert csv to nested json format using pandas | <p>Below is the csv file which needs to be converted to nested json form. I was able to get the details for individual servers in json form but was unable to convert it into nested form. There are 20 more parameters in the csv file but I have added only 6 parameters.</p>
<pre><code> ,How many servers are required?*... | 3 | 1,713 |
flow_from_dataframe doesn't work when I save dataframe then read it back | <p>When I read a CSV file then split data to train and test data from that dataframe. After that, I'm using flow_from_dataframe to create data generator, that works. But when I try to save train and test data to CSV file because I don't want to change train and test data every time and read it back then using flow_from... | 3 | 1,437 |
Node JS crashes when gatsby builds the images | <p>When I run gatsby develop it works fine, but when I run <code>gatsby build</code> node js crashes with this error:</p>
<pre><code> [== ] 46.026 s 69/896 8% Generating image thumbnails
<--- Last few GCs --->
[38861:0x102802000] 75001 ms: Scavenge 1286.0 (1422.9) -> 1285.5 ... | 3 | 1,904 |
BroadcastReceiver Won't work in android 9 after avoid the linter reports UnsafeProtectedBroadcastReceiver | <p>Im using scheduledAlarm to trigger <code>BroadcastReceiver</code> which Start <code>JobIntentService</code> it worked fine but when i inspected the code i got <code>UnsafeProtectedBroadcastReceiver</code> I added if condition check in <code>onReceive</code> method to fillter the action but <code>JobIntentService</c... | 3 | 1,254 |
Unable to fetch response using Retrofit2 + RXJava2 but fetching response in POSTMAN | <p>I am trying to fetch JSON response from the server for networking I am using Retrofit2 and Rxjava2 to fetch data from the server. Below is my JSON response from the server.</p>
<pre><code>{
"status": "Success",
"panHolderName": "xxxxxx",
"dateOfBirth": "xx-xx-xx... | 3 | 3,658 |
Custom splash images not appearing in LaunchImage.launchimage folder in Ionic 3 project | <p>I have created a new Ionic (v3) project and want to add spash screen to support iPhone XS max and XR. The problem that I am facing inspite of declaring the path and other specs required to get the splash image for a particular device in <code>config.xml</code> is that I could not see the same image in my <code>ios</... | 3 | 3,127 |
Image doesn't follow the page flow and covers ul | <p>When I try to add an image to the bottom of a page, after an <code><ul></code>, the image stacks up to this list, not following the flow of the page.</p>
<p>The actual result:
<img src="https://i.stack.imgur.com/SuJur.png" alt="how the page displays the problem"></p>
<p>The intended result:
<img src="https:/... | 3 | 1,399 |
How does this functional Javascript example work? | <p>I just don't seem to be able to wrap my head around this snippet of code. Could you give me a hint or two on it? </p>
<pre><code> var filteredList = watchList.map(function(e) {
return {title: e["Title"], rating: e["imdbRating"]}
}).filter((e) => e.rating >= 8);
</code></pre>
<p>The question: I understan... | 3 | 1,656 |
Page loading error on using jquery mobile | <p>I am trying to develop a mobile website, but I got stucked at a dialog confirmation box. The website will be redirected to a home.php after successful login and then there is a database fetched values in the fields, when the member hits next>> button it will print the details from the previous home.php page in confi... | 3 | 1,818 |
Django could not detect newly added database after adding router | <p>I have three database out of which one is set to default.</p>
<p>I have already created router for ringi database and it working perfectly fine. Now i would like to add one more database and after creating the new router for database named cms, its not working.</p>
<p>So my project name is wshp and one of router for... | 3 | 1,036 |
SQL Server Compact Code First: Database not created | <p>I want to use Entity Framework code first to create a SQL Server Compact DB.
I first created the model classes, then the DB context:</p>
<pre><code>public class Peng_Rob_BinaryInteractions
{
[Key]
public int PID { get; set; }
public int ID1 { get; set; }
public int ID2 { get; set; }
public Null... | 3 | 1,114 |
Qt - Configuring interface through xml | <p>I have a local xml file telling me:</p>
<ul>
<li>how many "swiping" pages my interface must have</li>
<li>for any page, how many rows</li>
<li>for any row, how many columns
(any column will contain a label and a value which depend on the attributes that you find between the nodes )</li>
</ul>
<p>This is a template... | 3 | 1,439 |
Parameter type UnsafePointer<Void> in glDrawElements | <p>I am trying to get my <code>context</code> (<code>EAGLContext</code>) to render in Swift; but for days I haven't been able to the function <code>glDrawElements</code> to work.</p>
<p>I have read a couple of similar questions here on Stackoverflow but to no avail.</p>
<p>My <code>glDrawElements</code> is as follows... | 3 | 2,073 |
Need help on reading a character from a string | <p>My program is supposed to ask the user to input their credit card number and then display whether the numbers are valid or invalid and if valid ,display the card type. I'm having trouble trying to read the first 2 characters in the cardNumber string in order to find out whether the card type is visa,mastercard,ameri... | 3 | 1,204 |
MySQL select last image in LEFT JOIN | <p>I have this function that lists the first inserted image and other data from accommodation database. </p>
<pre><code>function getLIST($sort_by,$saved=0,$filter)
{
$session = JFactory::getSession();
$lang =& JFactory::getLanguage();
$query = "SELECT a.id FROM #__jomholiday_fields AS a where a.name='... | 3 | 6,852 |
How to merge 2 td in a single td only in a row using jQuery? | <p>I am using jQuery to parse the JSON data and load into a table using AJAX but how can I make the td element merge in a single row only? Don't mind the position of the Header I'm just worried with the data.</p>
<p>My Result:</p>
<p><a href="https://i.stack.imgur.com/BaCOR.png" rel="nofollow noreferrer"><img src="ht... | 3 | 2,336 |
PersistentObjectException: detached entity passed to persist - Got this exception when run method 2nd time | <p>The first time I run the method, it works fine, the object is persisted. But the 2nd time it fails and give me the exception:</p>
<pre><code>javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: br.edu.ifpb.calendario.models.Usuario
org.hibernate.jpa.spi... | 3 | 1,642 |
Jquery mobile stuck on loading while trying to follow demo | <p>I am trying to add a searchable select control to my Jquery mobile powered web application.The only Stack Overflow question I could find on the topic is this one</p>
<p><a href="https://stackoverflow.com/questions/18094930/jquery-mobile-how-to-make-custom-select-box-with-filter">Jquery Mobile: How to Make Custom Se... | 3 | 1,794 |
Scraping in Python - Trying to get URL for next page | <p>I have been tried to scrape this <a href="https://ba.olx.com.br/grande-salvador/salvador/imbui/imoveis/venda/apartamentos?pe=280000&ps=200000&ros=2" rel="nofollow noreferrer">Olx ad webpage</a> with Python, but I cant make it to find the link for next page, because <code>h.xpath</code> returns empty array. I... | 3 | 3,468 |
NodeJS Puppeteer Error in Windows Docker but not Windows10 | <p>I could print PDF successfully when I am running on Windows10 <code>node puppeteer.js</code> directly. However, when I pushed to Windows Docker, I faced below error:</p>
<pre><code>[2019-10-23T05:10:53.160Z] Puppeteer Error:
Error: Page crashed!
at Page._onTargetCrashed (C:\App\node_modules\puppeteer\lib\Page.j... | 3 | 1,120 |
Can I create another context to send through sum values | <p>I want to create another context to send another query set through to the HTML. I want to send the sum of all total sales from the Transaction model to the HTML. Is this possible and if so how would I go about it?</p>
<p>View Below</p>
<pre><code>@login_required
def portfolio(request):
context = {
'tra... | 3 | 1,319 |
How to handle button click on recyclerView? | <p>I have the following code, how do I handle the button click with the current card title? I have already tried everything I can, but just can't found a way to handle it.</p>
<p>This is my current <code>MainActivity:</code></p>
<pre><code>
public class MainActivity extends AppCompatActivity {
private RecyclerVi... | 3 | 4,142 |
How to put char ('X') to int array? | <p>Hi I have 2D array type of int where I have numbers, for example from 1 to 100. </p>
<p>It's a game - something like Tic-Tac-Toe - but I use bigger array. So I need to put a character 'X' or 'O' from user to this array. But problem is I can't (don't know) how to put these characters in that int array. I wan to use ... | 3 | 1,420 |
Xamarin Android Location updates not being called | <p>I am trying to log location during an activity however I am not getting location updates. I have played around with the min refresh interval as well as the distance interval however it still doesn't work. I followed Xamarin's example for location updates but I've been banging my head against the wall as to why locat... | 3 | 1,563 |
PHP Posting an array from a form is not working | <p>I have some checkboxes with printed values according to the database which are working fine.<br>When I submit the form it gives me an error saying that the variable which I posted from the checkboxes array is not defined and that way I cant insert the values in the database.<a href="https://i.stack.imgur.com/OhRXF.p... | 3 | 1,224 |
JavaFX (Maven) project with EJB too slow to compile | <p>I am trying to create a new JavaFX project, using Maven and EJB (the IDE is Netbeans). The project only works when I use the following dependency in pom.xml:</p>
<pre><code> <dependency>
<groupId>org.glassfish.main.extras</groupId>
<artifactId>glassfish-embedded-all</ar... | 3 | 2,358 |
Connect Java to HBase Remotedly | <p>I'm trying to connect Java to HBase in remote server.</p>
<p>Here is the case :</p>
<p>The java class is in my local computer (192.168.111.165)</p>
<p>The Hadoop File System and HBase is in another server (192.168.11.7)</p>
<p>Here is my Hadoop's core-site.xml (in 192.168.11.7) :</p>
<pre><code><configuratio... | 3 | 2,383 |
Exporting STL std::vector functionality trough DLL | <p>I have written a piece of code which uses C++ STL (std::vector) internally to store some info and then provide it trough C like functions that will be exported later in Windows DLL. I am wondering if this way will be correct and stable. I will be appreciate if someone with some experience in this field could confirm... | 3 | 1,104 |
Cancelling from Facebook Permissions dialog redirects and does not close | <p>I am trying to add Facebook login functionality to my web site using Javascript.
I have called FB.init and FB.login and get the expected popup window that asks me to log in with my Facebook credentials. The call to FB.login requests user_birthday and email permissions so I also get the expected dialog that asks me ... | 3 | 1,116 |
What kind of library to make or use in order to resize an Image by reasing Symfony 3.0 config | <p>Hello fellows I on my asympfony 3.0 project I want to make a Library that when is constructed to read from config.yml these parameters:</p>
<ul>
<li>max_width</li>
<li>max_height</li>
</ul>
<p>And the library will read them and will perfom a image resize to these dimentions provided by config.yml or any other way ... | 3 | 2,943 |
Creating a dataframe out of an array | <p>I have a data mining script that returns my data into an arrays like that:</p>
<pre><code>price_per_m2 = [742.0, 1210.0, 954.0, 1078.0, 910.0, 1553.0, 0, 1.0, 417.0, 553.0, 41.0, 550.0, 367.0, 11.0, 533.0, 2.0, 1139.0, 1466.0, 1042.0, 800.0, 906.0, 60.0, 91.0, 812.0, 412.0, 1000.0, 64.0, 778.0, 63.0, 1043.0, 899.0, ... | 3 | 3,213 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.