title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
C# Windows Service Timer app config change in runtime | <p>I'm making some Windows Services in c# and i need to read some variables from a config file like files and paths. I also have a variable that controls (it should) the timer interval. The problem is, every time a change data in the config file, that data is not fetched and, for example, if i change the file name i ge... | 1 | 1,384 |
In-Memory SQLite and NHibernate | <p>I am kind of lost here.</p>
<p>I searched some information, appearently there are several SQLite GUI tool to create SQLite DB file. Meanwhile I also noticed NHibernate comes with an in-memory configuration of SQLite</p>
<pre><code>return Fluently.Configure().Mappings(m => m.FluentMappings.AddFromAssemblyOf<M... | 1 | 1,107 |
Size of the array that Fortran can handle | <p>I have 30000 files to process each file has 80000 x 5 lines. I need to read all files and process them finding the average of each line. I have written the code to read and extract all data from the file. My code is in Fortran. There is an array of (30000 X 800000) My program could not go over (3300 X 80000). I nee... | 1 | 1,122 |
Combine framework: how to process each element of array asynchronously before proceeding | <p>I'm having a bit of a mental block using the iOS Combine framework.</p>
<p>I'm converting some code from "manual" fetching from a remote API to using Combine. Basically, the API is SQL and REST (in actual fact it's Salesforce, but that's irrelevant to the question). What the code used to do is call a REST query met... | 1 | 1,818 |
org.apache.tiles.template.NoSuchAttributeException: Attribute 'body' not found | <h2><strong>-my stack trace</strong></h2>
<pre><code>org.apache.tiles.template.NoSuchAttributeException: Attribute 'header' not found.
org.apache.tiles.template.DefaultAttributeResolver.computeAttribute(DefaultAttributeResolver.java:49)
org.apache.tiles.template.InsertAttributeModel.resolveAttribute(InsertAttr... | 1 | 2,606 |
Struts 2 Conversion Issue (throwing ClassNotFoundException on the project converter) | <p>I am using Struts 2 type conversion for converting String to Date and vice versa.</p>
<p>I have created a Converter</p>
<pre><code>package gov.nrhm.fmis.infra;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.sql.Date;
import java.util.Map;
import org.apache.struts2.util.StrutsTy... | 1 | 10,237 |
conda Solving environment: failed | <p><strong>Any conda command returns this message</strong>
also tried reinstalling anaconda. Any help is appreciated.
Any conda command generates the same output. </p>
<pre><code>$ conda upgrade conda
Solving environment: failed
# >>>>>>>>>>>>>>>>>>>>>&... | 1 | 4,356 |
Styled components: babel-plugin-styled-components not working | <p>I've been trying to get the <code>babel-plugin-styled-components</code> plugin to work with my webpack/babelrc configuration but I have not been able to do so. I am using babel-loader and no matter what I try I can't get the plugin to be recognised.</p>
<p>I am using Typescript 4 and Webpack 4.</p>
<p>I've searched ... | 1 | 9,604 |
Getting "java.lang.UnsupportedOperationException:" | <p>I created the small JPA project to persist a Student record. I use Oracle database. I use the OpenJPA as the JPa provider.</p>
<p>I have created the Table student and relevant sequences correctly.</p>
<p><strong>Student Entity class</strong></p>
<pre><code>@Entity
@Table(name = "Student")
public class Student imp... | 1 | 2,442 |
C#, dynamic linq error No applicable method 'Contains' exists in type 'String' | <p>I have a list of objects like this (I am using .NET 3.5)</p>
<pre><code>public class MyObjects
{
public object Name { get; set; }
public bool Case { get; set; }
}
List<MyObjects> test = new List<MyObjects> {
new MyObjects { Name = "one" },
new MyObjects { Name = "two" },
new MyObj... | 1 | 1,072 |
Laravel - syntax error, unexpected ')', expecting '[' | <p>I am using Laravel 5.8 to create an App. When I wanted to display the view, it generated an error as shown below:</p>
<p><a href="https://i.stack.imgur.com/2ZedC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2ZedC.png" alt="new error screen"></a></p>
<blockquote>
<p>syntax error, unexpected ... | 1 | 1,947 |
OverQuotaException for billing enabled Google App Engine app | <p>Earlier today a service call in my Google App Engine app stopped working, returning the following error:</p>
<p>
500 Server Error
</p>
<h1>Error: Server Error</h1>
<h2>The server encountered an error and could not complete your request.<p>If the problem persists, please <A HREF="http://code.google.com/appengine... | 1 | 2,701 |
JQuery Form Plugin File Upload using POST redirects to POST response | <p><strong>Please help guys, This one is a major BLOCKER!</strong></p>
<p>I have a project that uses NodeJS + <a href="http://malsup.com/jquery/form/" rel="nofollow">jQuery Form Plugin</a> + Typescript in which I am trying to do a file upload. After the file upload the server sends a response to the POST message which... | 1 | 1,361 |
Adding row to table with datepicker | <p>I am trying to add row with button click in table(Add Row). I am trying to add 2 fields dynamically.
1) slno<br>
2) Date/ Time.</p>
<p>My problems :
1) Row is not getting added.
2) How to assign datepicker to "Date /Time" field, added dynamically.</p>
<p>Jsfiddle is <a href="http://jsfiddle.net/RXzs7/12/" rel="nof... | 1 | 1,860 |
Ajax File Upload Not Working for IE8 | <p>I'm having trouble uploading a file using a Javascript function that makes an Ajax call to a servlet. The file is uploaded perfectly when I use chrome, but not when I use IE8 (Go figure).</p>
<p>I used to have a file select button on the bottom of my form. When I clicked that button a function would be called and i... | 1 | 5,218 |
How to pass a NUMBER with decimal values as a parameter to a FUNCTION or PROCEDURE | <p>I'm creating some procedures and functions to make easier the tasks of inserting, deleting or updating rows.
My question could sound silly because sure there's something I'm missing.</p>
<p><strong>Any time I try to pass a decimal value as a parameter to a procedure or function I get an error.</strong></p>
<blockq... | 1 | 1,026 |
Adding sessions and session_store back into a Rails 5 API (sessions not persisting) | <p>I am attempting to set up a basic sessions-based authentication strategy in a Rails 5 API. </p>
<p>I think I'm mostly running into a configuration confusion, because a new session is generated on each request. </p>
<p>I've added the cookies and cookie store middleware back into the application</p>
<p><code>config... | 1 | 1,066 |
Set background color for div | <p>I have a grid created using bootstrap 3 divs. The collection of divs has 1 button, followed by a radio button, followed by another button. I would like to highlight these with a background color. The background color should not break in between and should be like a single row.</p>
<p>Here is the fiddle with my atte... | 1 | 1,085 |
Firebase Push Notification sent, but onMessage() not firing | <p>I am sending a push notification from Postman.</p>
<p>I've got the Authorization and Content-Type headers set and my Body looks like this:</p>
<pre><code>{
"to" : "faecDTf47y4:APA91bEsGFDeKQtifs-XXXXXXXXXXXXXXXXXXXXXXXXXXX",
"notification": {
"title": "Hello",
"body": "World!",
"i... | 1 | 1,120 |
No qualifying bean of type 'org.springframework.cloud.bootstrap.encrypt.RsaProperties' | <p>I am getting a nosuchbean exception as the title suggests, just adding text here to satisfy the mostly code thing.</p>
<p>Have put unlimited crypto jars in jre\lib\security</p>
<p>Key store created in application at src\main\resources and is called config-server.jks</p>
<p>application.properties (tried both key-s... | 1 | 1,756 |
How to flatten JSON data in Azure Data Factory? | <p>I have Source from SQL DB where data stored as JSON. Please see below image where record column has contains JSON.</p>
<p><a href="https://i.stack.imgur.com/6Q5G8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6Q5G8.png" alt="enter image description here" /></a></p>
<p>The record column contains ... | 1 | 1,289 |
Stretching not applying in a WPF templated Button | <p><strong>I created a templated button in WPF :</strong> </p>
<pre><code><ControlTemplate TargetType="{x:Type Button}"
x:Key="BoutonGris">
<Button Foreground="White"
BorderBrush="Transparent"
HorizontalAlignment="Center"
VerticalAlignment="Center"
... | 1 | 1,182 |
max() not finding actual maximum value in list | <p>I have two lists that i'm trying to split up so I can calculate the min and max values. The original list looks something like this:</p>
<pre><code>vlim: [-6.44194488 -4.12189618]
vlim: [-0.35109226 0.90269746]
vlim: [-6.48470812 -4.06394711]
vlim: [-0.35046298 0.89800871]
vlim: [-6.50338849 -3.92795199]
</code><... | 1 | 2,244 |
OpenCV with Python error - Assertion failed ((mask.type() == CV_8UC1 || mask.type() == CV_8SC1)) in binary_op | <p>I am trying to overlay an image over the webcam feed. Here's the main section of the code -</p>
<pre><code># Load our overlay image: glasses.png
imgGlasses = cv2.imread('1.png')
# Create the mask for the glasses
imgGlassesGray = cv2.cvtColor(imgGlasses, cv2.COLOR_BGR2GRAY)
ret, orig_mask = cv2.threshold(imgGla... | 1 | 1,783 |
How to access a slice of packed_bits<> as a std::bitset<>? | <p>I am attempting to implement a <code>packed_bits</code> class using variadic templates and <code>std::bitset</code>.</p>
<p>In particular, I am running into problems writing a <code>get</code> function which returns a reference to a subset of the member <code>m_bits</code> which contains all the packed bits. The f... | 1 | 3,198 |
Android JSON Call through HTTPPOST with Headers | <p>I found an example on how to call JSON from HTTPPOST in Android. Now I can call A service on my localhost using the link: (http://10.0.2.2/testingjson/testing.json)</p>
<p>It gives the output in the listView and that is Great!</p>
<p>Now what I need or require is that I want to insert some extra information on the... | 1 | 2,443 |
Receive JSON with NodeJS | <p>With Node JS I'm trying to do simple user signup, sending <code>username</code>, <code>email</code> and <code>password</code> to the <code>'/newuser'</code> endpoint, which can be seen in <code>user.js</code>.
The header gets sent correctly and I'm able to see it in the console, but I can not access the <code>req.bo... | 1 | 1,041 |
Getting the session Id from within a view component | <p>This piece of code works fine to get the session Id from within the controller:</p>
<pre><code>HttpContext.Session.SetString("_Name", "MyStore");
string SessionId = HttpContext.Session.Id;
</code></pre>
<p>... but when I try to put the same code in a view component class, VS tells me that the name <code>HttpContex... | 1 | 1,087 |
Spring Boot Authorization returning 401 error? | <p>I have the problem that when I'm successfully logged in, I want to make a request to get the user details.
the request I am sending is an secured GET request which is <code>https://localhost:8080/users/userOne</code> this request is send by my Angular frontend. </p>
<p>But my problem now is, Spring Boot is telling ... | 1 | 1,450 |
Getting the size of an image inputstream | <p>I need to get the height and width of the image found in the inputstream. Here is what I did:</p>
<pre><code>private Boolean testSize(InputStream inputStream){
BitmapFactory.Options Bitmp_Options = new BitmapFactory.Options();
Bitmp_Options.inJustDecodeBounds = true;
BitmapFactory.decodeReso... | 1 | 1,406 |
Spring batch Admin : Unable to read 663 MB flat file, OutOfMemoryError | <p>I am using Spring Batch Admin 1.2.1 in Tomcat 7. I am trying to read 663 MB file and getting following error. I have also increased the heap size of Tomcat but of no vain. The job is pretty straight forward. It reads flat file and save it to DB with very little processing. <strong>Please help.</strong></p>
<pre><co... | 1 | 2,826 |
Illegal base64 character 7b | <p>Im trying to decode a base64 string in order to generate an excel file</p>
<p>Im using the base64 decode method for the above stated purpose</p>
<pre><code>public Response addToDB(String base64){
try{
s=sf.openSession();
tx=s.beginTransaction();
/*FileInputStream file = new FileInputSt... | 1 | 1,063 |
ADO application compiled in Windows 7 runs in Windows 7 does not run in Windows XP, msado15.dll | <p>I have a program that uses the msado15.dll to connect to a database. The program runs just fine on my Windows 7 machine, but most (if not all) of the end users are running Windows XP, where it does not work. I have determined that the error is in opening the database, but there seems to be no error message, so I'm n... | 1 | 1,245 |
Reading a config file from kubernetes using configMap and Volumes | <p>So i am struggling to read a xml file from kubernetes. I am running an open liberty server and a maven packaged war application. what do i need to change from my Java code so i can read file from kubernetes.</p>
<p>The issue here is that the code reads pdp.xml from the resources folder inside the war file, not exte... | 1 | 1,094 |
How do I inject dependency in owin startup class | <p>In my web api application I implemented OAuth2. On GrantResourceOwnerCredentials of ApplicationOAuthProvider I am calling my custom membership service to login and get the token.The problem is I have to inject the membership service into ApplicationOAuthProvider in order to use the service but it didn't allow it du... | 1 | 1,257 |
iOS CVPixelBufferCreate leaking memory in swift 2 | <p>I'm trying to convert an image into a video, and the right way seems to use a AVAssetWriter with a AVAssetWriterInputPixelBufferAdaptor, and it works well, but it leaks memory.</p>
<p>When I convert the CGImage to a CVPixelBuffer, I call CVPixelBufferCreate, which never frees it's memory.</p>
<pre><code>func CGIma... | 1 | 1,412 |
Handling FreeMaker template with Ktor Kotlin | <p>I'm very new to <code>Kotlin</code> (and Java), as well as <code>Ktor</code> and <code>FreeMaker</code>, trying to make an app combining all of them, but looks I'm doing something wrong related to the <code>FreeMaker</code> templates manipulating.</p>
<p>My app structure is:</p>
<p><a href="https://i.stack.imgur.c... | 1 | 1,590 |
EntityManager persist() method does not insert record to database => SEVERE: javax.persistence.TransactionRequiredException | <p>I have problem with using EntityManager persist() method.
I am using JSF2.0, glassfish 3, JPA and hibernate, i am not using spring.</p>
<p>I try to add events in an events table with the method persist, but EntityManager persist() method does not insert record to database and i have this error message =></p>
<p>SE... | 1 | 2,402 |
XML SAX Parser error: value must not contain the '<' character - pointing to TNS value without '<' character | <p>I want to deploy war file into JBOSS6 with the following spring configuration:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop... | 1 | 5,722 |
DataTables not displaying rows in Google chrome | <p>I am using Server Side processing of <a href="http://www.datatables.net/index" rel="nofollow">DataTables</a>. Everything seems to be working fine using Firefox. However, when I view the table using Chrome none of the rows are displayed and the DataTable's "Processing..." status label does not clear. The header, foo... | 1 | 2,554 |
Using Python to parse complex arguments to shell script | <p>When I'm writing shell scripts, I often find myself spending most of my time (especially when debugging) dealing with argument processing. Many scripts I write or maintain are easily more than 80% input parsing and sanitization. I compare that to my Python scripts, where <a href="http://docs.python.org/library/arg... | 1 | 1,110 |
C# Find Specific Node in Binary Search Tree | <p>been noodling around with BST's and I have a pretty good idea of them but I would like to be able to search for a particular node in the BST and have it tell me if it exists. I am using strings in the BST and everything seems to work well but I cannot figure out this Find method. If someone could tell me what I am d... | 1 | 1,660 |
CATiledLayer large image crashing app | <p>This somewhat related to another post - but that one got kinda messed up - so I start from scratch:</p>
<p>I have a CATiledLayer with a HUGE image in it (5780x6700px).</p>
<p>The tiled layer is in a scrollview. When I start to scroll around, everything's fine up to a point where obviously too many tiles have been ... | 1 | 1,665 |
Check if characters are all equal in a group using dplyr - R | <p>In the following data frame, how can I group by the first two columns and check if all the values in the fourth column are identical? If they are identical I would like to replace them with <code>''</code>.</p>
<p>In this example, the group combinations <code>'embryonated + protein'</code> and <code>'Hatching + Lip... | 1 | 1,637 |
JavaBean SQL query to MySQL db, shows twice the results only in JSF | <p>I'm having a weird problem when querying a MySQL database from a Javabean and showing it in JSF. (Java code at the bottom)</p>
<p>The table contains the following registers:</p>
<pre><code>mysql> select * from trescols;
+----+---------+---------+
| id | camp1 | camp2 |
+----+---------+---------+
| 1 | fila1A | ... | 1 | 2,117 |
Simulating CoreMotion iOS Simulator | <p>I am trying my hand at developing an application which makes use of the CoreMotion framework. I do not want to keep having to run out to test out my application, so instead I would like to find a technique which allows me to send fake it so I can try out lots of different scenarios. I wish to test scenarios such as ... | 1 | 3,032 |
Disable select option in group of select dropdowns when option is selected | <p>What I'm trying to do: I have multiple select dropdowns, if an option is selected in one of the select dropdowns and the value exists in any of the other dropdowns the value should be disabled/unselectable, it again can become enabled/selectable if the selection is changed.</p>
<p>What happens with current code: it... | 1 | 1,544 |
How to update data for table column in react? | <p>Hi i have problem with my table in bootstrap. I am getting data from server about timetable. This data i am saving in state. Next i am creating table. (Two ways of creating mobile and pc, just changing position of days and hours). Every column contains component SubjectColumn (there will be more data in one column l... | 1 | 6,605 |
Minification with AngularJS and Webpack 2 | <p>I want to concatenate a list of js files that contains my angularjs code and uglify it. I want to concatenate it in an ordered manner to avoid "that .... is not defined" errors.</p>
<p>I also have some libraries downloaded from github and placed in a "lib" folder. I want to concatenate those libraries in vendor.bun... | 1 | 1,030 |
Java: Unzip Folder with subfolders | <p>I am having issue with extracting files into subfolders. The zip files I need to unzip have multiple folders, and I am trying to keep the directory structure when unzipping.</p>
<pre><code>package components;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.F... | 1 | 1,321 |
How to fix Error : "Sass::SyntaxError in Posts#index" in Ruby on Rails? | <p>I was trying to add bootstrap to my Rails app reading a tutorial, and I got the error below. Please explain what happened, and please do edit my code to show how to fix. And any resources on Rails which you would refer to get better at it will be appreciated.
P.s. I'm just starting. Thank you for the read. :D </p>
... | 1 | 3,366 |
Three.js polygon triangulation fails in pseudo duplicate points | <p>In <a href="https://github.com/mrdoob/three.js/blob/master/build/three.js" rel="nofollow noreferrer">three.js</a> there is a function <code>triangulateShape()</code>. Now I encountered a failure to triangulate polygons that are simplified using Javascript Clipper. Simplifying in Clipper is done using Unioning. <a hr... | 1 | 3,071 |
Android: duplicate items in ListVew. Maybe getView() called too many times? | <p>I am trying to create a simple program which displays a "shopping
cart" list of items, along with a few buttons below it to manage the
cart.</p>
<p>The biggest problem is that items are getting duplicate entries in the
list view. That is, for every item I want to enter I see it appear
two times in the list view. ... | 1 | 4,018 |
.autocomplete is not a function | <p>I am implementing the Jquery UI autocomplete. I have the following code. </p>
<p><strong>Application.js</strong> </p>
<pre><code> $(function() {
function log(message) {
$( "<div/>" ).text( message ).prependTo("#log");
}
$("#tags").autocomplete({
source : func... | 1 | 1,084 |
Android Eclipse editText not displaying after setText on local instance | <p>I call on a few EditTexts via "instanceOf" because I don't necessarily know the exact names / ids of them. When I do this to get the text, it works just fine. But when I try to setText() based on the local instanceOf EditText, it won't display the string I am passing it. Oddly enough, when I setText and then Log... | 1 | 7,798 |
SpringBoot with LogBack creating LOG_FILE_IS_UNDEFINED folder | <p>I am using SpringBoot with LogBack and I am trying to direct all log-statements of one specific package (here shown as "com.example.somepackagename") to a file. All other log statements should go to stdout.</p>
<p>At first ran into the issue that during startup a file "LOG_FILE_IS_UNDEFINED" was created. I then goo... | 1 | 1,536 |
Facebook iOS SDK: Cannot specify an album using FBRequest's requestForUploadPhoto: | <p>I have a local photo in my iPhone app, and I want to upload it to a specific album on Facebook dedicated to my app.</p>
<p><strong>Problem:</strong> My app name ends with the word 'Photos', so the default Facebook album is <code>APP_NAME Photos Photos</code> - obviously a problem.</p>
<p><strong>Goal:</strong> I w... | 1 | 1,133 |
JTAG adapter ULINK-ME and openocd (on ArchLinux) | <p>I installed Openocd from opfficial Arch Linux repositories today and am now trying to use it with my JTAG adapter <a href="http://www.keil.com/support/man/docs/ulinkme/ulinkme_su_connecting.htm" rel="nofollow">ULINK-ME</a>. I found out that ULINK-ME uses CMSIS-DAP debugging firmware. Openocd has CMSIS-DAP drivers an... | 1 | 5,401 |
Better way to port Java into Python? | <p>After several hours of working on porting this program over, it appears to finally be in a working state. However, I was wondering if anyone knew of a better way or more complete way of porting Java servlets over into Python. The beginning of the Python script contains a lot of support code to make it easier to port... | 1 | 3,262 |
How to rotate tick labels in polar matplotlib plot? | <p>I have long identifiers and I would like to make a radial plot where ticks are all at different angles. For example, the first tick on the right at 0 degrees should have a 0 degree angle. The one at the top should be 90 degrees. The one at 270 degrees on the left should be 0 degrees. I want it to look reminiscen... | 1 | 2,095 |
How do I divide two numbers in assembly without using the MUL or DIV operators? | <p>I am working on something that will divide two numbers in assembly without using the MUL or DIV operators. The logic is, if n*var < x, where x is the number to divide and var is the number to divide by, increment n by 1 and repeat. So in the event of there being a remainder, the divider will round up the answer... | 1 | 1,324 |
Adding WIC as a requirement before .NET 4.0 in WiX Burn custom Managed Bootstrapper | <p>I'm having trouble getting a burn bundle with a custom managed bootstrapper application to launch on certain platforms that do not come with Windows Imaging Component, which is required to install .NET 4.0 (Windows 2003 being one of them).</p>
<p>We are using the standard method of defining what the managed bootstr... | 1 | 1,337 |
Optimization in Python: 'Var' object is not iterable | <p>I hope this is not a duplicate but i can't seem to find an specific answer to this problem. I'm pretty new to Python so it might be obvious but I can't seem to find my error.</p>
<p>So the problem is: I'm using gurobi to optimize a network-flow-model. But I have some trouble formulating the constraints because i ha... | 1 | 1,764 |
Straightforward solution on how to stereo calibration and rectifications OpenCV? | <p>I have been digging on this topic for almost a week and couldn't find any solid solution yet.
It is interesting that no one ever posted a <strong>straightforward</strong> solution on how to calibrate and rectify a stereo camera with OpenCV in order to compute the depth, from here and there(<a href="https://stackover... | 1 | 1,567 |
Select query with doctrine | <p>I was trying to create a select query with doctrine but it didn't work.
I have three tables, Product(ID, Name), Client(ID, Name), Orders(product, client).
I need to select and show all the orders made by a client, and also the product name.
How can I make this particular query using doctrine?
Sorry if it's a banal ... | 1 | 1,528 |
instanceof Closure returns false | <p>In the routing part of my application I have classes Route and Router, Route just holds information about specific mapped route and also methods to set and get those information.
I am trying to pass Closure like this,</p>
<pre><code>Router::map('/', function(){}, array());
</code></pre>
<p>i store the second param... | 1 | 4,052 |
Issue applying a manifest to a wix generated msi using mt.exe | <p>I'm trying to apply a manifest to a WiX generated msi to create an exe that will immediately display a UAC prompt upon running the installer. Unfortunately I'm getting the following error upon building my installer project:</p>
<pre><code>Values of attribute "level" not equal in different manifest snippets. mt.exe... | 1 | 3,342 |
ProtoBuf-Net err msg - "An exception of type 'System.OutOfMemoryException' occurred in mscorlib.dll but was not handled in user code" | <p>While Serializing a dynamic object with around 250 properties and approx 20,000 rows I am getting the below error. The same code works fine when the number of properties are around 20. The error occurred at point <strong><em>Serializer.Serialize(stream, lst);</em></strong></p>
<pre><code>An unhandled exception of t... | 1 | 1,712 |
Generating Random instances of subclasses using a Abstract Superclass | <p>So I have been busting my head over this program assignment and I have no idea how do finish it. I have already completed 80% of it but the last part I don't know even the general idea. The question is </p>
<p>"Then write a method <code>randomVehicle</code> that randomly generates <code>Vehicle</code> references, w... | 1 | 1,243 |
Delphi - Loading JPEG and printing outputs as a black square? | <p>Having some trouble with printing JPEG images via Delphi TCanvas.
Anywhere between 30-50% of the time the JPEG will print out as a black
square rather than as it should. Have tried changing many settings to see
if there was a particular condition under which it would fail to print but
as of the time of writing noth... | 1 | 1,570 |
C++ (Intel) vs Java (Hotspot) vs C# benchmark questions (code and results included) | <p>I have been comparing the raw CPU performance speed between the three main languages (code and results are below). I am very curious as to how the main languages compare for raw computational power. I had a theory that Java and C# could possibly rival C++ when there was no memory overhead involved. </p>
<p>My quest... | 1 | 2,288 |
RSA_private_decrypt() failing randomly: block type is not 02 | <p>I am using openssl 0.9.6g with C++. I have generated RSA public/private keypair. I have <a href="http://openssl-net.sourceforge.net/" rel="nofollow">openssl.net</a> framework which is based on 1.0.0d version of openssl. I am encrypting text using public key with openssl.net and when I try to decrypt in my C++ code, ... | 1 | 1,626 |
JavaFX drag and drop not working correctly | <p>Im doing a drag and drop test with two Imageviews in a gridpane. My problem is that when i complete the drag and drop and move target imageview to source imageview and release the mouse i wrongly end up with it showing the picture from "img2" and not the picture from "img1". When i comment out the "setOnDragExited" ... | 1 | 1,510 |
Continuous Pure CSS Ticker | <p>I've achieved a ticker with pure css, there is a small issue which i'm not able to rectify.</p>
<p>I want the ticker to be continuous without any gaps. i.e after "item 2" scroll ends "item 1" should appear immediately. </p>
<p>Currently if you notice in the fiddle, after the last item in scroll there is a lot of e... | 1 | 1,076 |
In Laravel 5.7, How to override Tymon Jwt-Auth Middleware in Kernel? | <p>I'm using Laravel 5.7 for some api. I'm also using package <a href="https://github.com/tymondesigns/jwt-auth" rel="nofollow noreferrer">https://github.com/tymondesigns/jwt-auth</a> to generate JWT tokens to authenticate users. I have configured everything long time ago and it works well.</p>
<p>I register Route gro... | 1 | 1,191 |
Why is flex affecting font size on iOS? | <p>I'm pretty shocked after confirming that font size is affected somehow while using flexbox on Safari iOS</p>
<p><strong>iOS</strong>
<a href="https://i.stack.imgur.com/q9VNw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/q9VNw.png" alt="enter image description here"></a></p>
<p><strong>Desktop</strong>
... | 1 | 1,061 |
GoogleTest PrintTo not getting called for a class | <p>I'm having a rather strange problem telling googletest to print a certain class the way I want using PrintTo.<br>
The class is a very simple 2D point, it is in a namespace and the PrintTo function is in the same namespace. In fact, I have a derived class (a 3D point) which prints perfectly.</p>
<p>Here's some code ... | 1 | 1,990 |
java.lang.IllegalStateException: No thread-bound request found + @JaversSpringDataAuditable | <p>I'm getting <code>java.lang.IllegalStateException: No thread-bound request found</code>, when I use Javers Audit feature in my JPA repository class.</p>
<pre><code>@JaversSpringDataAuditable
</code></pre>
<p>My service method(create/Update) is defined with <code>@Async</code> and it's handled using <code>Future</c... | 1 | 2,878 |
maven does not open the browser | <p>I am fresher to testing. I developed a maven selenium project. It shown the build failure and display <code>java.lang.NoClassDefFoundError: org/openqa/selenium/interactions/HasInputDevices.</code></p>
<p>What is the reason for that issue? Here I had attached my code. </p>
<p>This is my project explorer window.<br>... | 1 | 3,124 |
Contact form - success message | <p>I am using a contact form and at the moment when you submit your details you are brought to a new page with a "thank you" message. I don't want users to be re-directed to a new page and instead I would like the "thank you" message to be displayed on the same page as the form. The code I am using is below.</p>
<p><s... | 1 | 1,998 |
android required example for using ratingbar in listview | <p>I am learning android and want a sample code or an example for using ratingbar just to display ratings and no onclick events within a listview.</p>
<p>I am fetching the data from a mysql database using json. the same data after being converted into float must be displayed in ratingbar within the list. I tried out ... | 1 | 6,137 |
Android NFC development using Fragment | <p>The online source codes for NFC are done using Activity. I would like to ask if it is possible to develop using Fragment instead?</p>
<p>This is the error i hit when i run the codes</p>
<p><strong>java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mobile.countmein/com.mobile.countmein.act... | 1 | 3,654 |
GraphQL: A schema must have a query operation defined | <p>My IDE (Phpstorm with JS GraphQL) is giving me the title error for my schema. </p>
<p>I'm new to GraphQL, what should the query be set to if the actual query operation only has a mutation at the root level? </p>
<p>Below is an actual query taken out of a (Shopify) tutorial for their GraphQL API. I'm copying my loc... | 1 | 1,073 |
Parcelable ArrayList<LatLng> Android | <p>I can't to implement Parcelable on my object attribute "ArrayList" , apparently my attribute "ArrayList works, why ? because, I use the same method :</p>
<pre><code>in.readTypedList(etapes,Step.CREATOR);
in.readTypedList(points, LatLng.CREATOR);//BUG
</code></pre>
<p>My class, and of course : "impo... | 1 | 2,825 |
Using NumPy argsort and take in 2D arrays | <p>The aim is to calculate the distance matrix between two sets of points (<code>set1</code> and <code>set2</code>), use <code>argsort()</code> to obtain the sorted indexes and <code>take()</code> to extract the sorted array. I know I could do a <code>sort()</code> directly, but I need the indexes for some next steps.<... | 1 | 1,047 |
Spring Kafka SeekToCurrentErrorHandler maxFailures doesn't work when concurrency level is less than partition number | <p>I am using spring kafka 2.2.7 and my consumer configuration code is following:</p>
<pre><code>@Slf4j
@Configuration
@EnableKafka
public class KafkaConfiguration {
@Bean
ConcurrentKafkaListenerContainerFactory<String, Customer> kafkaListenerContainerFactory() {
ConcurrentKafkaListenerContainerFactory&... | 1 | 1,066 |
Angular 2 NgModel doesn't work | <p>I'm starting my transition from Angular 1 to Angular 2. I tried to do simple things first so I wrote a component:</p>
<pre class="lang-js prettyprint-override"><code>import {Component} from 'angular2/core';
import {NgModel} from 'angular2/common';
@Component({
selector: 'app',
template: `
<div>
&... | 1 | 1,315 |
DataTables warning: table id=big_table - Requested unknown parameter '0' for row 0. | <p><img src="https://i.stack.imgur.com/86sGO.png" alt="enter image description here"></p>
<p>I'm working with the jquery datatables plugin and codeigniter , while trying to follow (roughly ) <a href="http://www.ahmed-samy.com/php-codeigniter-full-featrued-jquery-datatables-part-1/" rel="nofollow noreferrer">http://www... | 1 | 1,708 |
msdeploy cannot reach destination despite having web deployment service started | <p>as you can see from the title I am experiencing some trouble deploying to a remote IIS.
Here is what I have done so far:</p>
<ul>
<li>I have set up a virtual machine running an IIS7 on Windows Server 2008.</li>
<li>I have bridged the VMs network adapter.</li>
<li>I have installed and started the "Web Deployment Age... | 1 | 1,227 |
Asp.Net Core Scaffolded 'Register' and 'Login' redirect not working in Azure AppService | <p>Asp.Net Core 3.0 app. I am using Entity Framework Identity individual authentication and have scaffolded in a Login page and a Register page. I have an SQL database in Azure.</p>
<p>When I run on localhost, the registration & login work fine. I have confirmed the new user is stored in the DB Users table.</p>
<p>... | 1 | 4,044 |
Getting error unexpected use of history when trying to redirect? | <p>I'm trying to build a login authentication system in where when the user introduces all of his details with the passport authentication module, the user gets redirected to the home page with the <code>history</code> module. But after doing it, it gives mme an error of usage with unexpected use of <code>history</code... | 1 | 1,245 |
Hibernate 4 lazy loading doesn't work | <p>I am working on a web application using spring 3 and hibernate 4.
I am having trouble lazy-loading a set of granted permissions of a group to which a user belongs.
When a user object is retrieved from the database, its Group object doesn't have any permissions even though user.getGroup().getPermissions() is invoked... | 1 | 3,175 |
How to load common javascript files in development and on web server not using relative path? | <p>I am a newbie, but I have spend the last 2 days reading so may things on this, and the more I read, the more confusing it gets. Not able to find one simple instruction or example to follow, or a simple and complete answer of this very important problem.</p>
<p>I simply want to include a common javascript file using... | 1 | 1,231 |
Getting Modified Preorder Tree Traversal Data into an Array | <p>What is an efficient way to put the tree data into an <strong>array</strong>?</p>
<p>I followed the <a href="http://articles.sitepoint.com/article/hierarchical-data-database/2" rel="nofollow noreferrer">sitepoint tutorial</a> to retrieve the tree data.</p>
<p>However, the tutorial only shows how to output the tree... | 1 | 1,041 |
Has anyone been able to integrate tcmalloc on a Windows 64 bit application that uses shared DLL's? | <p>I have a 64 bit Visual Studio 2010 (single threaded) C++ Windows application that I am trying to integrate tcmalloc with and I am running into problems when using any of our dynamically linked dll's . I linked tcmalloc as a static library. tcmalloc works great until the application starts using one of our shared dl... | 1 | 1,607 |
Glibc 2.7 configure error programs too old | <p>When i load a GenomicFeatures package in R, it pop up a error message:</p>
<pre><code>Loading required package: IRanges
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/home/caohf/R/x86_64-unknown-linux-gnu-library/2.15/IRanges/libs/IRanges.so':
/lib64/libc.so.6: version `GLIBC_... | 1 | 1,967 |
Apache Tiles issue - org.apache.tiles.jsp.taglib.InsertAttributeTag cannot be cast to javax.servlet.jsp.tagext.Tag | <p>I tried to use tiles 2.2.2 with Struts 2. I included all the necessary jars(related to tiles, Struts2 and Struts2 tiles plugin) in the project.</p>
<pre><code>commons-beanutils-1.8.0.jar
commons-collections-3.1.jar
commons-digester-2.0.jar
commons-fileupload-1.3.jar
commons-io-2.0.1.jar
commons-lang-2.4.jar
commons... | 1 | 2,448 |
Getting RestAssured test to work with Spring Security CSRF for AngularJS | <p>I've found "<a href="https://spring.io/blog/2015/01/12/the-login-page-angular-js-and-spring-security-part-ii" rel="nofollow">The Login Page: Angular JS and Spring Security</a>" of great help, to add CSRF protection into a web application that uses Spring (Security, among others) implementing a REST API that's used b... | 1 | 2,257 |
Servlet is not getting called by using jquery ajax in JSP? | <p>I am working with <code>JSP</code> and <code>Ajax</code> for the first time. I am trying to get one column data from database and populate it in my drop down list in my JSP page using Ajax call. I don't want to refresh the page so that is the reason, I am making an Ajax call.</p>
<p>Here is my <a href="http://jsfid... | 1 | 1,577 |
How to stream the blob | <p>I am developing a radio system with a microphone, the system admin will speak into the microphone and the audio will be transmitted in real time to the User ... I'm newbie using node.js and I'm unsure of how to make the stream the audio from the microphone to the User ... can anyone help me? </p>
<p>I have the foll... | 1 | 1,256 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.