title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Python - Manage cursor connection outside context manager | <p>I'm new at Python and I'm trying to build a start project to get into this language.</p>
<p>I created a SQLite3 DB and managed to make transactions with it.
Everything works fine. </p>
<p>I wanted to get deeper in Python so I've been searching and discovered <strong>Decorators</strong> and <strong>Context Manager<... | 2 | 1,545 |
DatabaseGeneratedOption doesn't work in Dapper.FastCRUD | <p>I setup my mapping like this:</p>
<pre><code>[Table("Opportunity")]
public partial class Opportunity
{
// Other columns
...
[Key]
[Column(Order = 1)]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long OPPORTUNITY_ID { get; set; }
[DatabaseGenerated(DatabaseGeneratedOptio... | 2 | 2,053 |
events for docked items in ext js | <p>i am a noob in ext js and stuck with a problem.<br>
i have created an app
this is the <code>init</code> function of my controller.</p>
<pre><code>init: function () {
console.log('initialized filesystem controller');
this.control({
'filesystemtree': {
itemdblclick: this.... | 2 | 1,462 |
UITableView willDisplayCell not fired when cell contains UITextView | <p>I think i stumbled on strange bug in UITableView class. If cell from table contain UItextView (non editable and non scrollable in my case), and user selects its text (copy menu shows up), the cell that contains that particular UITextView will not work as it should any more. UITableView will not fire willDisplayCell... | 2 | 1,289 |
Generate XML file format from Oracle stored procedure | <p>I have created a stored procedure for generating XML files as per given input parameter "Table_Name".</p>
<p>Stored procedure is:</p>
<pre><code>create or replace
PROCEDURE Export_In_XML11JUNE
(
V_TABLE_NAME1 IN varchar2,
v_FLAG OUT NUMBER
)
AS
BEGIN
----- Export table data
DECLAR... | 2 | 1,930 |
Problems with SharePoint EventReceiver ItemUpdating on Custom List Definition | <p>I have a problem with my CustomListDefinition and a CustomEventReceiver.</p>
<p>The ListDefinition works fine. I can create Lists out of it and everything looks as it should. My EventReceiver acts on the following four events: ItemAdding, ItemAdded, ItemUpdating and ItemUpdated.</p>
<p>While adding/updating ListIt... | 2 | 8,129 |
Jquery mobile dynamic fields not applying styles? | <p>Hi i have creates a html page that creates dynamic fields and when i add them to the listview, it doesnt apply the jquery mobile themes.</p>
<p>here is my javascript:</p>
<pre><code>//Dynamically load data fields for items
$(document).on('pagebeforeshow', '#claimPagefields', function(){
//trigger a create eve... | 2 | 1,384 |
boost::threads example and heap corruption message | <p>I'm quite new to boost::threads, I read the documentation and but i'm having some trouble applying it in practice, perhaps you can help? First of all, I have taken the time to write a self contained code listing that demonstrates 2 types of behavior that I cannot yet understand...</p>
<p>The program allows the user... | 2 | 1,835 |
Getting "raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError | <p>I'm getting the JSONDecodeError error when i try to run the below code. I am not sure how to fix it.</p>
<p>I am trying to stream tweets. It works fine for few tweets and all of a sudden I get the error and the stream stops please help how can I fix this?
<strong>UPDATED FULL CODE</strong></p>
<pre><code>from twee... | 2 | 5,940 |
When i try to get physical sector size via DeviceIoControl i receive Access is denied | <p>From my webserver app i need to check the physical sector size of the harddrive where the app is located. For this i use <code>DeviceIoControl</code> with <code>IOCTL_STORAGE_QUERY_PROPERTY</code> to query <code>StorageAccessAlignmentProperty</code>. The problem is that when i try to run these commands from the webs... | 2 | 2,895 |
Add margin to barcode image using C# | <p>I'm creatin a Code39 barcode image with C# and I need to add margin to this image. </p>
<p>This is the first image which I created. </p>
<p><a href="https://i.stack.imgur.com/b6TVi.png" rel="nofollow noreferrer">I created it.</a></p>
<p>But it should be like this.</p>
<p><a href="https://i.stack.imgur.com/kUV0q.... | 2 | 1,608 |
Simple Chat using socket connection | <p>I am trying to make a simple chat. I have a server that handles more clients. This is what i did until now : the connections , i can identify on my server which client is sending the message , but the problem is that on client i can't get full conversation like on the server .For example </p>
<pre><code>Client_1 (... | 2 | 1,314 |
How to make my python animation smooth? | <p>I 'm using <code>vispy</code> to generate the 3D sea surface.But it's not very smooth.I don't know which part I should improve.Can anyone tell me? Here is the code:</p>
<pre><code>from numpy import linspace,zeros,sin,pi,exp,sqrt
from vispy import app,scene
import sys
from vispy.util.filter import gaussian_filter
d... | 2 | 2,052 |
Multiple sliders with Very Simple Slider | <p>I'm trying to use the <strong><a href="https://codepen.io/doodlemarks/pen/aFcly" rel="nofollow noreferrer">Very Simple Slider</a></strong> for my future website, but I have an issue with it when I want to have several sliders on the same page.</p>
<p>When I duplicate all properties in the HTML/CSS/JS and change the... | 2 | 2,594 |
NoSuchMethodError with Fop library | <p>I want to display PDF file by using fop-1.1. jar and xmlgraphics-commons-1.5.jar based on JRE 1.6. But I have an exception as below:</p>
<pre><code>EXCEPTION]
java.lang.NoSuchMethodError: org.apache.xmlgraphics.xmp.Metadata.mergeInto(Lorg/apache/xmlgraphics/xmp/Metadata;)V
at org.apache.fop.render.pdf.PDFRenderingU... | 2 | 2,550 |
Miller-Rabin Primality test FIPS 186-3 implementation | <p>Im trying to implement the Miller-Rabin primality test according to the description in <a href="http://csrc.nist.gov/publications/fips/fips186-3/fips_186-3.pdf" rel="noreferrer">FIPS 186-3</a> C.3.1. No matter what I do, I cannot get it to work. The instructions are pretty specific, and I dont think I missed anythin... | 2 | 1,059 |
How to remove navigation header padding and margin in react native? | <p>I'm on expo and going back and forth about this. I'm trying to clean the header part on top of my contents as well as the bottom part. When I ran the code without the navigation container, everything works fine as designed, but now I have to route new screens and bind to the buttons, I can't remove it. I tried every... | 2 | 1,585 |
SQLite.SQLiteException: database disk image is malformed in xamarin.forms application | <p>I have created a xamarin.forms application and ship a sqlite database with the application, im getting the following error:</p>
<p>database disk image is malformed.</p>
<p>This is the stacktrace:</p>
<pre><code>SQLite3.Prepare2 (SQLitePCL.sqlite3 db, System.String query)
SQLiteCommand.Prepare ()
SQLiteCommand+<... | 2 | 1,355 |
Inserting rows into oracle with PL/SQL reading from XML CLOB | <p>I am having some real problems with PL/SQL.</p>
<p>I have written a stored procedure which ready a record from an XML and inserts this into a database table.</p>
<p>This compiles cleanly for single record input. But I am looking for the way to insert all the records of a large XML file and can't figure out how to ... | 2 | 7,814 |
ReactJS: Appending new object to an existing array with spread | <p>I have this array object to begin with</p>
<pre><code>[
{
"name": "child",
"pax": {}
}
]
</code></pre>
<p>I wish to append new property which is an array. then I want to update/insert new object into that array. But something is wrong with my code</p>
<pre><code>function App() {
const [num, setNum] ... | 2 | 1,067 |
c# - Object reference not set to an instance | <p>I'm trying to get tweets from twitter</p>
<p>But I get an error</p>
<blockquote>
<p>Object reference not set to an instance</p>
</blockquote>
<p>Code:</p>
<pre><code> public void Call_Tweet_Update()
{
var service = new TwitterService(Consumer_Key, Consumer_Secret);
service.AuthenticateWith(Acc... | 2 | 1,340 |
Hadoop MapReduce for loop | <p>I have a variable <code>_b</code>. I am adding cumulatively, but with each iteration of the for loop of <code>k</code>, the variable is getting reset to <code>0</code>. The same code works fine as a local Java application. Does anyone have any idea why this is happening? Here is the snippet of code from my program:<... | 2 | 1,793 |
Python Selenium Headless Error: Element not Interactable | <p>I was making a program which scrapes info about stocks from the website <a href="https://www.tradingview.com/screener/" rel="nofollow noreferrer">https://www.tradingview.com/screener/</a> which used selenium.here is the code:</p>
<pre class="lang-py prettyprint-override"><code>def stock(aaa):
a=[]
chrome_opt... | 2 | 4,116 |
SwiftUI List rows with INFO button | <p>UIKit used to support TableView Cell that enabled a Blue info/disclosure button. The following was generated in SwiftUI, however getting the underlying functionality to work is proving a challenge for a beginner to SwiftUI.</p>
<p><a href="https://i.stack.imgur.com/EeGSO.png" rel="nofollow noreferrer"><img src="http... | 2 | 1,963 |
using html2canvas, children not showing up in output image | <p>I'm trying to save a div element as an image. When I press on an image, it gets appended to said div. When I press the 'save' button, it's supposed to take a 'screenshot' of the div with the images added to it (as children), but the image turns out blank.</p>
<p>At first, it turned out black, but I set the backgrou... | 2 | 1,822 |
Height of recycler view item changes unexpectedly when clicked | <p>I have a fragment with a search view and a recycler view with which you can select one item at a time (the selected item will be highlighted). Item height may vary depending on the content being displayed. When a recycler views item is clicked, I am changing the background color of that item, and then storing the se... | 2 | 3,295 |
How to check all checkbox with the same value from another column | <p>Hi I'm trying to check all checkbox for each <code>row</code> on my table when my <code>Dropdown menu</code> value is <code>Sent</code> and the value of <code>Status Column</code> is equal to <code>Sent</code>. I'm now able to check/uncheck all checkbox on my table. But now I need to check all those status is <code>... | 2 | 1,371 |
iOS 8 Beta 4 CLLocationManager not working Placemark null | <p>I have a Singleton Class with my Location Manager and the reverse geocoding is in my Viewcontroller to print the address in the app. </p>
<p>Everything worked fine till the new iOS 8 Beta 4 appeared and now the reverse geocoding doesn't work -- the placemark comes back null every time.</p>
<p>It works on the iOS 8... | 2 | 1,455 |
Android app becomes unresponsive when back button is pressed and crashes on android emulator | <p>My app consists of two activities.In the first activity some input is taken from the user and passed to the second activity through intent. The second activity starts two <code>IntentServices</code> to perform some long-running background tasks. I have a <strong>stop</strong> button which stops the services. When I ... | 2 | 1,859 |
How to use Microsoft.Extensions.Logging.Abstraction 5.0.0 with Azure Durable Functions | <p>I am working with Azure Functions and I am having a problem that involves the NuGet "Microsoft.Extensions.Logging.Abstractions". My solution has been running perfectly fine, but recently I added a dependency which depends on "Microsoft.Extensions.Logging.Abstractions 5.0.0". The project builds fi... | 2 | 1,158 |
OpenGL ES 2 Vertex Shader issue on Samsung Galaxy Tab 2 | <p>I am developing for Android with OpenGL ES 2 and two devices: Google Nexus 3 and Archos 80 G9 (8" tablet). On these devices my shaders works fine.</p>
<p>Now, i have bought a Samsung Galaxy Tab 2, and a single vertex shader does not work on this device. This shader (from OSGEarth) remove the problem of z-fighting f... | 2 | 1,479 |
WSO2 ESB 4.5.0 vfs TransportSender as Endpoint Errors with 'Access is denied' | <p>I am trying to put together a proof of concept for the use of wso2 esb. The proof of concept will rely on the ESB picking up a csv file dropped into a folder, converting the details to xml, posting them to a 3rd party web service, then converting the response, which should contain the binary for a pdf, into a pdf an... | 2 | 1,592 |
Extra Large size file upload Doesn't working using PHP/HTML | <p>I don't want to restrict user to upload large file. User can upload any file size. When i tried file size of 22 MB, It worked. But When I tried 200MB file, it seems it does not entered in if block and return me the output of else block after taking all the time in the world to upload file.
My work on this is mention... | 2 | 2,215 |
Unable to get span tag using xpath | <pre><code><div class="product_box">
<div class="list_sale">
<img src="link" class="listsale" alt="">
<div class="product_box_title">
<a href="link"><strong>title here</a></strong>
</div>
<div class=... | 2 | 1,065 |
Can I defer the view binding in an adapter using Kotlin Android Extension | <p>Kotlin Android Extensions provide a way that using the IDs directly in Activity/fragment/Adapters.
So What I want is a generic way for an adapter and leave the bind view responsibility to the user of adapter instead of adapter itself.
For example :</p>
<pre><code>class GenericAdapter<T>(
@LayoutRes privat... | 2 | 1,141 |
Parse JSON data from assets folder in Recyclerview | <p>In my app I have stored a JSON file in asset folder. Now I am trying to parse a local JSON file to show some imformation in the recyclerview. My Json file look like this. </p>
<pre><code> {
"contacts":[
{
"_id": "57f762f1",
"dn": "CNdreas ",
"mobile": "123456",
"mail":... | 2 | 2,918 |
How can I apply an aspect using annotations in Spring? | <p><strong>Update</strong>: I've found the Spring 2.x annotation-based Controllers are horrible for AOP security because you can't make assumptions about the method prototype due to the increased freedom in params and return values. Before 2.x you could intercept <em>handleRequest</em> and know the first param was an <... | 2 | 1,118 |
I want to upload files one by one like queue in android | <p>I want to upload files one by one just like queue. In brief suppose there are 10 files and I want to upload all files and it should be checking for network connectivity is available or not, if not then those file should be into the queue and will try to upload later. It will keep on trying till any single file in le... | 2 | 4,126 |
Error while encode HEVC using Android MediaCodec on Samsung Galaxy S6 | <p>I try using HEVC encoder support in Android MediaCodec for my stream app.
It's succeed when i using H64 but crashed when i switch to HEVC.</p>
<p>I tested in Samsung Galaxy S6 with Android 7.0, it crash while i queue a buffer to encoder.
No problem when i using MediaRecorder with HEVC.</p>
<p>My init code here:</p... | 2 | 1,842 |
Outlook 2010 VBA - Add sender to contacts when i click on a mail | <p>got a little problem, I hope someone can help me.</p>
<p>(Outlook 2010 VBA)</p>
<p>this is my current code, what i need is when i click on a mail (only the mail i clicked on, not every mail in the folder/same place)
it has to check if the Sender of the mail is already in my contacts or in the
Addressbook 'All User... | 2 | 1,108 |
Using Spring-WS and JAXB: can't unmarshall subclasses in XML request | <p>I have the following in a schema defining the request/response objects used in my web service request:</p>
<pre><code><xs:complexType name="loss" abstract="true">
<xs:sequence>
<xs:element name="lossDate" type="xs:dateTime"/>
<xs:element name="lossDescription" type="xs:strin... | 2 | 1,232 |
Viewing a large bitmap image using memory mapped view | <p>I've a very large bitmap that I'm trying to view using a C# application . </p>
<p>The main issue here I can't load it directly into memory , thus I tried to use memory mapped view library to load it using guidance from <a href="https://msdn.microsoft.com/en-us/library/dd997372%28v=vs.110%29.aspx" rel="nofollow nore... | 2 | 4,294 |
Package inputenc - Unicode character not set up for use with LaTeX - knitting to pdf wih xelatex fails in RStuio | <p>I have an exotic problem with RMarkdown and knitting a pdf. Knitting html and word documents works fine. I'm running RStudio Version 1.2.5033 and TeX 3.14159265 (TeX Live 2019 Gentoo Linux).</p>
<p>I have a file, which among other things recodes user input data. Some user has (God knows how) entered '2⁸' into the d... | 2 | 1,153 |
I am trying to put a border around .navbar-collapse but can't seem to achieve it | <p>I am trying to add a border around my drop down menu which appears for mobile sizes. Thought it would be to control through <code>.navbar-collapse</code> but it doesn't seem to be working. Any ideas?</p>
<p>Sample pic of mobile size:</p>
<p><a href="https://i.stack.imgur.com/O9oA1.png" rel="nofollow noreferrer"><i... | 2 | 1,538 |
buildozer fails to compile apk | <p>I have problems trying to compile kivy for android. It doesn't matter what I do, I get the same error.</p>
<pre><code> Will compile for the following archs: armeabi-v7a
[INFO]: Found Android API target in $ANDROIDAPI
[INFO]: Available Android APIs are (19)
[INFO]: Requested API target 19 is available, cont... | 2 | 3,593 |
Using button click instead of body onload | <p>I'm attempting to use the Google geocoder API to enter user's location information directly into a form (reverse geocoding). I am using the most popular answer in <a href="https://stackoverflow.com/questions/6797569/html5-geolocation-easiest-way-to-get-city-name">this</a> post as a code base. </p>
<p>My form is cor... | 2 | 1,256 |
How to check if context can still be used in android? | <p>In my android app I have a async task, that downloads an image and saves it to external storage, then repeats until all images are downloaded. This can take a while, and I reference the context from the activity that called it, a couple times in the async per downloaded image.</p>
<p>During this process the user co... | 2 | 1,231 |
Segmentation fault on using shared_ptr with vectors | <p>I am using a shared_ptr for the first time pardon me If I have made a very silly mistake and help me in overcoming this segmentation fault.</p>
<p>I wish to have a private <code>vector</code> which can be read from different classes even if the object is destroyed. Hence I read about <code>std::shared_ptr</code></p... | 2 | 1,086 |
Duplicate mappings when building docker package using sbt-native-packager | <p>I'm using <a href="https://github.com/sbt/sbt-native-packager" rel="nofollow">sbt-native-packager</a> to build a docker image of our Akka HTTP based application in Scala. However, recently it has started throwing the following error when running the <code>sbt docker:publishLocal</code> command:</p>
<pre><code> [in... | 2 | 2,193 |
Aligning Text and Icon in the center of box in Bootstrap | <p>I am trying to align the text and icons, which are in a box, to the center of it. I want it centered like this:</p>
<p><a href="https://i.stack.imgur.com/zKtfE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zKtfE.png" alt="enter image description here"></a></p>
<p>I tried the following:
adding... | 2 | 1,412 |
Instantaneous query timeout in Aurora MySQL (using jOOQ, MariaDB driver) | <p>My Java application works fine when I execute a query using jOOQ and the MariaDB driver for connecting to an Aurora MySQL database. In plain SQL my query looks like this, and notice the timestamps:</p>
<pre><code>select
A.id, B.x, B.y,
coalesce(A.modified, A.created) as modified
from
A join B on A.b_id = B.id... | 2 | 4,123 |
Laravel Webrtc video chat with react and pusher | <p>I created a web app for video using Laravel, pusher and react js but now problem is that I was following the tutorial I don't know about the react but I'm good in Laravel.
Now I want to add a function where I can send email to a user so he can join me in video chat, right now it is working on click functions where r... | 2 | 2,649 |
reversing the order of a circular deque C | <p>Ok, so I'm working on an assignment where you have to build a circular deque in C. I have all of the functions implemented and I'm in the process of testing them. Everything was good until the 'reverse' function. </p>
<p>I thought this would be easy, you create a new link, hook it up in place of the Sentinel. Kill ... | 2 | 3,197 |
Protractor - Can't expect toast notification because of error about “RangeError: Maximum call stack size exceeded” | <p>I've tried to perform expect on toast notification by the following code (please see the latest code block):</p>
<pre><code>describe('vCita Frontage - Conversation test cases', function() {
var EC = protractor.ExpectedConditions;
var currentPage = element(by.css('div.bubble-content'));
var toast = ($("... | 2 | 4,235 |
quartz.properties cant access mysql : Could not load driverClass com.mysql.jdbc.Driver | <p>i am struggling to resolve this matter, i have try to run a small test to connect with my mysql and it work.but when i am trying to work with quartz.properties it cannot access mysql.</p>
<p>i am sure my jdbc mysql driver is fine. as other than using quartz.properties, i can access my mysql database.</p>
<p>i need... | 2 | 2,230 |
Bottom table border not showing when last row and previous rows has a cell with rowspan and a different border color | <p>I have some borders of style <code>double</code>, while some borders of style <code>solid</code> according to my precedence requirements. These styles are for different colors of border of <code><td></code> in my table.</p>
<p>This is an example table:
<div class="snippet" data-lang="js" data-hide="false" dat... | 2 | 3,642 |
October CMS Query Builder can't get relation model | <p>Can anyone explain this behavior?</p>
<p>In example, two models:</p>
<p>People, Country</p>
<p>People belongsTo Country:</p>
<pre><code>public $belongsTo = [ ... | 2 | 4,855 |
Parsing query parameters in Python | <p>The problem lies somewhere in how I'm parsing and or reassembling urls. I'm losing the <code>?id=1</code> and <code>getting ?d=1</code>.</p>
<p>What I am trying to do is have the ability to manipulate and query parameter and reassemble it before sending back out modified. Meaning the dictionaries would be modified... | 2 | 1,046 |
DialogFragment with view model not working with data binding | <p>I've created one dialog fragemnt with view model (mvvm). Dialog consist of one button (custom view). when using view model with data binding, button click is not working when livedata change.I'm using boolean value to check if button is clicked or not. What is causing issue? Also suggest any other approach if needed... | 2 | 1,341 |
SCRIPT438: Object doesn't support property or method 'resizable' | <p>I have a page where I need to show a modal. I want to make it re-sizeable but it is not working. Below is all imported js/css files</p>
<pre><code><script src='<%= RootPath + "/Scripts/jquery-2.0.3.min.js" %>'></script>
<script src='<%= RootPath + "/Content/BootStrap/js/App.js" %>'><... | 2 | 1,423 |
Parallel run of Selenium tests (uses ThreadLocal) results in orphaned browsers being opened | <p>I use ThreadLocal for thread safety and run the tests in parallel using Maven failsafe and Junit. I am running two tests from two feature files to test parallel running.
But I always have the first browser blank. Then the subsequent ones are fine and the tests pass.
If I run sequentially, there is no issue.</p>
<p>H... | 2 | 1,702 |
ROS node subscription not connected | <p>I am using a rosbag to publish on various topics and i am trying to get my sample program to allow one node to subscribe to those topics via class method functions. But nothing is being printed out on console for the subscribers. I tried roswtf and i got</p>
<pre><code> WARNING The following node subscriptions are u... | 2 | 1,228 |
Size issues with JTabbedPane and fixed height content | <p><strong><em>While writing this question I have been able to find a way to get it to behave the way I wanted. Based on <a href="https://stackoverflow.com/help/self-answer">this</a>, I am still posting the question as other people might face similar issues.</em></strong></p>
<p>I have the following issues with the si... | 2 | 3,216 |
Sequelize.js node.js many to many association | <p>I am using sequelize node.js module to form schema in Postgres sql</p>
<p>I Have following two schema of Project and my users.</p>
<p><strong>Project</strong></p>
<pre><code>module.exports = function(sequelize, DataTypes) {
var project = sequelize.define('project', {
description: DataTypes.STRING
... | 2 | 1,443 |
ASP.NET MVC with EF 4.1 Navigation properties | <p>After days studying EF to understand (kinda..) how it works, I finally realized that I might have a big problem.</p>
<p>Imagine that I have two entities: <code>Pais</code> and <code>UF</code>. The relationship between them is <code>Pais (0..1) ... (*) UF</code>. A screenshot: <a href="https://i.imgur.com/rSOFU.jpg"... | 2 | 2,403 |
How do I make an inherited_resource optionally nested as a singleton? | <p>I'm using inherited_resources to DRY my controllers, but can't figure out how to make a particular controller behave correctly. In my model, <code>User has_one Person</code>. I want it to be optionally nested, behave as a singleton when nested, and as a non-singleton when not nested. In other words, I want to be abl... | 2 | 1,160 |
How can I define a clojure type that implements the servlet interface? | <p>I'm attempting to use deftype (from the bleeding-edge clojure 1.2 branch) to create a java class that implements the java Servlet interface. I would expect the code below to compile (even though it's not very useful).</p>
<pre><code>(ns foo [:import [javax.servlet Servlet ServletRequest ServletResponse]])
(deftyp... | 2 | 1,339 |
Tomcat can't load my jsp file - server did not find a current representation | <p>I'm constantly getting this error: </p>
<blockquote>
<p>The origin server did not find a current representation for the target
resource or is not willing to disclose that one exists.</p>
<p>WARNING [http-nio-8080-exec-6] org.springframework.web.servlet.PageNotFound.noHandlerFound No mapping found for HTTP ... | 2 | 2,341 |
WCF client, XML namespace prefix results in null object | <p>I have created a WCF service (.NET 4.6.2) and a third party has created the client. </p>
<p>I have no control over the client, or the ability to get the third party to change anything, so any changes are going to be on the server side only.</p>
<p>I have minimised and anonymised the code to the bare minimum to hop... | 2 | 3,148 |
OpenGL Superbible first program crashes | <p>It doesn't run, obviously. Code is copied directly from the provided source. I put the libraries and headers where I was told. Running it results in some sort of crash.</p>
<p>I asked a few people to run it, they all said that it gave them an error concerning missing .dlls and didn't attempt to run the program, com... | 2 | 2,381 |
How to add btorfs multiselect placeholder change default text Select to Select Country? | <p>Please give me solution how to add placeholder in btorfs multiselect Angular js?</p>
<p>My Coding.</p>
<pre><code> <multiselectdrop ng-model="blogadd.country" options="countryList" display-prop="country_name" search-limit="countryListCount" id-prop="country_name" show-select-all="true" show-unselect-all="true... | 2 | 6,973 |
AV Foundation camera scan within box | <p><a href="https://i.stack.imgur.com/LrFHJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LrFHJ.png" alt="enter image description here"></a></p>
<p>I am able to scan barcode with full camera resolution successfully but i want that it should scan barcodes only within a particular frame(box which is... | 2 | 2,451 |
Custom line break on specified character | <p>I want to be able to word break an email, after the @ sign.</p>
<p>So it would look like the following</p>
<pre><code> id | name | email | status
--------------------------------------
1 | Bob joe | bjoe | active
| | @gmail.com |
--------------------------------------
2 | jay c ... | 2 | 1,042 |
passing json data downloaded using volley between activities | <p>i am trying to pass data loaded into my listview with volley.i know how to pass images and text through activities but not json data.It may be a duplicate question but i wasnt helped with the other responses.
Below is my activity code:</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippe... | 2 | 2,387 |
how to disable the tabs in tablayout from a tabspec activity | <p>i have a tabActivity from that i set activities as content of tabs. from an activity i try to disable the tabhost. how to achieve this.</p>
<pre><code> public class Main extends TabActivity {
public static final File sdcard = Environment.getExternalStorageDirectory();
@Override
public void onCreate(Bundle sa... | 2 | 1,065 |
the problem about jquery$.ajax in "for" loop | <p>I use $.ajax to read xml info in "for" loop</p>
<p>here is my xml file:</p>
<pre><code><application>
<app id="id-1">
<html_code>
<div id="id-1" class="portlet">
<div class="portlet-header"Links</div>
<div class="portlet-content">i... | 2 | 1,382 |
VBA, Date formatting issue | <p>I have a code that </p>
<p>1) compares dates from Col X to Col Y. </p>
<p>2)paste dates to col Y if there is no match between columns. </p>
<p>Column X my format looks like </p>
<pre><code>08/15/2013
09/12/2013
10/03/2013
</code></pre>
<p>But when it pastes to column Y it goes,</p>
<pre><code>15/08/2013
12/09/... | 2 | 1,135 |
How can I fix ValueError: Input shapes do not overlap raster in python? | <p>I want to:</p>
<ol>
<li>Create a masked version of the input raster where pixels falling within one of the fields are set to <code>1</code> and pixels outside the fields are set to <code>0</code> then</li>
<li>Reproject the input raster to the provided CRS</li>
</ol>
<p>Cde:</p>
<pre><code>import fiona
import raster... | 2 | 1,195 |
ClassCastException when trying to add child to parent in owned one to many. (using jdo on google appengine) | <p>I need some help figuring out what I'm doing wrong here. I am trying
to master one to many relationships and running into a roadblock.
I tried to modify the Employee and ContactInfo example to do one to
many mappings:</p>
<p>Everything works if I create both the parent (employee) and child
(Contact) and then call ... | 2 | 2,015 |
List.count always resetting to 0 after adding element | <p>I am creating a Web Form using visual Studio 2010 and I have a .aspx page that grabs some user input and saves it to a database. There are two buttons on the page, one for the user to "save" values (should be added to the list here) and the second to actually save them to the database in the proper format. My code i... | 2 | 2,735 |
Splitting Json Array and groupping in to multiple messages camel | <p>I am using Jboss fuse 6.3 and apache camel 2.17.I wanted to split a huge json message in to multiple messages in camel spring dsl.</p>
<p>Sample message structure is below in this message i have 9 arrays of countries i need to split in to array of two as 5 messages the last message contains only one array.The order... | 2 | 5,990 |
jqgrid and server side pagination | <p>I realize there are some related questions but I couldn't find what I was looking for. I used jqgrid many times in the past but forgot how to achieve server side pagination.</p>
<p>here is my javascript</p>
<pre><code>$("#list").jqGrid({
url: "index.php?loadData=test",
datatype: "json",
mtype: "GET",
... | 2 | 1,215 |
Call python function with javascript and display returned string on web page | <p>I have a simple appengine/python application that allows the user to click a button to display a random-generated sentence. So far, I have pieced together the main python file as follows:</p>
<pre><code>import jinja2
import os
import webapp2
import generator # My random sentence generator module; its make_sentence... | 2 | 1,119 |
Mvvmcross(iOS) binding the Title of UIViewController | <p>Is it possible to bind the Title of a UIViewController to a ViewModel string property? It never seems to update. As a side issue, if you haven't set the title to something before the bind then there's a crash in the Mvvmcross code when set.Apply() is called.</p>
<p>The UIViewController has no .xib, I'm not sure if ... | 2 | 1,635 |
Display second <span> element in front of first | <p>I'm trying to get a second sibling element displaying in front of the first - with some severe restrictions:</p>
<p>I cannot alter the HTML or use javascript or jQuery.</p>
<p>I can only use CSS.</p>
<p>I can't change how classes are assigned (again, I don't have access to change any code apart from the one besp... | 2 | 1,150 |
An efficient way to extract, and compare and match fingerprint minutiae | <p>I am currently working on an program that detects and matches fingerprints as part of a fingerprint sensor. After processing the image, I obtain key points using Harris Corner Detection. Then, using ORB feature extractor, I obtain descriptors in the form of an array. </p>
<p>Problem is the number of key points I ge... | 2 | 1,211 |
Android - Listview with viewholder changing background of selected row on press | <p>I've been looking up posts all over this site and others, but ave not found working code for what I need. I currently have a listview with custom rows, and I have them alternate by color (grey and transparent). I am trying to get the selected row to become blue (and to go back to original color when another row is p... | 2 | 1,606 |
Submit Spark Application on Kubernetes in Cluster mode : Configured service account doesn't have access | <p>I try to submit a Spark application to a Kubernetes cluster (Minikube).
When running my spark submit in client mode, everything goes well. 3 executors are created in 3 pods, and the code is executed. Here is my submit command : </p>
<pre><code>[MY_PATH]/bin/spark-submit \
--master k8s://https://[API_SERVER_IP]:8... | 2 | 2,015 |
Preserve session after redirect? | <p>if I var_dump my session variable before calling the redirect function, it looks okay. However, after redirecting to an external Clickabnk's payment page, I'm no longer able to access my session variable on the page after payment. </p>
<p>I'm redirecting using the function below :</p>
<pre><code>public function re... | 2 | 1,480 |
Upgrade mongodb from 4.0 to 4.4 failed to load existing data | <p>I'm running ubuntu 20.04, and getting these logs after I upgraded my mongodb from 4.0 to 4.4.
Here's the log from, /var/log/mongodb/mongod.log</p>
<pre><code>{"t":{"$date":"2020-08-19T14:56:54.564+07:00"},"s":"W", "c":"CONTROL", "id":2... | 2 | 11,998 |
UPSERT in ActiveRecord (Rails 6) | <p>I see there were some questions on the topic in the past, but after Rails 6 release I hope things have change.</p>
<p><strong>Goal</strong></p>
<p>Having <code>Role</code> and <code>Effect</code> ActiveRecord models I would like to temporary set up associations (i.e. there should be <code>role.add_effect(effect)</co... | 2 | 1,387 |
Spring Saml single logout(Gloabal) with okta not sending saml logout request | <p>I am new to okta,saml. Single Sign on integration is successfull and now I want to do Single logout. I have done the following in Okta-</p>
<p>1) Single Logout url: <a href="http://localhost:8080/spring-security-saml2-sample/saml/logout" rel="nofollow noreferrer">http://localhost:8080/spring-security-saml2-sample/s... | 2 | 7,459 |
How to generate same matching rules for "arrayMinLike' using lambda Dsl for Pact? | <p>I have a sample body as below;</p>
<pre><code>[
"01/01/2019",
"01/02/2019",
"01/03/2019"
]
</code></pre>
<p>I'd like to validate the following:
1. The response should be an array with <strong>at least 1 element</strong>
2. Each element should be:
2.1. String
2.2. Should be in this format "DD/MM/YYYY"</p>... | 2 | 2,120 |
Deleting an element from an empty queue? | <p>I'm writing abstract data type of priority queue as a task for an university, which others are going to use. I have a function in my class dequeue, which deletes the first element in the queue and returns the data of this element. However when I try to delete an element from an empty queue, the program crashes. What... | 2 | 2,071 |
background image not repeating in IE | <p>This should be real simple...not sure what I'm not seeing here...the background image repeats just fine in non-IE browsers but fails to in IE8.</p>
<p>site: <a href="http://www.erisdesigns.net/Stage/McCampbellInsurance/index.html" rel="nofollow noreferrer">http://www.erisdesigns.net/Stage/McCampbellInsurance/index.... | 2 | 1,135 |
Stripping out non-digits - SQL0171 Argument of function TRANSLATE not valid | <p>I'm trying to extract the first ten digit numbers of a phone number, ending up with a 10-digit (or less) number.
I need to use whitelisting, not blacklisting, due to special characters having been used. e.g. "á(123) 555-4567 Toll Free:á(891) 0" must become 1235554567.</p>
<p>I'm trying to use <a href="https://stack... | 2 | 1,079 |
primefaces not working with eclipse indigo | <p>i'm doing some stuff with primefaces om eclipse indigo, i made a dynamic web project and selects the project facets and included the primefaces jar <code>primefaces-3.5.jar</code> i made a new xhtml page and write some code to make a new menubar, these is the final page that i run :</p>
<pre><code><!DOCTYPE html... | 2 | 1,509 |
Not able to login for posting image on my Facebook wall | <p>I am using following code to post image on Facebook wall.
it's working fine. </p>
<p>Problem is --> if the device having Facebook Application i am not able to post image on wall.</p>
<p>-->The device does't having Facebook App. it's working without any problems.</p>
<p>please help me where is the problem.
this... | 2 | 1,493 |
Jquery Mobile Iscroll Header hiding when focus in text field in IOS? | <p>Jquery Mobile Iscroll Header hiding when focus on text field form in IOS app .</p>
<p>How to make fixed header while focus to text field when keyboard appears. </p>
<pre><code><html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<!--... | 2 | 2,379 |
react-redux useSelector() hook not working | <p>I am new to React Native Programming. So, please tell me in detail. thank you.</p>
<p><a href="https://i.stack.imgur.com/6qgbu.png" rel="nofollow noreferrer">calling use Selector</a></p>
<p>I am calling use Selector inside my functional component like this:</p>
<pre><code>import { useDispatch, useSelector } from 're... | 2 | 1,175 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.