title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Nginx ignores client_max_body_size defined in nginx.conf in /etc/nginx/conf.d/
<p>I have a upload api exposed through django server. Whenever I try to upload any file over 1MB I get an error message from nginx saying "413 Entity too large"</p> <p>I have configuration file called nginx.conf which has <code>client_max_body_size</code> set to 75M in directory <code>/etc/nginx/conf.d</code> and In ...
1
1,853
Connect tomcat and mysql in docker-compose
<p>I'm working on project for studies. Now I am at the stage of moving project to docker containers. I have placet tomcat with my website and mysql with database do docker-compose.yml. Unfortunately classes from tomcat can't connect with database</p> <hr> <h2>Java code</h2> <pre><code>import java.sql.Connection; imp...
1
3,705
System.AccessViolationException happened in unknown module
<p>I have a program, which at unexplained times throws this error:</p> <blockquote> <p>System.AccessViolationException was unhandled<br> Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.</p> </blockquote> <p>This is an x64 binary under Windows Server 2...
1
1,361
How to make Laravel resources when multiple models in output
<p>I'm building a Laravel API. I have two models: Listings and Reservations.</p> <pre><code>class Listing extends Model { public function reservations() { return $this-&gt;hasMany(Reservation::class); } </code></pre> <p>and</p> <pre><code>class Reservation extends Model { public function list...
1
1,212
Memory Warning UIImagepickerController IOS 7
<p>Could anybody help me with this issue I'm a bit new to objective c and iOS. I've been working on it but I can't figure out how to fix the problem, My app is really simple it only start the camera take pictures and send them through email to our server. This code was working just fine in iOS6.</p> <p>When I take pi...
1
1,732
gms.analytics.GoogleAnalytics - NoClassDefFoundError
<p><strong>My Aplication Class</strong></p> <pre><code>public class MyApplication extends Application { private static final String PROPERTY_ID = "UA-XXXXXX-X"; public static int GENERAL_TRACKER = 0; public enum TrackerName { APP_TRACKER, // Tracker used only in this app. GLOBAL_TRACKER, // Tracker used by a...
1
1,664
Relaycommand and parameterless execute method
<p>I'm currently learning WPF and MVVM, I think I get most of it and how it works but I've come across something on using the RelayCommand (or DelegateCommand) that I don't understand. I think it's to do with the way delegates work.</p> <p>Please note that the code below is all just in test solutions at the moment, s...
1
1,111
linking succeeds with arm-none-eabi-g++ but not arm-none-eabi-gcc
<p>I am using the Launchpad Arm compiler tools. Specifically, </p> <p>arm-none-eabi-g++ and arm-none-eabi-gcc from:</p> <p>(GNU Tools for ARM Embedded Processors) 5.2.1 20151202 (release) [ARM/embedded-5-branch revision 231848]</p> <p>I have a simple program targeted at an STM32F103 processor that has no purpose exc...
1
2,073
How to use "GS:" in 64-bit Windows Assembly (eg, porting TLS code)
<p>How can an user-space program configure "GS:" under 64-bit Windows (currently XP-64)?<br> (By configure, set GS:0 at an arbitrary 64-bit linear address).</p> <p>I am trying to port a "JIT" environment to X86-64 that was originally developed for Win32. </p> <p>One unfortunate design aspect is that identical code n...
1
2,101
ignited datatables search not working with server side processing
<p>Data is showing fine, but search filter not working. Im using Codeigniter with Ignited Datatables.</p> <p>Here is my HTML code or View file you may say.</p> <pre><code> &lt;table id="ManageForms" class="table table-bordered table-condensed table-hover table-striped"&gt; ...
1
2,941
MessageSecurityException when trying to access WCF service from WinForms
<p>I have a WinForms application that consumes a WCF service hosted on remote server. When I run the application, it runs and loads data, but after 30 seconds or more of the running it shows following <code>MessageSecurityException</code>:</p> <blockquote> <p>Security processor was unable to find a security header i...
1
1,794
Several app instances trying to migrate the same database at the same time
<p>I just started using flyway in a pretty standard spring 2.5 web application with a mysql databse. It has been in production for years and has a lot of data.</p> <p>I hooked it up to auto-migrate on startup with</p> <pre><code>&lt;bean id="flyway" class="com.googlecode.flyway.core.Flyway" init-method="migrate"&gt; ...
1
1,056
Python socket.accept() not receiving any connection requests
<p>I recently bought the book <em>Black Hat Python</em> by Justin Seitz because I've been interested in getting into Python and playing around with network security.</p> <p>I'm working in <em><strong>Kali Linux</strong></em> and one of the examples in the book is a simple TCP Proxy. I've already written a few scripts ...
1
3,266
python requests api - http multipart post with file and form-data
<p>Using requests 2.4.3. I want to post a file and send a few fields from a form to my flask server. I already have an angular app that validates flask is working btw. </p> <p>Based on various threads on the subject I've tried a few approaches to no avail. Here's what I've tried and the output:</p> <p>a) Putting ever...
1
1,193
Inheriting a Linq to SQL class and cast the result of a linq query
<p>I am writing an application where we will need to extend a basic entity into a number of different things (eg employee, vehicle etc). The design is as such that there is a Entity table and a second table with type specific values eg an employee will have an ID Number but a vehicle will have a registration number.</...
1
1,089
directive not interpolating, in a template string
<p>I'm trying to conditionally build a template. I got a k2plugin directive with some divs and spans. According to the pluginui attribute, I want to insert another directive at the end of the template. My code, that follows, interpolates everything but pluginui For example, the last div results in:</p> <pre><code>&lt;...
1
1,735
Populate a reportviewer by codebehind
<p>Im using reportviewer with <code>strongly dataset</code> but now<br> I need to populate my reportviewer via codebehind. But I'm getting this error:<br> <code>A data source instance has not been supplied for the data source 'ds_blabla'.</code><br> Here's my code to feed the dataset: </p> <pre><code>public DataSet ...
1
1,429
How to float text around a tikz picture in a LaTeX theorem environment?
<p>I don't like to use an outer picture editor just like xfig, because it don't make work. Here's an example:</p> <pre><code>\documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[magyar]{babel} \usepackage{amsthm} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amstext} \usep...
1
1,109
@EJB in @ViewScoped @ManagedBean causes java.io.NotSerializableException
<p>I've read <a href="https://stackoverflow.com/questions/3037722/ejb-in-viewscoped-managed-bean-causes-java-io-notserializableexception">@EJB in @ViewScoped managed bean causes java.io.NotSerializableException</a>, but my state saving setting is <code>server</code>.</p> <p>Here is what I have:</p> <p><code>web.xml</...
1
7,253
Python Switch/Case Statement Adaptation
<p>Ok, at the risk of being ridiculed for not 'trying harder', I have a scenario that I've been attempting to adapt to a pythonic switch case statement. I know python has the new <code>match</code> method in 3.10 but I'm limited to 3.8.10 in my AWS use case. I've been reading up on switch cases in other languages and...
1
2,734
ReorderableListView inside SingleChildScrollView
<p>I try to use <code>ReorderableListView</code> inside <code>SingleChildScrollView</code>, but I receive a error:</p> <pre><code>I/flutter ( 9049): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════ I/flutter ( 9049): The following assertion was thrown during performL...
1
4,865
Customizing mat select to allow nested values in angular
<p>I'm customizing angular material select/autocomplete to allow nested dropdowns.</p> <p>Here, I wanted to have one parent dropdown with many childs. If I expand particular parent dropdown, only childs of that dropdown should expand or collapse. Similarly, checkbox event should be selected in the same scenario.</p> <p...
1
2,643
Override method in child class using less arguments than base class - Python 3
<p>I am building my first app (Weather report) and I am using tkinter and Python 3.6 for that. I am new to Python so I want to make sure I don't learn bad habits which later on will have to be unlearned :).</p> <p>If there are any glaring issues with my code please comment on it - I need to know how to improve :) Than...
1
3,668
Material-UI CardContent has a 3px Bottom Padding
<p>Note: I already looked into this question: <a href="https://stackoverflow.com/questions/54236623/cant-remove-padding-bottom-from-card-content-in-material-ui/54239043?noredirect=1#comment95351781_54239043">Cant remove padding-bottom from Card Content&#160;in Material UI</a></p> <p>But the accepted answer did not fix...
1
1,145
Merge two data frames with different dimensions with partial overwrite in R
<p>I've spent the better part of a day on this but I keep getting stuck. This wouldn't take me very long using index-match-match in Excel, but I'm newer to R and merging data doesn't seem very straight-forward. I've searched the site and found similar problems but no solutions specific to this type of issue.</p> <p>I ...
1
1,131
How to loop through a directory, get all file names, then get the contents of those files in Java
<p>So in C drive, I have a folder called <code>Search Files</code> and inside <code>Search Files</code>, I have four subdirectories called <code>Folder 1</code>, <code>Folder 2</code>, <code>Folder 3</code>, and <code>Folder 4</code>.</p> <p>Inside of <code>Folder 1</code>, I have a text file called <code>hello.txt</co...
1
1,438
Execute Function One by One
<p>I have 3 different jQuery functions like:</p> <pre><code>function step1() { ... } function step2() { ... } function step3() { ... } </code></pre> <p>and if I call them like this:</p> <pre><code>step1(); step2(); step3(); </code></pre> <p>they will be all executed in the same time. How can I call them one...
1
1,085
Qt Cannot load plugin : undefined symbol iPlugin::staticMetaObject
<p>I'm trying to have a plugin system in my qt program.</p> <p>Even if I think my code is good, I still have a linking error in the main program. I'm using <strong>QPluginLoader</strong> to load the plugin. The method <strong>instantiate</strong> returns a null pointer and the error string is :</p> <pre><code>Cannot ...
1
1,073
Maven - maven-war-plugin to generate jar and install it to maven local repository
<p>I am using maven-war-plugin in my <code>pom.xml</code> to generate a <code>jar</code> file in parallel with my <code>war</code> file in an <code>java web project</code> build. My <code>maven</code> build is creating <code>war</code> and <code>jar</code> files in the target directory. And only <code>war</code> file i...
1
2,649
How do I fix 'com.vaadin.DefaultWidgetSet' does not contain implementation for com.vaadin.addon.charts.Chart
<p>By using "Spring Stater Project" in Eclipse/STS, I was able to have a Vaadin project up and running quickly. I want to add charting via Vaadin-Addon to the project. I have Googled trying to find how to properly add and use Vaadin Chart addon to the project. But I am confused because there so many "Guides/Tutorial...
1
3,112
problem sending image file over the socket in c
<p>I am writing a C based server supporting HTTP. &amp;buffer[5] has the file name. I set the header in next step and then send the file in block of 8Kb. It is working fine when I am requesting a txt file, but when I request a jpg file, it is not giving any o/p. Is there any specific care I need to take for image file...
1
1,617
Create ZipArchive of Excel XLSX file with EPPLUS C#
<p>I have the folowing function to return a <code>FileStreamResult</code> for my ASP.NET MVC application.</p> <pre><code>/// &lt;summary&gt; /// Generates a FileStreamResult containing a zip file with the EXCEL file in it /// &lt;/summary&gt; /// &lt;typeparam name="T"&gt;Type of object in the object list parameter&lt...
1
1,807
secure upload/download file with carrierwave gem rails4
<p>Authenticate user can download and upload file , this is the main purpose of my project.I want to secure my file downloads, so that only authenticate user can download file. For this, I use <code>gem carrierwave</code> and carrierwave/wiki <a href="http://github.com/carrierwaveuploader/carrierwave/wiki/How-To%3A-Se...
1
1,671
Time conversion to ISO string is not correct with text field displayed
<p>I have a text field in an MVC application that displays the date and time. The date is created using a datepicker and the time I add to the text field. An example of the text is as follows: </p> <pre><code>10/23/2015 12:00 AM </code></pre> <p>I want to create a Date object with this time in ISO 8601 format. Th...
1
1,996
Mongo in Node.js: Can't canonicalize query: BadValue geoNear must be top-level expr
<p>I've got a geometry-based query here that is nested within an $or and combined with the $and operators. </p> <p>Mongo keeps throwing the following error: </p> <pre><code> MongoError: Can't canonicalize query: BadValue geoNear must be top-level expr </code></pre> <p>I'm using the native Mongo node driver vs 1.4.3....
1
1,223
Error: imagecreatefromstring(): Data is not in a recognized format laravel
<p>I am getting this error when I try to retrieve an image from the database, all I wanted to do is just print out the signature image in my view, can anyone help? I heard that the file might be corrupted or something or also it couldn't decode base64 yet I see them use encode on it? (quite confused on what to do) Than...
1
1,163
How to pass a Map<ObjectA, List<ObjectB>> to action in Struts 2
<p>I have a event object, inside there is a <code>Map&lt;ObjectA, List&lt;ObjectB&gt;&gt;</code>, the <code>ObjectA</code> is the label, and the <code>list&lt;ObjectB&gt;</code> are table rows. With following code, I can display the tables correctly, but when I submit the form to <code>Action</code> class, the map is <...
1
1,672
Unable to get instance of EntityManager?
<p>I am working on spring and hibernate, i am getting this following exception which i am unable to debug</p> <p>Below is the error stacktrace:</p> <p>SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See <a href="http://www.slf4j.org...
1
4,991
React Formik not handling errors properly
<p>I'm using the basic Formik template to work on a Login Form.</p> <pre><code>onSubmit={( values, { setSubmitting, setErrors /* setValues and other goodies */ } ) =&gt; { props.logMeIn(values); // LoginToSystem(values)...
1
1,247
Load data local infile with IF statement
<p>I have table with data: </p> <pre><code>| id | status | +-----+--------+ | 1 | 1 | | 2 | 1 | | 3 | 0 | | 4 | 2 | | 5 | 2 | </code></pre> <p>I have file, that I need to load into this table and replace: </p> <pre><code>| id | status | +----+--------+ | 1 | 1 | | 2 |...
1
1,848
I want to display one error at a time with reactive forms and angular material
<p>I am using Angular reactive forms and Angular material. My code is working good. But I want to display one error at a time</p> <p>My .html file code</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-htm...
1
2,495
Update method on Django Rest framework nested serializer for M2M fields
<p>I have three models in my models.py as follows:</p> <pre><code>class Service(models.Model): name = models.CharField(max_length=50, unique=True) port = models.PositiveSmallIntegerField() protocol = models.CharField(max_length=50) class ServiceGroup(models.Model): name = models.CharField(max_leng...
1
2,951
LD_PRELOAD causing segmentation fault in dynamic library loader
<p>I have written a library which is intended to be loaded via <code>LD_PRELOAD</code>. On some Linux systems, this is causing the dynamic library loader to segfault during initialisation.</p> <p>I have a simple test case that exhibits this behaviour, but only if I link with <code>-lm</code>. For example:</p> <pre><c...
1
1,572
Rails 4.1: Can't cast Hash to string
<p>Created a simple rake task to find Bikes for Sale in the USA. It works when i want to extract heading details but when I add other parameters like location, price , etc and save it to the Posts db I get error <strong>Can't cast Hash to string</strong></p> <pre><code>Neils-MacBook-Pro-2:bike_scraper neilpatel$ rake...
1
2,813
Pass ViewModel with jQuery post?
<p>I'm trying to do a post with jQuery in an MVC application, according to this SO answer here: <a href="https://stackoverflow.com/questions/1160669/can-jquery-do-a-post-of-a-viewmodel-to-a-controller-in-asp-net-mvc">Can jQuery do a POST of a ViewModel to a Controller in ASP.NET MVC?</a></p> <p>The difference is I am ...
1
1,264
Add order notes to admin emails in woocommerce
<p>I'm trying to add order_comments field from woocommerce checkout page to new order admin email. </p> <p>Here's how i did with other fields (it's for conditional shipping method):</p> <pre><code>add_action ('woocommerce_email_customer_details', 'custom_email_customer_details', 15, 4); function custom_email_customer...
1
1,302
merging two files into one in c++ and display it contents
<p>The program creates two files emp.txt and sal.txt.the contents of these two files are finally put in empdetails.txt.everything is working fine,but the display function:- void display() is displaying the last record TWICE.why the last record is displayed twice???</p> <pre><code>#include&lt;iostream&gt; #include&lt;c...
1
1,375
Updating Marker in google map
<p>I am using google map in my app. I am storing lat-long and test type in database. I am retrieving those value from database and showing as marker on google map. I using two different image for test type. If test type is manual then i am using Red image if test type is auto then i am using blue image.</p> <p>Here is...
1
2,081
UICollectionView cells with Images inside UITableView prototype
<p>UPDATE: I solved my primary issue of correct images not loading until scrolling on the collectionView. I added a collectionView.reloadData() to the tableView:cellForRowAtIndexPath. I also made some changes to pre-load the sequence array, instead of building it while scrolling through the table (tableView:cellForRowA...
1
2,342
Key error with Django Rest Framework
<p>I am building a RESTful API with DjangoRestFrameowork and came across an error when trying to use <code>choices</code> in my model. When accessing the api endpoint, I get the error <code>KeyError at /jobs/ u'job_type'</code>. My model has </p> <pre><code>JOB_CHOICES = ( ('p', 'Paint'), ('pw', 'Pressure Was...
1
1,485
TestNG: Method requires 2 parameters but 0 were supplied in the @Test annotation
<p>I am a newbie to selenium testing. Basically, I have a selenium class like : </p> <pre><code>import org.testng.annotations.Test; import org.testng.annotations.Test; import org.testng.annotations.DataProvider; import org.testng.annotations.Parameters; import org.testng.annotations.Test; import org.testng.annotatio...
1
1,856
Simple snmp trap generator program using Net-SNMP in C?
<p>I'm trying to create a simple SNMP trap generator program so that I can understand the Net-SNMP library better. With the following code I keep getting the error</p> <blockquote> <p>snmptrap: Configuration data found but the transport can't be configured</p> <p>Session did not open</p> </blockquote> <pre><code>#inclu...
1
1,217
specify error bars with ggplot and facet_grid
<p>I have made a graph with <code>facet_grid</code> to visualize the percentage of litium in each group per treatment on each day.</p> <pre><code>library(ggplot2) library(Rmisc) library(plyr) mus2 &lt;- summarySE(mus, measurevar="litium", groupvars=c("treatment", "group", "day"), na.rm = TR...
1
1,264
How do I create HTML navigation using JSON structure
<p>While I have created basic HTML navigation using Javascript/CSS, I need to create the following navigation using the JSON structure;</p> <p>So the nav should look like;</p> <p><img src="https://i.stack.imgur.com/PhYvD.jpg" alt="enter image description here"></p> <p>The JSON structure is as follows;</p> <pre><cod...
1
11,273
HTTP Status 500 – Internal Server Error
<p>I am trying to update my DB rows by using primary key.But facing this Exception</p> <h2>Exception</h2> <pre><code>HTTP Status 500 – Internal Server Error Type Exception Report Message Request processing failed; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from...
1
1,926
Replace and increment the number in the filename in an Android app
<p>Please see below (both) answers for solution.</p> <hr> <p>I can't seem to get my logic right, and for some reason this has really got me, yet it seems (and probably is) so simple. What I'd like to do is to capture an image, and, if it exists, increment the number. I.e. photo1.jpg exists, so save new file as photo2...
1
1,353
Trying to get AES encryption of a string in node.js to match encrypted value in .net
<p>I'm trying to encrypt a value in node.js that I can decrypt in .net. I've been given the code that they use on the .net side of things for encrypting a value and i'm trying to achieve the same encrypted value in my node.js script.</p> <p>I'm definitely not an encryption buff so please help me figure out where i'm g...
1
2,666
Spring Boot : Correct the classpath of your application so that it contains a single, compatible version of javax.persistence.JoinTable
<h1>Problem Statement</h1> <p>I am receiving the following exception when I run my Spring Boot application.</p> <pre><code>*************************** APPLICATION FAILED TO START *************************** Description: An attempt was made to call a method that does not exist. The attempt was made from the following ...
1
2,252
Unable to display received messages with SMACK api in JAVA
<p>I have made a simple client using SMACK api and OpenFire on localhost. As of now, I have two users say X and Y. Whenever anyone logs in to the client, there is a send button which sends a message to user Y. I've checked the XMPP debug manager and I'm able to send/receive messages there. However, I'm unable to displa...
1
1,683
How do I reset modal props on close
<p>I have a component, DeleteRoute, which is just a wrapper around a Modal. It allows me to delete a "Route" entity.</p> <p>I am using React as well as Redux to maintain data and state.</p> <p>I am struggling with the correct architecture to make the modal work. I didn't like having all of the state in the parent co...
1
3,539
Building a program (sscep) against OpenSSL: undefined reference to '[...]'
<p>I am trying to build a tool called sscep (http://www.klake.org/~jt/sscep/) for Windows. It does not run natively and I have a "patch" that changes sscep to make it compile on Windows. After applying the patch, it does <em>compile</em> perfectly but the linker screws. I am using gcc in minGW/msys The original messsag...
1
1,119
How to start new activity using startActivity(intent) in Custom RecyclerView Adapter?
<p>I am having a CustomRecyclerViewAdapter.class file in which I have implemented the below method.</p> <pre><code>public void onBindViewHolder(RecyclerViewHolder viewHolder, int position) { viewHolder.title.setText(mData.get(position).text); //viewHolder.icon.setBackgroundColor(Color.parseColor(mData.get(posi...
1
1,507
Embeded swf file to Content asp.net page
<p>Greeting, have a swf file which content a FlvPlayback play to play targeted video. It is working OK when I run published HTML file from flash professional CS5.</p> <p>but when I embedded this flash to asp.net content page using object tag the move will pay but the video controls play and stop with disappear.</p> ...
1
5,480
Swift: In NWConnection class when does receiveMessage(completion:) gets called
<p>I wanna have UDP connection with a wifi module as a server and an iOS as a client and send/receive data (obviously).First i wanted to use Sockets but then i realized Apple has introduced <code>Network</code> Framework; So i used <code>NWConnection</code> which is a class from <code>Network</code> Framework for my pu...
1
2,248
set $_POST value when radio button is selected
<p>I have a page with some radio buttons and form. When I select one radio button I need its id to be set to $_POST['id'] varible so when I submit the form I can check which radio button was selected and act accordingly. I know I can't do it directly so tried using </p> <pre><code>onclick="document.getElementById("id"...
1
1,565
Explanation of conversion of Ascii Char to Binary in C
<p>Can someone explain in a bit of detail how the following Char to Binary functions work in C?</p> <p>Specifically how the bit shifting and logical and work on an iteration</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;limits.h&gt; void printCharAsBinary(char c) { int i; for(i = CHAR_BIT; i &gt;= 0; i...
1
1,091
GStreamer UDPSink blocksize property not working?
<p>I'm using GStreamer and sending audio using this pipeline:</p> <p><code>gst-launch-1.0 -v filesrc location=soundfile.mp3 ! mad ! audioconvert ! audio/x-raw, layout=interleaved, format=F32LE, channels=2 ! udpsink blocksize=512 port=5005 host=127.0.0.1</code></p> <p>However, <code>blocksize</code> doesn't appear to ...
1
3,038
Live data giving old value again while changing fragment
<p>I am using live data from a shared ViewModel across multiple fragments. I have a sign-in fragment which takes user's phone number and password and then the user presses sign in button I am calling the API for that, now if the sign-in fails I am showing a toast "Sign In failed", now if the user goes to "ForgotPasswor...
1
1,568
Why do digits 1, 2 and 3 appear so frequently using C rand() function?
<p>What I am trying to do is to generate some random numbers (not necessarily single digit) like</p> <pre><code>29106 7438 5646 4487 9374 28671 92 13941 25226 10076 </code></pre> <p>and then count the number of digits I get:</p> <pre><code>count[0] = 3 Percentage = 6.82 count[1] = 5 Percentage = 11.36...
1
1,609
C# Form freeze when processing information
<p>I wrote a personal web scraper for myself that scraps artist information. the code works but when I press the button and it start processing the while loop, the GUI freezes. I got the textBoxes to .refresh(). But I can't move the form, also the only way to cancel the program is to force quit. I'm in the process of r...
1
3,372
How to call action in button click of component, Even though i'm using connect function which is not calling in React Redux
<p>Here i'm using the postMessage() click event to send the callback to action/reducer but i'm unable to call, please help me out in this i'm new to react redux.thank in advance..</p> <pre><code> import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; export class AddBlo...
1
1,170
awesome-typescript-loader load / compile only refrenced files
<p>Is it possible to configure the awesome-typescript-loader or webpack or the tsc to just compile files that are referenced (directly, indirectly) from the entry? I want to port an existing application and want to be able to compile my partially ported code while some <strong>unreferenced</strong> files are not compil...
1
1,272
com.android.tools.r8.internal.q8: Unsupported class file version: 60 in android studio
<p>I'm trying to import jar in my android studio project</p> <p>and the jar was compiled with JAVA 16</p> <p>But when I try to run app, it shows the error:</p> <pre><code>Caused by: com.android.tools.r8.internal.q8: Unsupported class file version: 60 at com.android.tools.r8.graph.B0$b.a(SourceFile:106) at com.a...
1
1,429
can't assign to property x on y: not an object - Multidimentional arrays
<p>I'm trying to create a multidimensional array like this:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>var minutes = []; for (let i = 1; i &lt; 10; i++) { minutes.push(...
1
1,286
Delphi - File size by URL - error 12150
<p>Delphi 6 Prof, Win7 OS.</p> <p>I have this code to get the file size by URL:</p> <pre><code>function TDDWIToolObject.GetFileSize(out Size: Int64): boolean; var hInet: HINTERNET; hRequest : HINTERNET; lpdwBufferLength: DWORD; lpdwReserved : DWORD; ServerName: string; Resource: string; ...
1
2,280
IISExpress 8 with custom configuration file - web service won't load
<p>When I develop a WCF service or website solution, I always use IISExpress with a custom configuration file so I can share the setup with other developers in the team. Basically, I run a batch file with the following command in it:</p> <p>"C:\Program Files (x86)\IIS Express\iisexpress.exe" /config:service-hosts.conf...
1
2,278
How to pass an array from servlet to jsp page?
<p>I have achieved sending an integer variable to a jsp page using the following code:</p> <pre><code>resp.sendRedirect(("result.jsp?fibNum=" + fibNum)); </code></pre> <p>But when I try the same to pass the array, <code>int[] fibSequence</code> I get the following passed to the address bar of the jsp page:</p> <p><i...
1
1,025
Indexing failed. Rolled back all changes. (Solr DataImport)
<p>When I try to run <code>domain.com:8080/solr/dataimport?command=full-import</code>, I get the error <code>Indexing failed. Rolled back all changes.</code></p> <p>There's no additional error message to inform me what when wrong? Any suggestions?</p> <p><strong>data-config.xml</strong></p> <pre><code> &lt;dataConfi...
1
1,442
Replace all instances of a string in XML with ****
<p>I have a XSL that needs to filter out specific data found in the XML.</p> <p>Somewhere in my XML there will be a node like:</p> <p><code>&lt;id root="2.16.840.1.113883.3.51.1.1.6.1" extension="9494949494949" /&gt;</code></p> <p>The XSL I have below deletes the <strong>extension</strong> node and adds a <strong>nu...
1
2,154
SPARK java.net.NoRouteToHostException: No Route to Host
<p>Good day,</p> <p>I am trying to run the scala example for spark provided at the following link:</p> <p><a href="https://www.tutorialkart.com/apache-spark/scala-spark-shell-example/" rel="nofollow noreferrer">https://www.tutorialkart.com/apache-spark/scala-spark-shell-example/</a></p> <p>I launch spark-shell using...
1
3,725
Failed to find or load the registered .Net Framework Data Provider. - ASP.NET MVC 4 + Entity Framework
<p>I getting error on server while running "Failed to find or load the registered .Net Framework Data Provider.". I have Sql Compact 4 database included to ASP.NET MVC 4 + Entity Framework, uploading on godaddy server... web.config is following</p> <p><strong>Web.Config</strong> </p> <pre><code>&lt;?xml version="1.0...
1
2,186
Angular 2/Ionic 2, extend ionic component parse errors: More than one component matched on this element
<h2>Doubt</h2> <p>I developed an Ionic 2 application and I would like to create extensions for some components already deployed in Ionic 2.</p> <h2>Example</h2> <p>For example, I create ngModule and try to extends <a href="https://github.com/driftyco/ionic/blob/master/src/components/item/item.ts" rel="nofollow noref...
1
1,396
Flask-sqlalchemy broken pipe error 32 with mysql and flask-login
<p>Broken pipe (error 32) from mysql to flask-sqlalchemy on initial page load (login screen using flask-login), second request works. Site will continue to work for hours, then fail again.</p> <p>Connection is through mysql+pymysql url</p> <p>Database is local mysql 5.7 server on a ubuntu 18.04 machine Site is hosted...
1
7,777
How to get LaTeX table from latex() in Hmisc to align columns
<p>I have some problems getting the align to work in my latex table, here's an example:</p> <pre><code>library(Hmisc) set.seed(1) x &lt;- matrix(round(runif(6*3)*10, 2), ncol=6) x[1, 2] &lt;- -round(x[1, 2], 0) x[3, 3] &lt;- -round(x[1, 2], 1) x[3, 5] &lt;- round(x[1, 2], 1) ci1 &lt;- apply(x[,2:3], 1, FUN=function(x...
1
1,100
Spring Mail Sender using Gmail SMTP error . How can I fixed?
<p>I've never used it before. I can't run. I have getting error list </p> <p>Here is my application properties.spring.mail.username What can I use ? my gmail account and password right ?</p> <pre><code>spring.mail.host=smtp.gmail.com spring.mail.port=587 spring.mail.username=xxxx@gmail.com spring.mail.password=xxxxx ...
1
2,317
Passing data from one view to another view using Form in Laravel
<p>I have made Post An Ad page in which I succeeded. But I also want to see these Ads in another view ad.blade.php. I am willing to create all posts in post.blade.php and then accessing its data in ad.blade.php. </p> <p>But when I go to ad.blade.php. It is giving error <strong>ErrorException Undefined variable: posts...
1
5,532
jQuery: After Validation Error, my Input Mask function doesn't work on field
<p>I am using JQuery to successfully validate my form.</p> <p>I added an masked input to my birth date field in my form. The masked input plugin is from: <a href="https://github.com/RobinHerbots/jquery.inputmask" rel="nofollow">https://github.com/RobinHerbots/jquery.inputmask</a></p> <p>On load, the birthdate field h...
1
3,045
Cannot get react-i18next to read JSON files via FETCH backend
<p>I'm trying to use <code>react-i18next</code> on the client using the <code>i18next-fetch-backend</code>, and even though I can get to the JSON translation files via a browser, something is screwy with how they're being handled during the <code>init</code> routine.</p> <p>For the record, I'm using <code>create-react...
1
1,321
simple quiz with jquery and keep tracking the correct answers
<p>this is my second attempt in creating a question.</p> <p>I want to create a quiz with jquery. Each question has two answers, one correct and one wrong. when a question is an aswered then i do not want to be able to be answered again. that is why i make the answers dissappear. they could just as well be unclickable....
1
1,466
Why does Kafka consumer throw "java.lang.NoClassDefFoundError: kafka/consumer/ConsumerConfig" at startup?
<p>I am trying out the basic consumer code from example given in apache website. Compilation is fine. But I am getting ClassNotFoundException while running using the command <code>java -jar target/JarName.jar</code>:</p> <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: kafka/consumer/ConsumerConfi...
1
1,290
Onclick event in Java
<pre><code>import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Prg_38 extends JFrame{ JTextArea area = new JTextArea(5,10); // 5 rows and 10 colums JButton btn1 = new JButton("TextArea"); // name of JBUtton is TextArea JButton btn2 = new JButton("Te...
1
2,051
Hibernate not working with Sql Server 2008
<p>I am Hibernate noob. I recently started to learn Hibernate. I am following a tutorial...but I am lost now. I have been trying to solve this problem...</p> <p><b> hibernate.cfg.xml </b> </p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DT...
1
3,754
facebook api over rest getting Incorrect signature <error_code> 104
<p>im trying to send rest api Users.getLoggedInUser i have all the secret session and all the Authenticationi made according to this site : <a href="http://wiki.developers.facebook.com/index.php/Authorization_and_Authentication_for_Desktop_Applications" rel="nofollow noreferrer">http://wiki.developers.facebook.com/in...
1
1,546
Why don't I have WGL_ARB_create_context extension?
<p>I'm executing the following code to create a core-profile OpenGL context.</p> <p>Specifically, I am:</p> <ol> <li>Creating a dummy window</li> <li>Using this dummy window to request an OpenGL context (I assume it would be hardware accelerated, but I'm not sure that would even matter)</li> <li>Using this OpenGL con...
1
2,131
Why does YARN job not transition to RUNNING state?
<p>I've got a number of Samza jobs that I want to run. I can get the first to run ok. However, the second job seems to sit at the ACCEPTED state and never transitions into the RUNNING state until I kill the first job.</p> <p>Here is the view from the YARN UI:</p> <p><a href="https://i.stack.imgur.com/YPkWx.png" rel...
1
2,657
Designs of an entity component system
<p> I wonder how to implement the fastest version of an entity component system (ECS from now on) in C++.</p> <p>First off, regarding terminology:</p> <ul> <li>a <em>Scene</em> is a container for <em>Entities</em> (and <em>Systems</em> in some implementations)</li> <li>a <em>Component</em> is a simple data storage (l...
1
1,128
Upload file in node js with FormData multipart post request
<p>I don't understand what is wrong with this use case. If the body of the requested file is passed to form-data directly http upload doesn't work but if write to file and then pass file stream reader to form-data request works.</p> <p><strong>Test client</strong></p> <pre><code>import fs from &quot;fs&quot;; import Fo...
1
1,261
How to lag date-index in a time-series in R?
<p>REWRITTEN QUESTION HERE:</p> <p>I've made some progress but am getting odd behaviour from R...</p> <p>Here's the xts I'm starting with</p> <pre><code>&lt;no title&gt; Value Value2 Value3 2002-08-21 21 2 27 2003-09-10 22 42 87 2004-02-12 23 62 67 2005-04-13 24 13 73...
1
2,072
Tensorboard Graph with custom training loop does not include my Model
<p>I have created my own loop as shown in the TF 2 migration guide <a href="https://www.tensorflow.org/guide/migrate#write_your_own_loop" rel="nofollow noreferrer">here</a>.<br> I am currently able to see the graph for only the <code>--- VISIBLE ---</code> section of the code below. How do I make my model (defined in t...
1
1,072
Possible reasons for column not converting from factor to numeric
<p>I looked up the answer on these threads but none are working in my case: </p> <p><a href="https://stackoverflow.com/questions/8596466/r-change-all-columns-of-type-factor-to-numeric">R change all columns of type factor to numeric</a>, </p> <p><a href="http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-do-I-convert-fa...
1
1,753