title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Error: ER_PARSE_ERROR: You have an error in your SQL syntax | <p>I am using express node.js with mysql to build the api's and want to connect these api's to the front end but i have face an error, due to this my application didn't run properly plzzzz tell me whats the problem in my code.</p>
<p>And my error is :
Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check ... | 0 | 1,629 |
django rest framework- how can I pass query params to foreign key serializer? | <p>For my application, I have Locations, and Events given by the following (simplified) models:</p>
<pre><code>class Location(models.Model):
name = models.CharField(max_length=64)
class Event(models.Model):
location = models.ForeignKey(Location)
date = models.DateField()
</code></pre>
<p>In my API, I hav... | 0 | 1,128 |
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved in /app/node_modules/@babel/helper-compilation-targets/package.json | <p>I'm having trouble building my nuxt images in a travis CI pipeline. My local environment is ubuntu 18.04 - docker version 19.03.11 docker-compose version 1.24.1 I'm able to build and run my images locally but on the travis CI I get the following error</p>
<pre><code>Step 5/7 : RUN npm run build
---> Running in ... | 0 | 1,671 |
How to refresh ListView dynamically? | <p>I am making a ListView with TextView and 1 delete button for each row. </p>
<p>To populate the list I am using my custom adaptor (extends base adapter) and sqlite db to map into list.</p>
<p>My requirement is onclick of delete button in a row that record should be deleted and list should refresh.</p>
<p>I am abl... | 0 | 2,111 |
InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String' | <p>So I am try to pass some linq data from my controller to my view much like <a href="https://stackoverflow.com/questions/6886143/getting-razor-view-to-understand-linq-to-sql-objects">Getting Razor View to understand Linq to SQL objects</a></p>
<p>but I get an InvalidCastException every time my controller looks like ... | 0 | 1,988 |
An unexpected error occurred on a send. EOF or 0 bytes from the transport stream | <p>I make a request to an https site with this code:</p>
<pre><code> webRequest = (HttpWebRequest)WebRequest.Create(new Uri(urlDestination));
webRequest.Method = "POST";
webRequest.ContentType = "application/x-www-form-urlencoded";
webRequest.ContentLength = bytes.Length;
... | 0 | 1,106 |
Lazy Load images on Listview in android(Beginner Level)? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview">Android - How do I do a lazy load of images in ListView</a> </p>
</blockquote>
<p>I am working on the listview with the custom adapter. I want to lo... | 0 | 2,820 |
WritableStringObjectInspector cannot be cast to BooleanObjectInspector | <p>Every time i run a hive query which has an OR condition from my java program, I get the following error,</p>
<blockquote>
<p>Caused by: java.lang.ClassCastException: org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableStringObjectInspector cannot be cast to org.apache.hadoop.hive.serde2.objectinspecto... | 0 | 1,624 |
Pagination with ListView in flutter | <p>I'm new at flutter and I have been searching for proper result of pagination for 2 days.</p>
<p>I followed this code <a href="https://stackoverflow.com/questions/49508322/flutter-listview-lazy-loading">Flutter ListView lazy loading</a>
But didn't achieve what I want. Look at below code.</p>
<pre><code>import 'pack... | 0 | 3,981 |
Invalid base64-encoded string: number of data characters (217) cannot be 1 more than a multiple of 4 | <p>I am learning Django and creating a to-do app using the framework. While setting up the Django rest framework API, I got an unusual error. I've been using Django for quite a while, but have never come across this error before. I don't know why this error is getting thrown.</p>
<p>The error occurred the very first ti... | 0 | 3,753 |
Unmarshaller and schema in JAXB | <p>I have application that can save file in various formats (all of them is xml). So I should solve problem with determination in what format file have been saved. So, I see 2 solutions</p>
<ul>
<li>different formats have different schemas, so I could determine it by them.
I set schemas in way that I get from <a href=... | 0 | 2,120 |
How to pass a icon and text to a button in React? | <p>I have to pass an icon and text to a button, and this button is in a component, and that component name is ReusableButton in my project. My problem is I have two more buttons with same button style, but the icon and text are different. So If I know how to pass an icon and text to a button, then I can resume that but... | 0 | 2,044 |
Assignment operator in linked list C++ | <p>I'm trying to implement linked list in c++. </p>
<p>I implement my assignment operator like this:</p>
<pre><code>// assignment operator
template<class T>
LinkedList<T>& LinkedList<T>::operator = (const LinkedList& rhs) {
if (&rhs != this) {
Node *tmp = head;
while (tmp ->... | 0 | 1,932 |
Python: Can't connect to HTTPS URL because the SSL module is not available | <p>I'm trying to connect to Stripe to setup payments. I have it working on my dev machine, but when I push to prod, I get the following SSL error:</p>
<p><strong>Can't connect to HTTPS URL because the SSL module is not available.</strong></p>
<p>Here are the details of my setup:</p>
<ul>
<li>Ubuntu 16.04</li>
<li>Ap... | 0 | 6,117 |
Why does join fail with "java.util.concurrent.TimeoutException: Futures timed out after [300 seconds]"? | <p>I am using Spark 1.5.</p>
<p>I have two dataframes of the form:</p>
<pre><code>scala> libriFirstTable50Plus3DF
res1: org.apache.spark.sql.DataFrame = [basket_id: string, family_id: int]
scala> linkPersonItemLessThan500DF
res2: org.apache.spark.sql.DataFrame = [person_id: int, family_id: int]
</code></pre>
... | 0 | 3,048 |
Containing a SVG image within Flexbox | <p>I've managed to create a split screen layout in flexbox. </p>
<p>On my left side I've set an inside container to hold content. The first piece of content is another container with a tall SVG image. </p>
<p>I've outlined the containers to make it easier to see their placement in my live example below. </p>
<p>The ... | 0 | 2,722 |
AngularJS filter and display range of dates using ng-repeat | <p>new to AngularJS- or the whole web development scene,</p>
<p>I am not even sure if this is possible or I am taking the most efficient path but I'm currently in need of a way to filter the range of dates using two input boxes, I'm using a jquery datepicker to always format the date to be "YYYY-MM-DD".</p>
<p>So, I ... | 0 | 1,360 |
Merge Sort in R | <p>I am self studying the book <a href="http://mitpress.mit.edu/books/introduction-algorithms" rel="nofollow">"Introduction to Algorithms" by Cormen et alli.</a> In their book, they use pseudo-code which assumes that arrays are passed by pointer (by reference). This is different from R (where objects are passed by valu... | 0 | 1,094 |
java.sql.SQLException: No suitable driver found when loading DataFrame into Spark SQL | <p>I'm hitting very strange problem when trying to load JDBC DataFrame into Spark SQL. </p>
<p>I've tried several Spark clusters - YARN, standalone cluster and pseudo distributed mode on my laptop. It's reproducible on both Spark 1.3.0 and 1.3.1. The problem occurs in both <code>spark-shell</code> and when executing t... | 0 | 1,469 |
Accessing Database Entities from Controller | <h3>tl;dr</h3>
<p>In a good design. Should accessing the database be handled in a separate business logic layer (in an asp.net MVC model), or is it OK to pass <code>IQueryable</code>s or <code>DbContext</code> objects to a controller? </p>
<p>Why? What are the pros and cons of each?</p>
<hr>
<p>I'm building an ASP.... | 0 | 1,275 |
How to dynamically set log file using App.config and System.Diagnostics? | <p>I was looking for a solution to provide logging to my latest project when I came across an article ( <a href="http://www.daveoncsharp.com/2009/09/create-a-logger-using-the-trace-listener-in-csharp/" rel="nofollow">http://www.daveoncsharp.com/2009/09/create-a-logger-using-the-trace-listener-in-csharp/</a> ) that talk... | 0 | 1,216 |
Sql Exception With .net 4 & EF | <p>we are using .net 4 MVC2 with EF & Sql Server 2005.</p>
<p>For some requests, and it happens rarely, and only when we are doing search which is implemented with classes mapped to stored procedures performing full text search, we get
the exception:</p>
<pre><code>[SqlException (0x80131904): Timeout expired. T... | 0 | 1,057 |
Error resolving template [users/list], template might not exist or might not be accessible by any of the configured Template Resolvers | <p>I am trying to experiment with Thymeleaf and Spring-boot. I have tried with my helloworld controller and it works fine. But when I create a new user controller and trying to play with ModelAndView object I am getting a template engine exception like this:</p>
<pre><code>2019-07-23 17:35:43.427 ERROR 22272 --- [nio-... | 0 | 2,039 |
Disable EditText context menu | <p>I am making a vertical <code>EditText</code> for traditional Mongolian. I have successfully implemented it by embedding a slightly modified <code>EditText</code> inside of a rotated <code>ViewGroup</code>. I need to create a completely custom context menu because the system one does not support vertical text and is ... | 0 | 1,585 |
How to fix an element after scroll in an AngularJS webpage | <p>I recently made a website in AngularJs. I am still in the learning phase.
I wish to fix an element on a page after it reaches the top. I have tried all sorts of Javascript and Jquery functions. However, they don't seem to be working.</p>
<p>I also tried using Angular UI's ui-scrollfix but it is also not working.</p... | 0 | 1,533 |
KarmaJS, Jasmine, RequireJS, etc: How to Use Require for Testing Modules | <h1>Running Karma + Jasmine Tests with RequireJS -- Getting off the ground</h1>
<h3>Help! . . . _ _ _ . . . SOS!</h3>
<p>Currently, I have an exercise project up for getting comfortable with KarmaJS -- and Unit Testing, at large. The broad issue is that I really have no transparent view of what Karma is doing behind th... | 0 | 4,330 |
Establishing WebSocket connection with Java server and Javascript client | <p>I'm trying to implement WebSockets with a Javascript-based client and a Java-based server. I think I've done all the correct steps, but for an unknown reason, I can't establish the connection with both.</p>
<p>When the server socket receives a connection, it handles to form a websocket-accept response, and it sends... | 0 | 4,661 |
[Vue warn]: Error in created hook: "TypeError: Cannot set property of undefined" | <p>I am creating a VueJS application. I have a child component, Child.vue to which data is passed from a parent.</p>
<p><strong>Child.vue</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-js lang-js prettyp... | 0 | 1,296 |
Failed to replace env in config using Bash & NPM | <p>I'm trying to use a private NPM module in my application, and need to set appropriate NPM access tokens so that third-party tools (Heroku and CI) can access, and install the module.</p>
<p>I have the following line set in my <code>~/.bash_profile</code>:</p>
<pre><code>export NPM_TOKEN="XXXXX-XXXXX-XXXXX-XXXXX"
</... | 0 | 1,070 |
Error: Request failed with status code 405 | <p>I am trying to establish axios sample in laravel react.js combination.I configured my project by following commands
composer create-project --prefer-dist laravel/laravel react-laravel-basic-8.
php artisan preset react
npm install
npm audit fix --force
npm install axios
npm run dev
php artisan serve.
My web.php file... | 0 | 1,709 |
restart fragment class when back button press | <p>I have a fragment that is part of tab view. I want to restart this fragment when I press back button. but i don't know how to refresh it.
i tried some codes like this:
<a href="https://stackoverflow.com/questions/13989300/restart-fragment-inside-activity">Restart fragment inside activity</a> but it didn't work.</p>
... | 0 | 1,386 |
Android: "BadTokenException: Unable to add window; is your activity running?" at showing dialog in PreferenceActivity | <p>I'd like to ask for some help: In my app, I have only one activity, a <code>PreferenceActivity</code> (don't need other, it's just a simple background-sync app, so the <code>PrefsActivity</code> is the Main/Launcher). After the user setup preferences, checks a <code>checkBoxPreference</code>, and that starts (or sto... | 0 | 2,869 |
Handsontable dropdowns with multiple selections | <p>I am trying to extend the handsontable plugin to support multiple selections in its dropdown list. I have already tried extending the base Editor built into the library by modifying the 'dropdownEditor' as suggested <a href="https://github.com/trebuchetty/Handsontable-select2-editor/issues/7" rel="nofollow noreferr... | 0 | 2,902 |
Android CalendarView class cannot be found | <p>Im designing the xml format for a calendar to be used in an app, but I cant get the calendar to show in the <strong>graphical layout</strong> shower. </p>
<p>Instead I get the following 'error':</p>
<blockquote>
<p>The following classes could not be found:
- CalendarView (Change to android.widget.CalendarView,... | 0 | 2,581 |
Spring JmsTemplate + Security | <p>I've just refactored some code that published to a JMS topic to use Spring's JmsTemplate class and now I'm receiving an exception stating I'm not authenticated.</p>
<p>Previously I created the factory, made a connection, then session etc as follows:</p>
<pre><code>MQTopicConnectionFactory factory = new MQTopicConn... | 0 | 1,550 |
Error opening SupportMapFragment for second time | <p>When opening my SupportMapFragment (Android maps v2) for a second time (calling setContentView) I get the following error:</p>
<pre><code>01-28 16:27:21.374: E/AndroidRuntime(32743): FATAL EXCEPTION: main
01-28 16:27:21.374: E/AndroidRuntime(32743): android.view.InflateException: Binary XML file line #6: Error infl... | 0 | 1,776 |
Why am I getting a JsonSyntaxException: Expected BEGIN_ARRAY but was STRING here? | <p>I have one JSON file:</p>
<pre><code>{
"settings": {
"header": {
"id": "240A64CDC43F",
"filename": "network",
"sequence": "0",
"last_modified": "2015-04-21T16:33",
"JSON_file_version": "2.1"
},
"data": {
"engine_config": {
"bed_name": "IdealTem... | 0 | 2,322 |
can I add an image header in navigation drawer layout | <p>how can i add an image header to my navigation drawer layout like this one </p>
<p><img src="https://i.stack.imgur.com/Lkwke.png" alt="enter image description here"></p>
<p>and this is my code :
MainActivity.java</p>
<pre><code>package com.webileapps.navdrawer;
import android.app.AlarmManager;
import android.app... | 0 | 8,484 |
Android search function on custom adapter list | <p>I'm pretty new to android. I'm trying to develop a search function on a list of items by using arrayadapter as shown below. The search function should perform the search on the model's name.</p>
<pre><code> public class InteractiveArrayAdapter extends ArrayAdapter<Model> implements Filterable{
p... | 0 | 3,681 |
How to programmatically select ng-option value? | <p>I have a view that is filled with dropdownlists to filter a report. I also have a view of saved filters that are displayed as links. When a user clicks on their saved filters, I want the appropriate values of the dropdownlists to be selected. The drop downs are being populated properly. On the saved filter link ther... | 0 | 1,813 |
react.js call parent function from child | <p>I know there are a few similar questions <a href="https://stackoverflow.com/questions/24398932/reactjs-how-can-a-child-find-its-parent?rq=1">here</a> and <a href="https://stackoverflow.com/questions/31564776/react-js-onclick-function-from-child-to-parent">here</a> but I am having a tough time understanding what is t... | 0 | 3,102 |
how to pass html table data to controller using jquery in asp.net mvc razor? | <p>The Markup:</p>
<pre><code><div class="form-group">
<table class="table table-bordered" id="tblSavingColl" style="width: 97%; margin-left:1.5%;">
<thead>
<tr>
<th>Client Code</th>
... | 0 | 6,970 |
Getting started with XSD validation with .NET | <p>Here is my first attempt at validating XML with XSD.</p>
<p>The XML file to be validated:</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<config xmlns="Schemas" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="config.xsd">
<levelVariant>
<fileP... | 0 | 1,090 |
Pod install error on M1 Mac - Flutter project with native code like shared_preferences | <p>I'm on a MacBook Pro M1 (and before someone says well it's because of M1 or something else, I've been programming with Flutter and M1 for weeks but then I must have to reset my M1 and after this) ... my big problem:</p>
<p>I can not start my project with a package that include native codes like <code>shared_preferen... | 0 | 2,164 |
Dependency problem with vue-cli-service serve | <p>When I try to build my VueJS typescript app I get the following dependency errors.</p>
<blockquote>
<p>vue-cli-service serve</p>
</blockquote>
<p>INFO Starting development server...
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
98% after emitting CopyPlugin</p>
<p>ERROR... | 0 | 1,230 |
pyodbc.DataError: ('22018',"[22018] [Microsoft][ODBC SQL Server Driver][SQL Server]Conversion failed ] error | <p>I have written the following snippet to import a CSV file into an MS SQL Server database but it gives me an error. It is based on code written for <a href="https://stackoverflow.com/questions/2887878/importing-a-csv-file-into-a-sqlite3-database-table-using-python/2888042#2888042">Sqlite for Python</a> and changed fo... | 0 | 1,140 |
mysql crashing with "mysqld got signal 11" | <p>I'm running application which reading and writing data with mysql database. I'm having both mysql ndbclustr and master master replication in same database. (bcoz of master master replication tables' engines are innodb, clustering won't replicate data of those tables.) </p>
<p>I'm having 64GB RAM in each MYSQL serve... | 0 | 6,985 |
How can I get overflow:scroll inside a flex box | <p>I have built this layout:</p>
<pre><code><!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>test</title>
<style type="text/css">
html, body{
margin:0;
padding:0;
height:100%;
}
.flex{
display:flex;
flex-direction:column;
min-height:50%;
width:33.3333%... | 0 | 1,066 |
@NotNull : validation custom message not displaying | <p>I am using spring data JPA for creating application. In that I am trying to implement server side validation using annotation. I added <code>@NotNull</code> annotation on filed with custom message. I also added <code>@valid</code> with <code>@RequestBody</code> </p>
<p>But problem is that when I am passing <code>nA... | 0 | 1,032 |
Error: Invalid or corrupt jarfile /app.jar | <p>I am trying to push a spring boot created microservice to an ibm cloud hosted K8 cluster but am constantly getting the below error on startup:</p>
<pre><code>Error: Invalid or corrupt jarfile /app.jar
</code></pre>
<p>My dockerfile:</p>
<pre><code>FROM openjdk:8-jdk-alpine
VOLUME /tmp
ARG JAR_FILE
COPY ${JAR_FILE... | 0 | 3,785 |
Hibernate not creating Table automatically in spring boot using postgresql | <p>I want to save data to a table in postgresql. I am using <code>spring boot</code> + <code>postgresql</code> along with <code>hibernate</code>. My Application does not have any error but it is not creating table in database. </p>
<p>This is my controller class</p>
<pre><code> package com.ge.health.poc.controllee... | 0 | 3,461 |
Qt send signal to different thread | <p>I have searched SO for this question, but they were a bit different than mine. My problem is that I dont want to receive a signal from another thread, but I want to send one. Receiving works in my app, but when trying to send, I am getting error that I am trying to send to another thread... I dont know how to fix th... | 0 | 1,375 |
Read a write a sector from hard drive with int 13h | <p>I have a simple program. It must read first sector from hard drive (not mbr), and write it to the 0 sector (mbr). But it doesnt work. I think it is connected with wrong DAP. Thanks.</p>
<pre><code> [bits 16]
[org 0x7c00]
;clear screen
start:
mov ax, 0x3
int 0x10
;reset the hard drive
... | 0 | 1,387 |
Angularjs validation for ui-select multiple | <p><strong>THE SITUATION:</strong></p>
<p>I have an angular app that send emails.
There is a form with three fields:
Address - Subject - Text.</p>
<p>For the address field I am using angular <a href="https://github.com/angular-ui/ui-select" rel="nofollow">ui-select</a>.</p>
<p>Everything is working fine, except the ... | 0 | 1,124 |
C program days between two dates | <p>I have written a program that <em>should</em> find the days between two dates, but it has some hiccups. The logic makes perfect sense in my head when I read through it, so I'm assuming I have some syntax errors that I keep glancing over or something.</p>
<p>Firstly, when entering two dates in different years, the ... | 0 | 5,773 |
Passing props to modal in ReactJs | <p>I work actually on my first react app. It's a collection app. On this app, there is an admin dashbord, with all items of the app, and admin user can delete or modify item (like a traditional e-commerce back office). For modify item, admin user click on button "Modify Item", and a modal open for modify item informati... | 0 | 4,198 |
how to fix this error: No module named 'allauth'? | <p>I want to use allauth in django API but when I installed it I got some errors I fixed it by django.setup() and after that, I get the error which tells me that I have to set DJANGO_SETTINGS_MODULE now I did that in manage.py:</p>
<pre><code>#!/usr/bin/env python
"""Django's command-line utility for adm... | 0 | 2,780 |
AppFabric Caching - Proper use of DataCacheFactory and DataCache | <p>I am looking for the most performant way to arrange usage of the datacache and datacache factory for AppFabric caching calls, for between 400 and 700 cache gets per page load (and barely any puts). It seems that using a single static DataCacheFactory (or possibly a couple in a round-robin setup) is the way to go.</... | 0 | 1,537 |
How to convert Ajax to Fetch API in JavaScript? | <p>So I am using the <a href="https://cdnjs.cloudflare.com/ajax/libs/rivescript/1.17.2/rivescript.js" rel="noreferrer">JavaScript port of RiveScript</a> which uses ajax and of course I don't want to use jQuery anymore. There is only one line ajax and I want to change it to the new Fetch API.</p>
<pre><code>**FYI: You ... | 0 | 1,263 |
Flattening deeply nested array of objects | <p>I got following data structure, which is an array of accounts objects, where some accounts are being parents to its children accounts, which in turn can be parents to other accounts etc.: </p>
<pre class="lang-js prettyprint-override"><code>[{
"id": "acc.1260446672222.11",
"type": "EXPENSES_FOLDER",
"name":... | 0 | 4,614 |
wcf web.config file | <p>ok, my file have this structure.</p>
<pre><code><system.serviceModel>
<services>
<service name="ManyaWCF.ServiceManya" behaviorConfiguration="ServiceBehaviour">
<!-- Service Endpoints -->
<!-- Unless fully qualified, address is relative to base address ... | 0 | 1,697 |
Flutter Permissions Handler Not Working Properly | <p>I am trying to get the user's location from within my app by requesting for permission(shows dialog correctly) and navigating only if granted. Library being used <code>permission_handler</code> in flutter. I am unable to get the location widget from the settings tile menu to turn on and permission status from librar... | 0 | 1,395 |
npm run server throws error sh: 1: vue-cli-service: not found | <p>I'm trying to setup an existing vue project and getting this error</p>
<pre><code>admin@kali:/media/veracrypt1/themeforest-LSerfC0M-skote-vuejs-admin-dashboard-template/Admin$ npm run serve
> skote@0.1.0 serve /media/veracrypt1/themeforest-LSerfC0M-skote-vuejs-admin-dashboard-template/Admin
> vue-cli-service... | 0 | 1,192 |
Android Studio: java.lang.OutOfMemoryError | <p>I am trying to get my application to display different views when Image buttons are clicked. Its a fairly simple application, but I cant test to see if it works because I keep getting an Out of Memory Error. Here is the java class</p>
<p>Edit:</p>
<p>I decreased the size of the button images by 50% and I still get... | 0 | 8,175 |
Apollo GraphQL tutorial: "GraphQLError: Cannot query field \"id\" on type \"LaunchConnection\"." | <p>I'm trying to follow the Apollo GraphQL tutorial at this step, <a href="https://www.apollographql.com/docs/tutorial/resolvers/#run-queries-in-the-playground" rel="nofollow noreferrer">https://www.apollographql.com/docs/tutorial/resolvers/#run-queries-in-the-playground</a>. Following <a href="https://github.com/apoll... | 0 | 2,602 |
How to count JSON objects | <p>Here is my JSON:</p>
<pre><code>[
{
"id": "38",
"article_id": "16",
"news_event": "625",
"language": "en",
"channel_partner_id": "625",
"title": "Test",
"show_logo": null,
"description": "test\n\n",
"schedule": null,
"event_date": "... | 0 | 1,138 |
simplest way to lazy load long <ul> with many <li>s | <p>What is the simplest way to lazy load a long list ( ) of many (65+) list items?</p>
<p>By lazy load I mean only load the list items that are visible in the viewport. Once a list item is visible in the viewport then load it.</p>
<p>I've looked at many infinite scrolling and lazy load plugins, but none of them seem... | 0 | 1,923 |
Datatables pagination buttons - Remove unwanted space | <p>Currently my pagination looks as such:
<img src="https://i.stack.imgur.com/Vah3Y.png" alt="enter image description here"></p>
<p>I'm trying to work out how to remove the space between the buttons, but have been unsuccessful. In the css files the only references I can find to pagination are:</p>
<p>jquery.dataTable... | 0 | 1,527 |
Exception in createBlockOutputStream when copying data into HDFS | <p>I am getting the below warning messages while copying the data into HDFS. I've 6 node cluster running. Every time during copy it ignores the two nodes and displays the below warning messages.</p>
<pre><code> INFO hdfs.DFSClient: Exception in createBlockOutputStream
java.io.IOException: Bad connect ack with first... | 0 | 2,770 |
XSLT sort by tag name and attribute value | <p>I'm a noob with XSLT, so please excuse my ignorance...
I'm trying to sort a simple XML file by attribute value and tag name, but I struggle in accessing the value of the attribute.
Here is a complete example:</p>
<pre><code><a>
<b attribute="e"></b>
<b attribute="b"></b>
&l... | 0 | 1,310 |
Knockout.js autocomplete bindingHandler | <p>I'm trying my hand at an autocomplete handler for Knockout.js, and I'm looking for some feedback. This currently works, but I'm trying to see if I can get the job done without so many Eval()s all over the place, and for the sake of reusability, see if there is a way to reference the ViewModel without presupposing i... | 0 | 1,092 |
G++ cannot find boost library | <p>I am not good in command-line compiling. My problem is inability to compile simple project, that depends from Boost. The following is a log of my trying:</p>
<pre><code>$ g++ -Wall test.cpp -o main
/tmp/ccCTvBYE.o: In function `__static_initialization_and_destruction_0(int, int)':
test.cpp:(.text+0x6b): undefined r... | 0 | 1,424 |
getting base64 content string of an image from a mimepart in Java | <p>I am trying to get the base64 content of a MimePart in a MimeMultiPart, but I'm struggling with the Javamail package. I simply want the base64 encoded String of a certain inline image, there doesn't seem to be an easy way to do this though.
I wrote a method that will take the mime content (as a string) and an image ... | 0 | 1,529 |
Reference - What does this error mean in PHP? | <h3>What is this?</h3>
<p>This is a number of answers about warnings, errors, and notices you might encounter while programming PHP and have no clue how to fix them. This is also a Community Wiki, so everyone is invited to participate adding to and maintaining this list.</p>
<h3>Why is this?</h3>
<p>Questions like <a h... | 0 | 2,272 |
How can I populate value at form inside modal using Bootstrap and thymeleaf? | <p>In my spring boot project I have a <code>html</code> page which contain list of students. In that page i have two option <code>Edit</code> and <code>Delete</code> for each student. I want to show value in modal for each student information when i click on <code>Edit</code>. But I am unable to do that. Another weird ... | 0 | 8,112 |
How to send data to json file using jquery/ajax | <p>I have found countless tutorials on how to retrieve data from json files using jQuery and ajax but none on how to <strong>POST data to a json file</strong>. If some one could show me or send me a small script on how to do this that would be great. I have searched everywhere on how to do this and have had no luck. I ... | 0 | 1,389 |
Must be Placed Inside a Form Tag With runat=server | <p>I have been attempting this all morning with no results. I can't seem to figure out what I'm doing wrong. I have checked out the two links (among many other unhelpful links) and have yet to solve my issue. This is a WebUserControl...</p>
<p>Receiving the following error:</p>
<blockquote>
<p>Control 'HeadContent_... | 0 | 1,635 |
Spring: BeanCreationException | <p>I am trying to get the session from the session factory to use with my CRUD methods. I tried to set the session in the constructor, but the bean has not been initialized by then. How do I initialize it after the bean is created?</p>
<p><strong>Stacktrace</strong></p>
<pre class="lang-bsh prettyprint-override"><cod... | 0 | 3,053 |
Sharing many queues among processes in Python | <p>I am aware of <code>multiprocessing.Manager()</code> and how it can be used to create shared objects, in particular queues which can be shared between workers. There is <a href="https://stackoverflow.com/questions/9908781/sharing-a-queue-among-several-processes">this question</a>, <a href="https://stackoverflow.com/... | 0 | 1,276 |
Centering dropdown menu using Bootstrap | <p>I'm trying to center my dropdown menu in Bootstap. </p>
<pre><code> <ul class="dropdown-menu">
</code></pre>
<p>It pulls to the left by default, or I could use <code>pull-right</code> defined as follows to make it go to the right:</p>
<pre><code>.dropdown-menu.pull-right {
right: 0;
left: auto;
}
</code... | 0 | 1,346 |
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.JTable | <p>I have a <a href="http://www.coderanch.com/t/343795/GUI/java/Check-Box-JTable-header" rel="nofollow">code</a> which when run generates a table in swing form which contains a set of checkboxes which can be selected or unselected </p>
<p>When I click on the Check All tab I am able to select/unselect all the other bel... | 0 | 2,954 |
Create table from JSON object in JavaScript | <p>I am trying to create an HTML table with information I use to draw a plot.
I don't want to query the database twice, and I want to create the chart and a table with the information.
This is what I get from the server and that it gets charted:</p>
<pre><code>var data = {
"selector":"#charttotalday",
... | 0 | 2,145 |
Get information about disk drives result on windows7 - 32 bit system | <p>When i run the below code on windows XP - 32 , i get the below result.</p>
<p>i have plugged only one usb pen drive</p>
<pre><code>On Windows XP - 32 Bit
-----------------------
Drive C:
ProductId: ST3160215AS
ProductRevision: 3.AAD
DeviceType: 7, DeviceNumber: 0, PartitionNumber: 1
DevicePath: \\... | 0 | 4,472 |
RCT-Folly error when using hermes with iOS | <p>When enabling hermes in the Podfile and rebuilding the build it fails due to RCT-Folly. No idea what it does.</p>
<p>To re-initialise everything I use the following:</p>
<p><code>rm -rf node_modules && rm package-lock.json && npm install && cd ios && rm -rf Pods && rm Podfile.... | 0 | 3,098 |
org.apache.kafka.common.errors.RecordTooLargeException in Flume Kafka Sink | <p>I am trying to read data from JMS source and pushing them into KAFKA topic, while doing that after few hours i observed that pushing frequency to the KAFKA topic became almost zero and after some initial analysis i found following exception in FLUME logs .</p>
<pre><code>28 Feb 2017 16:35:44,758 ERROR [SinkRunner-P... | 0 | 1,148 |
parsing Json File with gson: MalformedJsonException | <p>I want to read a string which is formated like a JSON-File and print it on screen.
Therefore I am useing the GSON-Library.</p>
<p>Everytime I want to compile I get an <strong>Exception in thread "main" com.google.gson.JsonSyntaxException</strong> Error</p>
<p>My Code looks like this</p>
<pre><code>public class Te... | 0 | 1,419 |
REST Webservice - Sample Code - Gives HTTP 302 response | <p>I am just trying REST webservice; Standard Sample;
While I am able to create the war and load it into WSO2 AS, when I try to connect it with client I get a response of HTTP 302; I was wondering where the mistake could be;
Following are my file listings.</p>
<pre><code>package com.indu.rs.test;
import javax.ws.rs... | 0 | 1,762 |
AttributeError: 'EditForm' object has no attribute 'validate_on_submit' | <p>I have a small edit app with the files bellow. When I submit tbe form it shows me <strong>AttributeError: 'EditForm' object has no attribute 'validate_on_submit'</strong> Can anyone please tell me what is the issue?</p>
<p><strong>forms.py</strong></p>
<pre><code>from flask.ext.wtf import Form
from wtforms import ... | 0 | 1,612 |
Introducing FOREIGN KEY constraint may cause cycles or multiple cascade paths - why? | <p>I've been wrestling with this for a while and can't quite figure out what's happening. I have a Card entity which contains Sides (usually 2) - and both Cards and Sides have a Stage. I'm using EF Codefirst migrations and the migrations are failing with this error: </p>
<blockquote>
<p>Introducing FOREIGN KEY con... | 0 | 1,215 |
symfony2 login_check and custom authentication provider | <p>I have the following code files from my project that works perfectly relating to custom authentication provider, and I can intercept the request in the authenticate(TokenInterface $token), I've put echo "it worked"; exit; to print the message on the screen to let me know that it entered authenticate() in the file Au... | 0 | 6,713 |
How to use facet_grid() with geom_histogram() | <p>I tried using the <code>facet_grid()</code> for the first time. I plotted histograms with my own data, and the distribution seemed inaccurate when I counted the boxes manually on the graph. I replicated my code using the <code>mtcars</code> data, and the problem seemed to persist.</p>
<p>Here is the histogram produ... | 0 | 1,475 |
Spring JMS configuration of a queue Consumer | <p>I am trying to run a very basic application to learn Spring JMS + ActiveMQ. I see my Producer creating the message (sysout), but nothing shows up in my Consumer and no exception is thrown. I think I am missing something simple here; would really appreciate any help.</p>
<p>[EDITED, THE FOLLOWING CODE WORKS]</p>
<p... | 0 | 1,510 |
Ajax Post Parameter is Always Null in MVC app | <p>I have a simple post that works in a test app</p>
<p>Controller Code</p>
<pre><code>public ActionResult Delete(string Id)
{
... delete record ...
}
</code></pre>
<p>JavaScript</p>
<pre><code>function delAnnouncement(id) {
$.ajax({
type: "POST",
url: "@Url.Action("Delete", "Announcements")... | 0 | 1,437 |
Client in C++, use gethostbyname or getaddrinfo | <p>I found the following code to open a connection in C: </p>
<pre><code>int OpenConnection(const char *hostname, int port)
{
int sd;
struct hostent *host;
struct sockaddr_in addr = {0};
if ((host = gethostbyname(hostname)) == NULL)
{
perror(hostname);
abort();
}
sd = socke... | 0 | 1,634 |
Saving and reload huggingface fine-tuned transformer | <p>I am trying to reload a fine-tuned DistilBertForTokenClassification model. I am using transformers 3.4.0 and pytorch version 1.6.0+cu101. After using the Trainer to train the downloaded model, I save the model with trainer.save_model() and in my trouble shooting I save in a different directory via model.save_pretrai... | 0 | 1,075 |
Add labels to a plot made by grid.arrange from multiple plots | <p>I have a data frame in <a href="https://drive.google.com/a/ntu.edu.vn/file/d/0B0uadF4WsOJ4RUs1SXU1WVBMaEU/view" rel="nofollow noreferrer">this link</a>
and I have code following:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre clas... | 0 | 1,862 |
Gitlab Configuration Issues:: NGINX Unicorn Port Conflict | <p>I have managed to partly setup <a href="https://github.com/gitlabhq/gitlabhq" rel="nofollow noreferrer">Gitlab</a> on a Linux CentOS server with Apache, Git, PHP, PostGreSQL and MySQL. I am running the <a href="https://gitlab.com/gitlab-org/cookbook-gitlab/blob/master/README.md" rel="nofollow noreferrer">Chef Cookbo... | 0 | 1,454 |
Hadoop on Windows. YARN fails to start with java.lang.UnsatisfiedLinkError | <p>I have installed/configured Hadoop on windows hadoop-2.7.0 </p>
<p>I could successfully start "sbin\start-dfs" run command. DataNode and NameNode started.
I could create directory, add file into hadoop system. </p>
<p>But now when I try "sbin/start-yarn" on "resourcemanager" window I do not see error. But it faile... | 0 | 1,425 |
Change the state of UISwitch with animation programmatically | <p>I have a UITableView with some cell's that containt UISwitches:</p>
<pre><code>UISwitch* actSwitch = (UISwitch*)[cell viewWithTag: SWITCH_TAG];
[actSwitch addTarget: self
action: @selector(actSwitchChanged:)
forControlEvents: UIControlEventValueChanged];
BOOL value = [appSettings.lock_when_inacti... | 0 | 2,177 |
How to load a Java GUI class from a main class? | <p>I am new to java UI programming. </p>
<p>how do i call a UI class from a main class in java </p>
<pre><code>public static void main(String[] args) {
// TODO code application logic here
FileExtractorGUI gui = new FileExtractorGUI();
gui.setVisible(true);
}
</code></pre>
<p>Basically </p>
<pre><code>Fi... | 0 | 2,660 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.