title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to store a pointer in a custom embedded Python object
<p>I have created a custom Python type in C as per the tutorial <a href="https://docs.python.org/2.7/extending/newtypes.html#the-basics" rel="nofollow noreferrer">https://docs.python.org/2.7/extending/newtypes.html#the-basics</a>. In my C I receive a pointer to a struct, I want to be able to get and set the values in t...
0
1,029
MySQL Query Within JavaScript
<p>I am working on a form whereby JavaScript is used to add another line item. The purpose is to add line items to an invoice. I have successfully got this to work ok when using text boxes in my form, but am stuck on how to get this to work with a dropdown box that makes a call to mysql to get the dropdown box data.<...
0
1,637
transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8") is NOT working
<p>I have the following method to write an XMLDom to a stream:</p> <pre><code>public void writeToOutputStream(Document fDoc, OutputStream out) throws Exception { fDoc.setXmlStandalone(true); DOMSource docSource = new DOMSource(fDoc); Transformer transformer = TransformerFactory.newInstance().newTransformer...
0
1,119
missing messages when reading with non-blocking udp
<p>I have problem with missing messages when using nonblocking read in udp between two hosts. The sender is on linux and the reader is on winxp. This example in python shows the problem.<br> Here are three scripts used to show the problem.<br> <strong>send.py</strong>:</p> <pre><code>import socket, sys s = socket.sock...
0
1,053
Select distinct value in XSLT for-each-group
<p>I'm having an issue selecting distinct values for each group. The result just doesn't display on screen. The desired result is shown below: </p> <pre><code>&lt;xsl:for-each-group select="Items/Item" group-by="ProviderName"&gt; &lt;xsl:sort select="current-grouping-key()"/&gt; &lt;tr&gt; &lt;th&gt; ...
0
2,024
How to make "HTTPS redirect" work on WebSphere Application Server Liberty Profile?
<p>I want make HTTP Redirect work on WebSphere Application Server Liberty Profile (WLP). For example:-</p> <p>When user types: <code>http://localhost:8080/helloworld</code>, the browser should automatically go (be redirected) to <code>https://localhost:9443/helloworld</code></p> <p>To achieve this, I followed this <a...
0
1,157
Is there some decompiler for Kotlin files that decompile into kotlin *.kt files
<p>I try to learn how to decompile Android program(APK) and found this site <a href="http://www.javadecompilers.com" rel="noreferrer">Decompilers online</a> . It´s working grate for java code but when there are Kotlin files code the decompiler produces java code and it mixes Kotlin and java.</p> <p>Here's what I see f...
0
2,526
Android unable to find my onClick method
<p>I am having an issue where my Button (id <code>i_am_a_problem</code>) which is declared in the fragment's layout XML, is generating an error when the button is clicked. Android tries to call the onClick method <code>public void calculate(View v)</code> but is unable to find it (despite it being declared in MainActiv...
0
1,523
UICollectionView with Custom UICollectionViewCell
<p>I have a UICollectionView with a custom cell. I had this working completely till I tried to create the collection view programmatically rather than from the storyboard. I did this because I was not able to change the frame size of the collection view for different screen sizes. So I tried to create a collection view...
0
1,328
Custom incoming/outgoing call screen in Android
<p>I am trying to implement custom incoming/outgoing calling screen. The following is what I have tried. U gave two problems </p> <ol> <li><p>Sometime it calls the default incoming screen on my phone or sometimes it calls the customized screen. I would the phone always call customized screen.</p></li> <li><p>I am not ...
0
4,818
java.lang.NumberFormatException: Invalid int: "" EXCEPTION
<p>If the user left the edittext empty an error occurs java.lang.NumberFormatException: Invalid int: "". The error comes at line</p> <pre><code> if (a=="" &amp;&amp; b=="") </code></pre> <p>and also at line</p> <pre><code> int result = Integer.parseInt(a) + Integer.parseInt(b); t1.setText(Integer.toString(result));...
0
2,674
JSF 2.0 navigation not working properly
<p>I am trying to get started with JSF 2.0. I am trying a basic navigation example and it's not working properly. </p> <p>The file structure is the following:</p> <p><img src="https://i.stack.imgur.com/aI7Pw.png" alt="enter image description here"></p> <p>I have configured the mapping in web.xml:</p> <pre><code>&lt...
0
1,070
"Invalid privatekey" when using JSch
<p>I'm using the following code to work with Git in a Java application. I have a valid key (use it all the time), and this specific code has work for me before with the same key and git repository, but now I get the following exception:</p> <blockquote> <p>invalid privatekey: [B@59c40796.</p> </blockquote> <p>At t...
0
1,036
Adding custom filter in spring security
<p>I am trying to make a custom AuthenticationProcessingFilter to save some user data in the session after successful login</p> <p>here's my filter:</p> <pre><code>package projects.internal; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; imp...
0
1,134
How to upload image to Firebase using Flutter
<p>I am using the image_picker library <a href="https://pub.dartlang.org/packages/image_picker" rel="noreferrer">https://pub.dartlang.org/packages/image_picker</a> with for selecting/taking the photo that I want to upload. The code so far uploads the image to Firebase storage successfully the only issue is that after ...
0
1,064
How to create a generator/iterator with the Python C API?
<p>How do I replicate the following Python code with the Python C API?</p> <pre><code>class Sequence(): def __init__(self, max): self.max = max def data(self): i = 0 while i &lt; self.max: yield i i += 1 </code></pre> <p>So far, I have this:</p> <pre><code>#includ...
0
6,751
How to Get A Div to Smoothly Move Up Using CSS Transitions?
<p>The title kind of describes it. Here's the code:</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>#main { float: left; width: 20%; height: 10vh; margin-top: 10vh; margin-left: 40%; text-...
0
1,535
How to resize an iTextSharp.text.Image size into my code?
<p>I am pretty new in <strong>iText</strong> nd <strong>iTextSharp</strong> (the C# version of iText) and I have the following problem.</p> <p>I am inserting some jpg charts inside my PDF. These charts are rapresented by some jpg like this one:</p> <p><img src="https://i.stack.imgur.com/qeOA5.jpg" alt="enter image de...
0
1,153
Implement pagination for React Material table
<p>I have this Spring Boot endpoint for listing items from database:</p> <pre><code>import React, { useEffect, useState } from &quot;react&quot;; import clsx from &quot;clsx&quot;; import { createStyles, lighten, makeStyles, Theme, } from &quot;@material-ui/core/styles&quot;; import CircularProgress from &quot...
0
8,904
JavaScript template (underscore)
<p>Underscore has me stumped! In my code everything works in regards to getting the data after $.when. the console.log (posts); works but when i try to pass it into the template and reference </p> <pre><code>&lt;h1&gt;&lt;%=posts.id %&gt;&lt;/h1&gt; </code></pre> <p>I get "Uncaught ReferenceError: posts is not defin...
0
1,809
Heroku code=H10 desc="App crashed" - Can't figure out why it's crashing
<p>I've been searching around on this one for a while and can't find anything that seems to be applicable in my situation. I've been staring at these logs and I can't see what the problem is. </p> <p>This has happened during deployments before, but always seemed to resolve itself. Now this just happened on its own (no...
0
1,971
notifyDatasetChanged() is not working in Kotlin
<ul> <li><code>notifyDatasetChanged()</code> is not working, But instead of <code>notifydatasetChanged()</code>, if i pass the <code>eventList</code> with data to adapter directly after initializing <code>recyclerview</code> list loads fine.</li> <li>How to resolve this</li> </ul> <hr> <p><strong>ActEvents.kt</strong...
0
1,274
JavaFX position dialog and stage in center of screen
<p>The following codes demonstrates centering of a dialog and the stage in the center of the screen. The dialog is supposed to be displayed first for the user to enter the login credentials. After successful login, the main window (stage) is then displayed. I found the solution of centering the dialog and stage from th...
0
7,161
import matplotlib.pyplot hangs
<p>I'm trying to get matplotlib up and running on OS X 10.8.4. I've installed matplotlib and the dependencies (libping, freetype, numpy, scipy). I am able to import matplotlib just fine. However, if I try to import matplotlib.pyplot, it just hangs. There's no error, it's just that nothing happens.</p> <pre><code>&gt;&...
0
7,935
Steps for changing process template for an existing project in TFS 2010
<p>I have an TFS server installation that through time has gone through upgrades from TFS 2005 to TFS 2008 and then to TFS 2010. During the lifetime of the installation a lot of projects have been created and different project templates have been used. MSF Agile 4.0, 4.1, 4.2 and 5.0. and a few MSF CMMI ones.</p> <p>W...
0
1,177
How to stick footer to bottom (not fixed) even with scrolling
<p>I want the footer of this page to stick to the bottom, below all content, but not fixed in the screen. The problem is that when the body has more than 100% of height, the footer stay in the middle of the screen, and not in the bottom.</p> <p>I've seen a lot of tutorials on how to achieve this, using &quot;position: ...
0
1,350
SqlBulkCopy Multiple Tables Insert under single Transaction OR Bulk Insert Operation between Entity Framework and Classic Ado.net
<p>I have two tables which need to be inserted when my application run.<br> Let's say that I have tables as followed</p> <ul> <li>tbl_FirstTable and tbl_SecondTable</li> </ul> <p>My problem is data volume.<br> I need to insert over 10,000 rows to tbl_FirstTable and over 500,000 rows to tbl_SecondTable.</p> <p>So fri...
0
3,574
How get sum of total values in stackedBar ChartJs
<p>I'm trying to get the sum of all values of a stackedBar and include this total in tooltip.</p> <blockquote> <p>Note: my datasets aren't static, this is an example</p> </blockquote> <pre><code>var barChartData = { labels: ["January", "February", "March", "April", "May", "June", "July"], datasets: ...
0
1,327
Disable WPF buttons during longer running process, the MVVM way
<p>I have a WPF/MVVM app, which consists of one window with a few buttons.<br> Each of the buttons triggers a call to an external device (an <a href="http://www.dreamcheeky.com/thunder-missile-launcher" rel="nofollow noreferrer">USB missile launcher</a>), which takes a few seconds.</p> <p>While the device is running, ...
0
1,663
datepicker specified value does not conform to the required format jquery.js
<p>So yesterday I asked a question about setting the date for a calendar. I was missing some references so have since added them. Please see the HTML section below.</p> <p>I believe my code to be correct for how to set the date for a calendar. However upon loading the page I get these errors,</p> <blockquote> <p>Un...
0
1,616
Specify cert to use for SSL in docker-compose.yml file?
<p>I've got a small <code>docker-compose.yaml</code> file that looks like this (it's used to fire up a local test-environment):</p> <pre><code>version: '2' services: ubuntu: build: context: ./build dockerfile: ubuntu.dock volumes: - ./transfer:/home/ por...
0
1,040
Bootstrap 4 Tabs are not switching
<p>I am currently using bootstrap 4. I read the bootstrap documentation and am currently trying to incorporate tabs but they are not switching my code is the following:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;title&gt;Info&lt;/title&gt; &lt;link rel="styleshee...
0
1,526
Printing all Possible nCr Combinations in Java
<p>I'm trying to print out all possibilities of nCr, which are the combinations when order doesn't matter. So 5C1 there are 5 possibilities: 1 , 2, 3, 4, 5. 5C2 there are 10 possibilities: 1 2, 1 3, 1 4, 1 5, 2 3, 2 4, 2 5, 3 4, 3 5, 4 5.</p> <p>I made functions that print what I want for r = 2, r = 3, and r = 4, and...
0
1,324
Status: "MariaDB server is down"
<p>Hope someone can help me:</p> <p>I have many sites running on my server and I am using mariadb. when I do:</p> <pre><code>sudo service mysql restart </code></pre> <p>I get:</p> <pre><code>Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" an...
0
1,943
BeanAlreadyExistsException - Oracle WebLogic
<p>I deployed an app on my web server and now I am trying to deply another one on the web server and I am getting a BeanAlreadyExistsException. I thought it might be due to the fact that I have two beans with the same name in the two different projects. So I removed the first project from the server - however that didn...
0
3,590
Spring maven dependency issue
<p>I have a problem that my pom.xml throw an error</p> <p>ArtifactTransferException:</p> <blockquote> <p>Failure to transfer org.springframework:spring-tx:jar:3.2.4.RELEASE from http:// repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interv...
0
3,834
Huffman encoding in C
<p>I am trying to write a module which assigns huffman encoded words to the input symbols, but the given codes differ from what they should look like.</p> <p>For example, if I run it with following symbol probabilities:</p> <p>(1st column: probabilities; 2nd column: my huffman codes; 3rd column: correct huffman codes...
0
1,344
VSCode prettier adds `value` to imports in TypeScript React
<p>After configuring prettier with the plugin in VSCode the format on save function adds weird <code>value</code> keywords to every non-default import in my React+TS code.</p> <p>Like this:</p> <pre><code>import { value ApolloProvider } from '@apollo/client'; import { value BrowserRouter as Router, value Switch } from ...
0
2,825
JSP AJAX file uploading
<p>I tried to upload a file and display content of the file back to the browser with ajax and jsp. However, it doesn't seem to work very well for me.</p> <p>Apparently, in JSP page Upload.jsp, when I try to getContentType() from request, <code>request.getcontentType() == null</code> .</p> <p>Does anyone have experien...
0
1,929
Heroku - Application Error
<p>I've created simple application with Ruby on Rails and I’ve tried to commit it on Heroku. I’ve followed this <a href="http://devcenter.heroku.com/articles/quickstart" rel="nofollow">Getting Started on Heroku guide</a>, I finished it and try to open my page but I still see an Error: Application Error:</p> <blockquot...
0
1,571
python argparse set behaviour when no arguments provided
<p>I'm fairly new to python and I'm stuck on how to structure my simple script when using command line arguments.</p> <p>The purpose of the script is to automate some daily tasks in my job relating to sorting and manipulating images. </p> <p>I can specify the arguments and get them to call the relevant functions, but...
0
1,328
Replace NA in column with value in adjacent column
<p>This question is related to a post with a similar title (<a href="https://stackoverflow.com/questions/13514266/replace-na-in-an-r-vector-with-adjacent-values">replace NA in an R vector with adjacent values</a>). I would like to scan a column in a data frame and replace NA's with the value in the adjacent cell. In th...
0
1,599
How to test Akka Actor functionality by mocking one or more methods in it
<p>I'm interested to know about how to test Akka Actor functionality, <strong>by mocking some methods</strong> (<em>substitute real object's/actor's method implementation by mocked one</em>) in Actor.</p> <p>I use <code>akka.testkit.TestActorRef</code>;</p> <p>Also: I tried to use <code>SpyingProducer</code> but it i...
0
1,375
ActiveRecord::StatementInvalid (PG::SyntaxError: ERROR: syntax error at or near "."
<p>I am not sure why my query works on localhost but is failing on the server. This happens when i try to create a quiz which routes to QuizzesController#new</p> <pre><code># GET /quizzes/new def new @quiz = current_user.quizzes.new end </code></pre> <p>This is the query: </p> <pre><code>SELECT COUNT(*) FRO...
0
4,669
Efficient method of calculating density of irregularly spaced points
<p>I am attempting to generate map overlay images that would assist in identifying hot-spots, that is areas on the map that have high density of data points. None of the approaches that I've tried are fast enough for my needs. Note: I forgot to mention that the algorithm should work well under both low and high zoom sc...
0
3,599
Consider defining a bean of type 'service' in your configuration [Spring boot]
<p>I get error when I run the main class. </p> <p><strong>Error:</strong></p> <pre><code>Action: Consider defining a bean of type 'seconds47.service.TopicService' in your configuration. Description: Field topicService in seconds47.restAPI.topics required a bean of type 'seconds47.service.TopicService' that could not...
0
1,149
Swift: change tableview height on scroll
<p>I have a VC as shown in the image<a href="https://i.stack.imgur.com/1k8O2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1k8O2.png" alt="enter image description here"></a></p> <p>It has a <strong>UICollectionView</strong> on top, and a <strong>UITableView</strong> at the bottom. CollectionView h...
0
1,296
Update data in access mdb database in c# form application " syntax error in update statement"
<p>I was working in C# form application with an MS-Access <code>mdb</code> database. I have a database in which I have a table <code>Customers</code> with two columns <code>CustomerId</code> And <code>Balance</code>. Both columns are of <code>integer</code> datatype.</p> <p>Error I was getting is</p> <blockquote> <...
0
1,698
local variable or method `config' for main:Object (NameError)
<p>I'm following this post for integrating Omniauth Twitter + Devise <a href="http://sourcey.com/rails-4-omniauth-using-devise-with-twitter-facebook-and-linkedin/" rel="noreferrer">http://sourcey.com/rails-4-omniauth-using-devise-with-twitter-facebook-and-linkedin/</a> and I have encounter an issue that is blocking me ...
0
1,904
Android Parcelable -- RetailerOrderActivity.java return null
<p>I have to pass one activity to another activity:</p> <p>I have SalesProduct enetity class: </p> <pre><code> public class Product implements Parcelable{ private double availableQuantity; private double price; private String productCode; private String description; private String description2;...
0
3,794
Why isn't factory_girl operating transactionally for me? - rows remain in database after tests
<p>I'm trying to use factory_girl to create a "user" factory (with RSpec) however it doesn't seem to be operating transactionally and is apparently failing because of remnant data from previous tests in the test database.</p> <pre><code>Factory.define :user do |user| user.name "Joe Blow" user.ema...
0
1,964
Quasar App Routing Problems
<p>I am developing a Quasar App right now. So far I only have a login page and the default layout that quasar provides. I have a separate server I have set up running at port 100. I already set up the proxy to redirect all calls from axios and socket.io to my server which hosts my mySQL database for my application. I a...
0
2,048
SAPUI5 Using XML-File as View with "data-sap-ui-resourceroots"?
<p>I'm doing the SAPUI5 Walkthrough and stuck at step 4. <a href="https://sapui5.hana.ondemand.com/#docs/guide/1409791afe4747319a3b23a1e2fc7064.html" rel="nofollow">(Walkthrough Step 4)</a></p> <p>I'm working with Eclipse and don't know how to change this code-line so it works for my project and is going to find my vi...
0
1,111
How to refresh data of one component from another component in react js
<p>I'm new to react js and creating one sample application with and some basic CRUD operation.<br> I'm able to display a list, but I don't have any idea if I delete any record then how to refresh data grid.</p> <p>Here is my code:</p> <pre><code>var DeleteRow = React.createClass({ rowDelete: function (e) { ...
0
1,912
React router not allowing images to load
<p>I am using react-router for the first time and I am having a little problem with my project. React-router is changing the url fine, but then my images are not getting loaded. I believe it is because the base url changes, for example it works when the link it's like this: <code>http://localhost:3000/f0287893b2bcc6566...
0
1,716
Visual Studio 2012 + IIS 8.0 = how to deploy WCF service on localhost?
<p>I have a <code>Wcf Service Application</code> project that is referenced by and used in different projects. Everything works fine when started Visual Studio 2012 - IIS Express is launched, hosted on localhost.</p> <p>I tried to use <code>Publish</code> option in right-click menu of my <code>Wcf Service Application<...
0
3,323
curl_init undefined?
<p>I am importing the contacts from gmail to my page .....</p> <p>The process does not work due to this error </p> <blockquote> <p><code>'curl_init'</code> is not defined</p> </blockquote> <p>The suggestion i got is to </p> <ol> <li>uncomment destination curl.dll </li> <li>copy the following libraries to the win...
0
2,128
DispatchKeyEvent to listen for Spacebar being pressed
<p>I am working on an Android project and I need to check when the spacebar is pressed sos I can execute a certain function.</p> <p>The problem is, it was working on the emulator but not on my actual device. I think it might be because my emulator was using a physical keyboard, not the onscreen virtual keyboard but whe...
0
1,446
How to get same session with Spring Security and Spring Session From multiple server
<p>I'm sorry that my english is still not so good. Please bear with me, I hope you can understand my question..</p> <hr> <p>I have two web servers. (each web application is same)</p> <p>Web servers are sharing one redis server. And I use Spring Security and Spring Session. When I login first server and access second...
0
2,765
Current user in owin authentication
<p>I started to build a web api for mobile apps and I'm having a hard time with implementing authentication. I use Bearer and although everything is supposed to be fine, I cannot get the current user from action in controller. HttpContext.Current.User.Identity.Name is null (the same is result of HttpContext.Current.Use...
0
2,420
"End of Central Directory record could not be found" - NuGet in VS community 2015
<p>I am getting an error when i try to install any package from the NuGet in VS community edition 2015.</p> <pre><code>Attempting to gather dependencies information for package 'Microsoft.Net.Http.2.2.29' with respect to project 'ClassLibrary1', targeting '.NETFramework,Version=v4.5.2' Attempting to resolve dependenci...
0
1,650
Passing object in ngModel to a custom control Angular2
<p>I want to create custom control which contains other custom controls and use ngModel that connects all of them. Like : </p> <p>PersonSearchComponent :</p> <ul> <li>DeveloperSearchControl <ul> <li>Name - some string input</li> <li>Surname </li> <li>ProffesionSelect - custom control expecting ProffesionModel</li> ...
0
1,988
WPF DataBound treeview expand / collapse
<p>I'm just trying to find a way to control the expand / collapse of the <code>TreeView</code> nodes through the object they're bound to. The object has an <code>IsExpanded</code> property, and I want to use that to show the <code>TreeView</code> node itself expanded or collapsed based on that property.</p> <p>Here's ...
0
1,292
AndroidManifest.xml The markup in the document following the root element must be well formed
<p>I have got Eclipse to generate a Basic android Hello World app, But it has 2 errors: first, in my AndroidManifest.xml on these two lines:<br> I get The markup in the document following the root element must be well formed, Also My R.java Will not generate, no matter how many times I clean my project. Any Answers?<...
0
1,489
One-to-one relationship in EF Core (The child/dependent side could not be determined for the one-to-one relationship)
<p>I've been getting the following error message and I can't seem to grasp the reason why have I been getting it. Interestingly when adding migrations I didn't get any errors, but whenever I want to use the context I do get it.</p> <blockquote> <p>The child/dependent side could not be determined for the one-to-one ...
0
1,315
java.lang.IllegalArgumentException: Can not set int field it.besmart.models.Park.idPark to [Ljava.lang.Object;
<p>i'm dwelling with this problem. I have 3 classes</p> <p>User and Park have a ManyToMany relation, and Piano and Park have a ManyToOne relation.</p> <p>In the models, the interesting parts are User.java</p> <pre><code>@ManyToMany(fetch = FetchType.EAGER) @JoinTable(name="users_parcheggio", joinColumns = {@Join...
0
2,157
PyInstaller-built Windows EXE fails with multiprocessing
<p>In my project I'm using Python's <code>multiprocessing</code> library to create multiple processes in __main__. The project is being packaged into a single Windows EXE using PyInstaller 2.1.1.</p> <p>I create new processes like so:</p> <pre><code>from multiprocessing import Process from Queue import Empty def _st...
0
1,288
importing configurable products in Magento from CSV
<p>I'm trying to append complex data to my database products in <code>Magento</code> ver. 1.7.0.2, some are simple and other configurable. The exported Magento <code>CSV</code> doesn't greet with the needs for importing. I have this file for example for importing data:</p> <pre><code> sku,_store,_attribute_set,_typ...
0
3,181
How to set button click listener for Custom Dialog?
<p>I have made a main <code>Dialog</code> class on which I send the layout ID and shows the layout as a <code>Dialog</code> now when I send the layout from calling class it pops up the dialog but the contents of dialog i.e. buttons are inaccessible I can't set click listener for them. How to do that?</p> <p>CALLING CL...
0
1,353
Importing CSV data using PHP/MySQL - Mysqli syntax
<p>IN THE BOTTOM OF THIS QUESTION THE FINAL CODE THAT FINALLY WORKED!</p> <p>Trying to implement this (<a href="https://stackoverflow.com/questions/11448307/importing-csv-data-using-php-mysql">Importing CSV data using PHP/MySQL</a>). I must be almost there...</p> <p>notes1: my $sql came straight from copy/paste phpmy...
0
1,981
java.sql.SQLException: Connection is not associated with a managed connection.org.jboss.resource.adapter.jdbc.jdk5.WrappedConnectionJDK5@42d0cb88
<p>I'm using <code>jboss5.1</code> with spring as the system's architecture. The version of <code>mysql</code> is <code>5.6.12</code>, and the version of <code>jdk</code> is <code>1.7</code>. Scenario : Because I need update the record which the system inserted into the DB no long before,<br> I try to get the id of the...
0
1,280
Request.Files is always null
<p>I'm writing a C# ASP.Net MVC application for client to post files to other server. I'm using a generic handler to handle posted files from client to server. But in my handler, System.Web.HttpContext.Current.Request.Files always empty (0 count).</p> <p>Form Code:</p> <pre><code>@model ITDB102.Models.UploadFileResul...
0
1,858
Gradle Build Error - NullPointerException thrown during app:compileDebugJava gradle task
<p>I keep receiving this error message everytime I try to make a gradle build. I recently made a build before this and the application was created without any issue. I didn't make any changes to my build.gradle file. What is causing this?</p> <pre><code>:app:preBuild ...... :app:processDebugResources :app:generateDeb...
0
4,991
Widget rebuild after TextField selection Flutter
<p>I'm developping a Flutter App that needed to have a form. So when the user open the app, a Splash Screen appear before the form that have the following code : </p> <pre><code>import 'package:flutter/material.dart'; import '../model/User.dart'; import './FileManager.dart'; import './MyListPage.dart'; class UserLoad...
0
1,428
POSTing multipart/form-data to a WCF REST service: the action changes
<p>I have a WCF Rest service:</p> <pre><code> [WebHelp(Comment = "Sample description for GetData")] [WebInvoke(Method="POST", UriTemplate = "invoke", BodyStyle =WebMessageBodyStyle.Bare)] [OperationContract] public string GetData( Stream input) { long incomingLength = WebOperationContext.C...
0
1,227
Aggregate (and other annotated) fields in Django Rest Framework serializers
<p>I am trying to figure out the best way to add annotated fields, such as any aggregated (calculated) fields to DRF (Model)Serializers. My use case is simply a situation where an endpoint returns fields that are NOT stored in a database but calculated from a database.</p> <p>Let's look at the following example:</p> ...
0
1,133
Ionic-Angular.js Taking pictures & sending to server: null images
<p>So I have managed to use a custom directive to upload images to my server, through Angular.js. I have also managed to implement the camera functionality from Cordova. Now I am trying to connect the two, but when sending images to the server, they get stored as null. I believe the problem lies in the fact that I was ...
0
1,030
Find max and min DateTime in Linq group
<p>I'm trying to find the max and min <code>DateTime</code>s from a CSV import.</p> <p>I have this to import the data from the temp <code>DataTable</code>:</p> <pre><code>var tsHead = from h in dt.AsEnumerable() select new { Index = h.Field&lt;string&gt;("INDEX"), ...
0
1,114
Adding the pagination to a razor view
<p>I have an asp.Net Mvc4 web applcation in which i have a list as a model:</p> <pre><code>&lt;table class="table_data" border="1"&gt; &lt;tr&gt; @if(Model.Count &gt; 0){ &lt;th&gt; @Html.Label("Fonction") &lt;/th&gt; &lt;t...
0
1,341
Permission denied (missing INTERNET permission?): But permission is given
<p>I'm trying to call a httpClient and the response is "Permission denied (missing INTERNET permission?)". In the normal browser of Android I can open the URL without problems.</p> <pre><code> public static String getHttpResponse(URI uri) { StringBuilder response = new StringBuilder(); try { HttpGet g...
0
1,079
Discord.JS Userinfo command
<p>I'm trying to make this bot able to do this...</p> <ul> <li>Display User Roles</li> <li>You do d!au @User and their user info shows</li> </ul> <p>The only thing is that I do not know how to do this, I've found some other stack overflow questions but their bot requires "moment" and I have no idea what moment is. Th...
0
1,047
TCP connection refused with FFMPEG
<p>OFFICIAL EDIT:</p> <p>I thank you so much for your help but I am still encountering problems.</p> <p>My ffserver.conf file is like this:</p> <pre><code># Port on which the server is listening. You must select a different # port from your standard HTTP web server if it is running on the same # computer. HTTPPort 8...
0
5,336
I can't run "bundle update" because of "mysql2" gem
<p>I have this in the Gemfile:</p> <pre><code>gem 'mysql2' </code></pre> <p>But when I run <strong>bundle update</strong>, I get this error message:</p> <pre><code>An error occurred while installing mysql2 (0.3.16), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.16'` succeeds before bundling...
0
1,305
Using clang++, -fvisibility=hidden, and typeinfo, and type-erasure
<p>This is a scaled down version of a problem I am facing with clang++ on Mac OS X. This was seriously edited to better reflect the genuine problem (the first attempt to describe the issue was not exhibiting the problem).</p> <h1>The failure</h1> <p>I have this big piece of software in C++ with a large set of symbol...
0
3,240
How to hide ToolBar when I scrolling content up?
<p>I am trying to hide my tool bar when I scroll my text and image with content. Here I use scrollView for getting scroll content. When I scroll content up, how to hide the tool bar?</p> <p>Here is my XMl code:</p> <p>content_main.XML:</p> <pre><code>&lt;android.support.v4.widget.NestedScrollView xmlns:app=&quot;http:/...
0
2,729
Getting WindowsIdentity in my WCF Web Service
<p>I took over code from a developer that is no longer with us. It's a WCF web service that was originally using a passed in username, but we need it to use the WindowsIdentity instead.</p> <pre><code>string identity = ServiceSecurityContext.Current.WindowsIdentity.Name; </code></pre> <p>That code ends up returning a...
0
2,406
Undefined Symbols for architecture x86_64: Compiling problems
<p>So I am trying to start an assignment, my professor gives us a Main.cpp, Main.h, Scanner.cpp, Scanner.h, and some other utilities.</p> <p>My job is to create a Similarity class to compare documents using the cosine and Jaccard coefficients. However, I can not seem to get the project linked correctly, therefore I am...
0
1,857
how to resolve org.apache.commons.dbcp.SQLNestedException
<p>I am using hsqldb standalone as my database. i have a <code>hsqldb.jar(hsqldb-2.0.0)</code> which i added on my project build path so my project will find out where is my <code>hsqldb.jar</code>. i am using spring with these. my spring bean is:</p> <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/b...
0
1,578
Jasper report can't find package net.sf.jasperreports.engine
<p>I have a j2ee application using spring framework. I am trying to export jasper reports to xml, pdf and xhtml files. I am using eclipse ide with plugin for weblogic server and for apache tomcat server. It works fine when I run it on server(in eclipse) and choosing Tomcat as server. But when I try to run it on server(...
0
9,180
VueJS async component data and promises
<p>Trying out VueJS 2.0 RC, and using the fetch API to load some data for some of the components. Here's a mock example:</p> <pre><code>const Component = { template: '#comp', name: "some-component", data: function () { return { basic: data.subset, records: function () { return fetch('/dat...
0
1,120
React navigation make transparent screen inside other StackNavigator
<p>I have problem with transparent screen inside other StackNagigation. <a href="https://snack.expo.io/@sinhpn92/stacknavigator-issues" rel="nofollow noreferrer">demo</a></p> <p>I want to show <code>ScreenThree</code> overlay in the front of <code>ScreenTwo</code> after click <code>Go to ScreenThree</code> button in S...
0
1,421
Application Error when attempting to deploy Node.js/Express/Socket.io application on Heroku
<p>I am fairly new to all of these technologies (including somewhat JavaScript) so you might have to bear with me here.</p> <p>I followed the ChatApp tutorial over at Socket.IO docs fairly closely and modified the application to my likings somewhat; however, I don't think I changed much on the side of server interac...
0
1,884
java.lang.NoClassDefFoundError: org.slf4j.LoggerFactory
<p>I am getting the error as mentioned below, while running the feed utility. I am trying to load an image "<strong>logo.png</strong>". The <code>slf4j</code> jar file is also available in the runtime classpath. But still I am getting this error. </p> <pre><code>Oct 16, 2012 7:34:11 PM com.ibm.commerce.foundation.data...
0
1,213
java.lang.NoClassDefFoundError: javax/el/ELManager
<p>I'm working on a webapp in Spring using Spring Tool Suite. If I build and deploy the application there using the IDE onto the provided Pivotal tc Server, it works just fine. However, if I do a manual "mvn clean package" build and attempt to deploy it to a standalone Tomcat server (using newest Tomcat 7), it throws t...
0
3,893
application.properties vs hibernate.cfg.xml in spring boot application
<p>I've configured hibernate properties in <code>application.properties</code> file of my spring boot application. </p> <p><strong>application.properties</strong></p> <pre><code>#hibernate config spring.jpa.database-platform=org.hibernate.dialect.Oracle10gDialect spring.datasource.url=&lt;db_url&gt; spring.datasource...
0
1,171
shared library locations for matlab mex files:
<p>I am trying to write a matlab mex function which uses libhdf5; My Linux install provides libhdf5-1.8 shared libraries and headers. However, my version of Matlab, r2007b, provides a libhdf5.so from the 1.6 release. (Matlab <code>.mat</code> files bootstrap hdf5, evidently). When I compile the mex, it segfaults in Mat...
0
1,377
VHDL State Machine testbench
<p>Description: </p> <p>I am trying to generate a test bench for a 5 state sequential state machine that detects 110 or any combination of (2) 1's and (1) 0. I already have written the code. see below. I am having trouble with the test bench which is wrong. I want to test for all possible sequences as well as input c...
0
1,222
Using Traefik 2 as TCP proxy for MariaDB (Docker)
<p>I am trying to use Traefik as a reverse proxy for MariaDB so I can connect from my Client.</p> <p>Currently Traefik is working fine with HTTP and HTTPS for multiple WordPress Container but i am having trouble configuring it for MariaDB.</p> <p>Here is the current config:</p> <p>Traefik Compose File:</p> <pre><co...
0
1,393
Picture distorted with Camera and getOptimalPreviewSize
<p>I am on a Camera App which taking basic pictures. I have an issue when I get the best optimal preview size.</p> <p>In fact, with this first code :</p> <pre><code>public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { if (isPreviewRunning) { mCamera.stopPreview(); } Camera....
0
1,367
ObjectDataSource could not find a non-generic method that has parameters:
<p>I'm trying to use a Gridview to show a datatable from an Object data source. It's giving me the error:</p> <pre><code>ObjectDataSource 'odsStores' could not find a non-generic method 'ProcessDelete' that has parameters: ProcessID. </code></pre> <p>I've read a lot of other answers to this question about matching c...
0
1,545