title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
nhibernate, postgresql and datetime.maxvalue | <p>I got a application where I use <code>DateTime.MaxValue</code> to indicate that a entry have not been deleted yet. The problem is that PostgreSQL (or npgsql or nhibernate) rounds <code>9999-12-31 23:59:59.999999</code> to (<code>10000-01-01 00:00:00</code>) when the date/time is stored in postgres.</p>
<p>Reading t... | 2 | 2,896 |
Exception "A JSONObject text must begin with '{' at character 0 of" when posting data using request() | <p>I am planning to send request to server with the following code. I have spent more than 1 day to resolve this but without any progress. And please forgive me I have to hide the real URL address becuase of Company Security Policy.</p>
<pre><code>import requests
get_ci = requests.session()
get_ci_url = 'https://thi... | 2 | 2,264 |
Run time error, but only in the second loop | <p>Long time reader, first time poster. Can't stress how useful this site has been for a complete novice.</p>
<p>Code below forms a URL (which then downloads file) by looping through a column of dates in one column (column 11) for 3 sets of rows (in column 2), </p>
<p>i.e</p>
<p>download file with URL = row1.date1, ... | 2 | 1,387 |
Nested ui:include and retaining ui:param issue | <p>I'm not able to retain values across nested ui:include passed by ui:param</p>
<p>So say,
page1.xhtml contains</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<ui:composition template="../template.xhtml" xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http:... | 2 | 1,470 |
How do i make colour detection in turtle | <p>I have a python turtle program which is displayed below.</p>
<p>i want to be able to stop game when turtle touches black or touches line but i cant find any help online!!!</p>
<pre><code>import logging
from datetime import datetime
import time
from turtle import *
import winsound
#while True:
# player1 = input(... | 2 | 1,329 |
How to use debounceTime() and distinctUntilChanged() in async validator | <p>I want to add <code>debounceTime</code> and <code>distinctUntilChanged</code> in my async validator.</p>
<pre class="lang-js prettyprint-override"><code>mockAsyncValidator(): AsyncValidatorFn {
return (control: FormControl): Observable<ValidationErrors | null> => {
return control.valueChanges.pip... | 2 | 1,055 |
android, gradle and plugins | <p>Im trying to add onesignal to my gradle project. </p>
<p>However I get the following error:</p>
<pre><code>build file '/tmp/workspace/myapp-develop/My_app/android/app/build.gradle': 196: only buildscript {} and other plugins {} script blocks are allowed before plugins {} blocks, no other statements are allowed
</c... | 2 | 1,758 |
radiogroup not working in android | <p>I have made a simple application in android with two activities,in 1st activity ,it's a form containing some editexts and radio group and a checkbox.but i have problem with radio button.its value is not going to another activity.i have tried as below:</p>
<p><strong>act1.java</strong></p>
<pre><code> package co... | 2 | 3,996 |
java HashMap contains Set as key and arraylist as value | <p>Hi I got problem in my code.</p>
<pre><code>String[] vArr = new String[4];
vArr[0] = "329~abc-2~PACKET_DATA_GATEWAY_IP_ADDRESS~1.2.3.4";
vArr[1] = "328~abc-1~PACKET_DATA_GATEWAY_IP_ADDRESS~1.1.1.1";
vArr[2] = "329~abc-2~PACKET_DATA_GATEWAY_PORT_NUMBER~123";
vArr[3] = "328~abc-1~PACKET_DATA_GATEWAY_PORT_NUMBER~123";... | 2 | 1,516 |
Symfony- Error ocurred when I try to make an entity | <p>When I use: php bin/console make:entity to create a new db entity, I get the following error:</p>
<p>In DoctrineHelper.php line 180:
Class "Doctrine\Persistence\Mapping\Driver\AnnotationDriver" does not exist</p>
<p>This is my composer.json:</p>
<pre><code>{
"type": "project",
&... | 2 | 7,340 |
Prefix cannot be expanded into a namespace URI by using the statically known namespaces | <p>I have a Schematron file(.sch). It contains <code>queryBinding</code> attribute which is <code>xslt2</code>. I'm using XRouter Schematron V2.0 to validate my XML file which support XPath 2. But I get this error:</p>
<blockquote>
<p>The prefix 'edefter' cannot be expanded into a namespace URI by using the statica... | 2 | 10,509 |
AWS NLB + NGINX Ingress + websockets == 502 Bad Gateway or Bad Handshake | <p>Ingress controller configuration (no changes to the file below)</p>
<p><a href="https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.41.2/deploy/static/provider/aws/deploy.yaml" rel="nofollow noreferrer">https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.41.2/deploy/static/p... | 2 | 2,820 |
Vue js populate new selects when changing the main one | <p>I need your help about populating or loading new select with vue js, I know how to do this with jquery but in vue i don't know how because i'm new with this library.</p>
<p>i have the main select :</p>
<pre><code><select>
<option value='3'>FRANCE</option>
<option value='5'>USA</opt... | 2 | 1,496 |
UIView coordinate systems - offsetting and translating | <p>I'm pretty sure this is more a of a math question, but I'll phrase it in the context of UIView and iPad-related objective C</p>
<p>I am importing raw data from a mapping file I have created from some public domain material downloaded elsewhere, then split out to isolate various regions within the map. Each region ... | 2 | 2,786 |
error on frament listview using arrayadapter gives me error getFragmentManager() is undefined for the type new View.OnClickListener(){} | <p>I am using listfragment where i am extending arrayadapter to my customadapter class i am getting error </p>
<pre><code>The method getFragmentManager() is undefined for the type new View.OnClickListener(){}
</code></pre>
<p>Here is my adapter class </p>
<p>package com.arivoli.adapters;</p>
<pre><code>import java.... | 2 | 1,791 |
Cant align svg and <p> on the same line with display:inline-block? | <p>Alright, im sure this is a simple solution but I can't get this to align here. I have generated HTML that looks like:</p>
<pre><code><div id = "innerCal">
<div id = "calCell"><p>[</p>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 447 443"><defs><filter x="-50%" y="-50%"... | 2 | 1,891 |
XML schema validation, how to ignore tree inside element | <p>Considering this xml:</p>
<pre><code><myName myClass="grandfather" name="grandfather_name" transaction="new">
<attributes>
<name>test name</name>
<description>some stuff for desc</description>
<version>the current version</version>
</attributes>
<... | 2 | 1,474 |
Failed resolution of: Landroid/arch/core/executor/AppToolkitTaskExecutor | <p>I'm currently trying to setup Room with Retrofit2. I would like to insert data from Retrofit2 into Room Database but the insertion doesn't work for me and the app crashed. I have implemented three Components using Room Library : entities, Dao and the Database.</p>
<p>I have as Result this error.</p>
<p><code>E/And... | 2 | 3,923 |
JavaFX custom component does not appear | <p>I'm trying create a custom component in JavaFX. This component is the base of the dialogs that will be used in the application, basically it is a BorderPane with custom a title in top and a button in the bottom. Here is a picture of the component in SceneBuilder:</p>
<p><img src="https://i.stack.imgur.com/aI1vj.png... | 2 | 4,113 |
Ingress-nginx controller does not run ELB properly in AWS EC2 Kubernetes Cluster | <p>I create cluster with <code>kops</code> utility on AWS EC2. Right now I am trying to configure <a href="https://github.com/kubernetes/ingress-nginx" rel="nofollow noreferrer">ingress-nginx</a> controller so it routes all traffic in my cluster. I need it handles HTTP, HTTPS and WebSocket connections. Based on this <a... | 2 | 1,797 |
Formidable is not defined in Node.js | <p>I am trying to create an HTTP server that the user can upload images and archives, and for that I am using <code>formidable</code> for handling the upload part. </p>
<p>My code :</p>
<p><strong>requestHandler.js</strong></p>
<pre><code> // Request Handlers (will handle all requests that happen)
// Allows Nod... | 2 | 1,455 |
Django Rest - "serializer.data" is empty dict() even though "serializer" has data with details | <p>I was trying to implement password change based on some recommendations on stackoverflow but something was not working which is really weird for me. After troubleshooting I got idea data the my view is not working. Changing serializer actions to print I see data "serializer.data" is result "{}" e... | 2 | 1,146 |
Google CDN random not serving gzip content | <p>I need some advanced people to give me an advice is this is an Google CDN bug or i miss something. I discover this bug like 4 months ago, tried to contact their support, but they were so rude, that i don`t want to even speak here about that. They accepted, at least they told me that they will gonna send the problem ... | 2 | 2,690 |
C# Error: Cannot implicitly convert type 'int' to 'short' | <p>I am learning C# and am using Visual Studio 2010 to build a payroll program. I get an error "Cannot implicitly convert type 'int' to 'short'".</p>
<p>My code is :</p>
<pre><code>private void btn_add_Click(object sender, EventArgs e)
{
try
{
// Get service instance
... | 2 | 1,272 |
Send a file that I want to make and store in memory as IHttpActionResult | <p>I'm not sure what I want to do is even possible. </p>
<p>I'm currently working on an AngularJS web app and need implement a way to take data from my database, store it into a <code>List<object></code>, parse that <code>List<object></code> into a .csv file and load it in memory, that way I can send it ba... | 2 | 1,825 |
readValue method of Jackson ObjectMapper fails to deserialize json | <p>My code basically gets a json string and tries to map to the POJO I have. It seems to match but I still get the mapping exception.</p>
<p>This is my json string:</p>
<pre><code>"{"top" : "0px","left" : "1120px","width" : "170px","height" : "190px","invertAxes" : false,"type" : false,"parameters" : null,"parameterF... | 2 | 2,190 |
Getting data from XML doc using Excel 2010 VBA, node length returns 0 when node is present | <p>I'm trying to develop a VBA script that takes the ISSN number of journal titles from an excel 2010 spreadsheet, and query the Sherpa/Romeo web service (a copyright policy database). It then populates the spreadsheet with self-archiving policy for each title.</p>
<p>While it works for most of the rows in my test spr... | 2 | 2,989 |
OpenGL impostor-sphere : problem when calculating the depth value | <p>I'm trying to render a sphere as an impostor, but I have a problem in calculating the depth value of the points of the sphere's surface.</p>
<p>Here you can see what happens when I move the camera around the impostor-sphere and a "real" cube that intersects the sphere.</p>
<p><a href="https://i.stack.imgur.com/ByT... | 2 | 1,156 |
How to show data with Search Bar and Search Display Controller in other View Controller | <p>thanks in advance. </p>
<p>I'm trying to create an app that has arrays with names, pictures and numbers. I already have the table view created with all the data in the respective arrays; I already have the Search bar working and displaying the correct search. What I'm missing is showing the results of the search ba... | 2 | 1,150 |
How to optimize "text search" for inverted index and relational database? | <h1>Update 2022-08-12</h1>
<p>I re-thought about it and realized I was overcomplicating it. I found the best way to enhance this system is by using good old information retrieval techniques ie using 'location' of a word in a sentence and 'ranking' queries to display best hits. The approach is illustrated in this follow... | 2 | 1,583 |
What does `git branch -M` do with a single argument? | <p>I'm trying to upload a local repo to GitHub. After creating a new repo on the site, GitHub gives the following instructions to execute locally:</p>
<pre><code>git remote add origin https://github.com/MyOrg/repo-name.git
git branch -M main
git push -u origin main
</code></pre>
<p>When I execute them, I get an error ... | 2 | 1,194 |
HighCharts Draggable Plotline with Logarithmic axis scale | <p>I have a simple Line chart using HighCharts & trying to add draggable plotlines in it.</p>
<pre><code>$(function () {
function draggablePlotLine(axis, plotLineId) {
var clickX, clickY;
var getPlotLine = function () {
for (var i = 0; i < axis.plotLinesAndBands.length; i++) {
if (... | 2 | 2,570 |
Equalize bootstrap pagination height with input+button height | <p><a href="https://i.stack.imgur.com/YNHG9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YNHG9.png" alt="pagination height"></a></p>
<p>I have expanded the pagination (Bootstrap-styled) with a "jump-to-page" option but have been struggling to get the paginator list height to match that of the inp... | 2 | 1,069 |
Building a LINQ Expression to find items related to all descendants of a tree node | <p><strong>The Scenario</strong></p>
<p>I have built a database structure that represents a category tree to help classify some of the data we have stored. The implementation is that each record in the <code>Category</code> table has a nullable foreign key back into the <code>Category</code> table to represent the par... | 2 | 1,106 |
React onDrop not firing only onDragOver and onDragLeave | <p>I'm trying to implement a drag and drop of files with React. I've got it from a tutorial and when clicking on the dropzone and adding files it works fine. It doesn't work when dragging the files over the dropzone. </p>
<p>I've added some console.logs to see what code is executed. It seems that only the onDragOver a... | 2 | 1,240 |
How do I draw a cube with all faces having different textures? | <p>I'm trying to move my code over to modern Opengl, but am having trouble. Right now my code will draw a cube and it will put a texture on, but it will only attach the first texture to all of my face. I am also using SOIL to load my textures into my program. What am I doing wrong? </p>
<p>This is my code:</p>
<pre><... | 2 | 4,083 |
Hibernate no session error on proxy object | <p>I'm struggling with editing and updating nested objects because of this Hibernate Lazy Loading error that I keep hitting again and again.</p>
<p>In my application:</p>
<ol>
<li>I bind an Image Set to a product.</li>
<li>I've used the formatter to convert the imageset for use in a select box, so the user can select... | 2 | 1,729 |
Using kernel_read & kernel_write to read input.txt's content & write it into output.txt | <p>I want to read <code>input.txt</code>'s content & write it into <code>output.txt</code></p>
<p>This is my code, and it can makefile after all.</p>
<p>Linux Kernel 15.11 version</p>
<p>So it can't use <code>vfs_read</code> & <code>vfs_write</code></p>
<p>I think that I can store the content from <code>input.... | 2 | 1,086 |
SQL Server - Stored procedure on remote catalog | <p>I have a stored procedure that setup a remote DB connection given the server name and default catalog. This is usually invoked during the deployment of our services in the datacenter, so none of these parameters is known in advanced.</p>
<p>Here's the stored procedure:</p>
<pre><code>CREATE PROCEDURE [dbo].[p_Setu... | 2 | 1,143 |
AngularJS different ng-app on differnet pages | <p>I am new to Angular JS. I am trying to learn. I have created a project which uses grunt and bower.</p>
<p>This is my project struture</p>
<pre><code>MyApp
|
|__app
|
|__bower_components
|
|__scripts
| |
| |__ app.js
| |
| |__contollers -- main.js, invoice.js, register.js
| |
| |__serv... | 2 | 1,523 |
How to compile static OpenCV4 libraries? | <p>For testing purposes, I need to compile my C++ opencv program using static libs. My cmake build options are: </p>
<pre><code> -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D BUILD_DOCS=OFF \
-D BUILD_EXAMPLES=OFF \
-D BUILD_opencv_apps=OFF \
-D BUILD_opencv_python2=ON \
... | 2 | 1,611 |
How to set all elements of one column of dataframe to arrays? | <p>I just want to know how to set all elements of one column of dataframe to arrays in Pandas.</p>
<p>Just like this, column one and two</p>
<pre><code> a b c d one two
0 1 2 3 4 [1, 2] [1, 2]
1 2 2 3 4 [2, 2] [2, 2]
2 3 2 3 4 [3, 2] [3, 2]
</code></pre>
<p>I have tried, but only in this way:</p>
<pre><code>d... | 2 | 1,201 |
ML Kit Barcode process fails due to Image is already closed | <p>I'm looking for a few days how I can read a QR code using ML Kit and CameraX. The process of the input image returns always a failure "IllegalStateException: Image is already closed". I have looked on different forums, but I can not find what I'm doing wrong. I think I'm following the Google documentation,... | 2 | 6,446 |
Treat empty string in JoinColumn as null | <p>I'm currently working on a project with the following scheme: </p>
<pre><code>Profile
-------
CODE | CHAR(6)
CODE_FUNCTION | CHAR(2)
Function
--------
CODE | CHAR(2)
</code></pre>
<p>The most important part here is the foreign key from <code>Profile</code> to <code>Function</code> (<code>C... | 2 | 2,283 |
Algorithms for Updating Relational Data | <p>What algorithms are known to perform the task of updating a database by inserting, updating, and deleting rows in the presence of database constraints?</p>
<p>More specifically, say that before images of rows to be deleted, after images of rows to be inserted, and both images of rows to be updated are in memory. Th... | 2 | 1,209 |
Enable debug mode with liferay in weblogic server? and debug in eclipse with those serves? | <p>I am working with <code>Liferay portal</code> on <code>weblogic server</code> and I have problems to debug with eclipse.</p>
<p>I use <code>Eclipse Juno</code> with <code>OEPE Pack extension, Oracle Weblogic Server 11gR1 (10.3.5) and Liferay 6.1</code>.</p>
<p>When i start without debug options i launch weblogic a... | 2 | 2,304 |
Templating in JSP. Adding the <script> and <link> tags from different template clients to the <head> tag of the template | <p>I am going with templating in JSP as shown below. The tag files given below are stored under <code>/WEB-INF/tags</code>.</p>
<p>genericTag.tag (it is a basic template) :</p>
<pre><code><%@tag description="put the tag description here" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@attribute name="north" ... | 2 | 2,105 |
Rendering ClientBehaviorHolder | <p>I am busy writing my own JSF2 <code>UIComponent</code>s and their relevant renderers. All of my <code>UIComponent</code>s implements <code>ClientBehaviorHolder</code>. What I don't understand is how to really render <code>ClientBehaviorHolder</code>.</p>
<p>For example, the following code illustrates how <code>Clie... | 2 | 1,969 |
How to hide or disable radiobuttonlist and textbox based on condition of another two textboxes when edit button is clicked | <p>I have a formview with textboxes and radiobuttonlist and edit button in the order as follows </p>
<pre><code> <asp:textbox id="tb1" runat="server" text='<%# Bind("DATE_1", "{0:d}") %>' />
<asp:calendarextender id="tb1_CalendarExtender" runat="server" targetcontrolid="tb1" />
<asp:textbox i... | 2 | 1,108 |
Caused by java.lang.NullPointerException | <p>I'm new to android programming and I was creating a simple app from a tutorial when I got an error on debug.
In the tutorial the app contains a button that counts how many times it's pressed, and that project works, but I edited the project to create an app with two buttons, one button counts how many times it's pre... | 2 | 1,962 |
Android Full Screen on Tablet | <p>I've developed an app on Android. The screen displays well on the mobile phone - eg shows full screen. But when I run it on my Samsung tablet 10 inch - it covers only a quarter of the screen. Here is my layout file:</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
... | 2 | 3,049 |
Lambda function to shutdown RDS not working - NameError: name 'client' is not defined | <p>I am using the below Lambda function but keep getting errors. I was able to use the function at the <em>bottom</em> of this page via Pycharm conducting some tests so was expecting this to work in Lambda. Any help would be greatly appreciated.</p>
<pre><code>import boto3
def handler(event, context):
client = bot... | 2 | 1,056 |
Capybara is unable to find a field | <p>I have the following form</p>
<pre><code><%= form_for(@route, :html => {:class => "form-horizontal", :role => 'form'}) do |f| %>
<%= render 'shared/error_messages', object: f.object %>
<div class="form-group">
<input type="text" name="route_origin_input" id="route_origin_input" pl... | 2 | 1,806 |
Showing error in notification | <p>I'm trying to get the notification upon getting update. I tried it in a seperate module and it worked. But when I tried to include it in a package, it is showing the error saying that. </p>
<pre><code>01-18 09:54:27.020: E/MediaPlayerService(33): Couldn't open fd for content://settings/system/notification_soun... | 2 | 1,150 |
layoutIfNeeded behavior change iOS8 to iOS9 | <p>For certain cases with AutoLayout I need to know the width of my view (most nested subview) within it's superview. With AutoLayout in iOS 8 I was able to rely on layoutIfNeeded for the layout system to layout the frames and get the proper width before I do this calculation.</p>
<p>An example would be something like ... | 2 | 1,578 |
Cloud Build w/ cloudbuild.yaml in nested folder - build fails | <p>I am experimnting in automating parts of a project that I'd ideally deploy and forget about. The project is comprised of an XML parser and a small Flask website. At the moment the folder structure looks like this:</p>
<pre><code>.
├── init.sql
└── parser
├── cloudbuild.yaml
├── cloud_func
│ └── main.p... | 2 | 1,267 |
Using GPUImage with AVVideoCompositing | <p>I'm trying to use a combination of <code>GPUImage</code> and the <code>AVVideoCompositing</code> to implement a live chroma-key filter between two videos. Doing this naively using <code>CIImage</code> <code>imageFromCVPixelBuffer</code> into <code>CGImage</code> into <code>GPUImage</code> out to <code>CGImage</code>... | 2 | 1,375 |
Getting DatabaseError [SequelizeDatabaseError] ,incorrect integer value | <p>I am trying to develop a mini shopping site, wherein I am doing this using NodeJs Express and MySQL</p>
<p>my cart could have many products and each product could belong to multiple carts.</p>
<p>Therefore using sequelize,my relations are as follows:</p>
<pre><code>Cart.belongsToMany(Product, { through: CartItem ... | 2 | 4,214 |
How to set cell background and decimal format together during cell selection | <p>I am sorry if the title is not explanatory enough. </p>
<p>I have written a small extension to DefaultTableRenderer class in Java in order to specify cellBackgourd, cellForeground, Alignment and decimal control. I using this class in matlab to control and customise JIDE tables. But have re-created the issue in Java... | 2 | 1,421 |
Blazor checkbox onchange event with parameter | <p>The following code works for me:</p>
<pre><code>@if (data == null)
{
<p><em>Loading...</em></p>
}
else
{
<button class="btn btn-primary" @onclick="Save">Save all changes</button>
<table class="table">
<thead>
<tr>
... | 2 | 1,119 |
DotNetOpenAuth OpenID Provider "Sequence contains more than one element" | <p>I'm having trouble implementing my OpenID provider with DNOA 3.4.3. Everything was going absolutely peachy until I needed AX support as well. I set AXFetchAsSregTransform in the web config, as recommended by Andrew at <a href="http://groups.google.com/group/dotnetopenid/browse_thread/thread/5629a24c0a7e8d99" rel="no... | 2 | 3,358 |
iText: using java to digitally sign PDF doc and observing java.security.NoSuchAlgorithmException error | <p>I have a SafeNet eToken 5100 USB Token with PDF Digital Signing Certificate on it. I configured a windows and mac system to use it and I succeeded in manually signing PDF files with its certificate on both machines. Thus the certificate works as intended. </p>
<p>I shipped the token to my web host company and they ... | 2 | 2,568 |
.NET core 3.1 C# nswag file upload | <p>I'm trying to upload a file to a C# application that is based on a Openapi specification. NSwag is used to generate the most of the C# code and I override the functions of the base class that is generated.</p>
<p>The Openapi specification that I have at this point is the following (relevant part):</p>
<pre class="la... | 2 | 1,297 |
Gulp not including all javascript files | <p>I am developing a web application using the MEAN framework and gulp for minification of the files. However, the application does not work because there are lots of "is not a function, got undefined" when I inspect the navigator console. When I read the app.min.js file which is generated with gulp, I can't find most ... | 2 | 1,710 |
Swift 4 delegates and passing textfield data | <p>I am trying to make an app using the GoogleBooks API where I can use either a title or author or both to search for books. I am currently just working on the delegate portion to be able to pass the search terms to the results table view. However, I am getting errors with the variables I am using being let constants ... | 2 | 1,509 |
Using UploadCollection to upload files with ajax in sapui5 send broken files? | <p>Iam trying to use the UploadCollection with ajax in order to send files through a post request, but for some reason, the file get's uploaded but it can never be open o visualize since the file seems to arrive broken in the backend (sap gateway) side.</p>
<p>This is the way I'm getting the file using the UploadColle... | 2 | 2,880 |
Getting difficulty in tracking of a single vehicle from the video using Matlab? | <p>I am working on a project in image processing which is based on importance of phase only reconstruction. For more information you can read the answer given by geometrikal in <a href="https://dsp.stackexchange.com/questions/16462/how-moving-part-pixel-intensity-values-of-video-frames-becomes-dominant-compared">https:... | 2 | 2,035 |
subscripts & greek letters in dot edge labels | <p>This is a followup to <a href="https://stackoverflow.com/questions/30040997/using-symbol-font-math-notation-in-graphviz">Using symbol font / math notation in graphviz</a>, and was also posted on the Graphviz discussion forum, <a href="http://www.graphviz.org/content/subscripts-greek-letters-dot-edge-labels" rel="nof... | 2 | 1,804 |
IronPython "Random" module error | <p>I am bussy porting IronPython to Windows Phone 8 sothat I can run Skeinforge and I am almost finished. I can already run scripts and import most modules. My problem is that I am now trying to get the "Random" module implemented. My largest problem was that the library used 'SHA512' to compute random numbers. This is... | 2 | 8,736 |
avoid .net XmlTextWriter escaping ampersand in front of character reference | <p>Can someone please be explain why System.Xml.XmlTextWriter escapes the ampersand in front of what I thought was a valid unicode character reference:</p>
<pre><code>[TestMethod]
public void TestEncoding()
{
using (StringWriter sw = new StringWriter())
{
XmlWriter writer = new XmlTextWriter(sw);
... | 2 | 5,457 |
app is re-initializing the first time ADAL "protected" URL is accessed via $http | <p>I have page based loosely off the Angular SPA ADAL sample found <a href="https://github.com/AzureADSamples/SinglePageApp-WebAPI-AngularJS-DotNet" rel="nofollow">here</a></p>
<p>After returning from the MS login page upon accessing my API that is secured with AAD the angular .config() function is called 3 times. Th... | 2 | 6,170 |
Google Maps with D3.geo.path | <p>I'm trying to follow the example in this videos:</p>
<p><a href="https://www.youtube.com/watch?v=wqPGFs0cqxI" rel="nofollow">https://www.youtube.com/watch?v=wqPGFs0cqxI</a></p>
<p>It's about drawing path with D3.js into Google Maps API. The console shows me the error <code>Uncaught TypeError: Object#<PolylineCo... | 2 | 1,466 |
Class cast exception in FrameLayout when am trying to change the order of views in layout xml? | <p>Here is my layout file</p>
<pre><code> <FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="3">
<WebView
android:id="@+id/document_id"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
&l... | 2 | 1,725 |
Identify last passenger who enters the bus! - Meet Time Complexity | <p>This is a question asked in my interview. There are a number of passengers waiting in a queue. Initially, the bus is assumed to be empty and has a fixed capacity "a". I am trying to find the last person who is entering a bus based on his patience level in accordance with the bus time. The person will be waiting for ... | 2 | 1,329 |
Use LambdaMetafactory to invoke one-arg method on class instance obtained from other classloader | <p>Based on <a href="https://stackoverflow.com/questions/30695742/how-should-i-be-using-lambdametafactory-in-my-use-case">this stackoverflow answer</a>, I am attempting to instantiate a class using reflection and then invoke a one-argument method on it using <code>LambdaMetafactory::metafactory</code> (I tried using re... | 2 | 1,388 |
when implementing Spring Security configuration getting java.lang.StackOverFlow | <p>I'm trying to configure my <code>WebSecurityConfig</code> class for my <code>mySQL</code> database. What i m trying to achieve here is once user is created , automatically token will be created and assigned to the client. But i think i'm having problem about looking through all username's inside of the database.</p>... | 2 | 3,335 |
Not able to access the h2 database file in application | <p>In the application properties file, I have set up the url for h2 db;
I have my application under the drive/folder: </p>
<pre class="lang-none prettyprint-override"><code>D:\workspace
</code></pre>
<p>I have kept the database file under the drive/folder: </p>
<pre><code>C:\Users\sagar\Database
</code></pre>
<p>In... | 2 | 7,449 |
Adjust UIPickerView font size | <p>I see many solutions out there for the UIPickerView font size, but it seems they are all based on text based arrays and / or require a UIViewController.
I am using an Int Array within a UITableViewCell and cannot seem to find something that will work with what I am trying to accomplish. </p>
<p>Here is the code:</... | 2 | 1,185 |
cuda tiled 3d convolution implementations with shared memory | <p>Based on my study, there are 2 different strategies to implement tiled version of convolution with cuda. I want to know more about this, and would like to see how they compare with each other, what is the advantage and disadvantage of each strategy, and how to choose. Below is the implementations of the two differen... | 2 | 2,797 |
Android - getAdapterPosition() returns -1 after deleting an item | <p>The title says it all, I have a <code>RecyclerView</code> which is used to store values dynamically, but only one item at a time. The item contains 3 <code>TextViews</code></p>
<p>When I add all the items normally, it works, but when I add x item, then remove the last one, and then click on "submit", the app crashe... | 2 | 9,350 |
How to use runOnUiThread in a class? | <p>My code is designed to read a .txt file from a URL, and then display the text inside my textview. the problem is, I am using this code in a class. and getting this error- "cannot resolve method runOnUiThread". How do I fix this??</p>
<pre><code>public class mydownloaderclass {
// this method is called from MainAct... | 2 | 1,379 |
Android RelativeLayout addrule not working while adding inflated views | <p>I am inflating a xml file to a custom view and adding it to a Relative Layout.</p>
<p>While adding the custom views to Relative Layout i am setting some rules using the addRule method. But the views are always getting added at top left corner, am i missing something here?</p>
<p>here is my code and layouts.</p>
<... | 2 | 1,667 |
I want to show different headers when i get logged in | <p>I am showing headers as login, register when I am not logged in where as when i am logged in I want to show headers list as customers, departments etc. When I get logged in I am not able to se the headers as customers, departments it shows the headers as login, register until and unless I refresh the page.In app.js... | 2 | 1,773 |
Extract value from PDF file to variable | <p>I am trying to get "Invoice number", in this case <code>INV-3337</code> from PDF file and would like to store it as variable for future use in the code. </p>
<p>Currently I am working on example and using this PDF for test purposes:
<a href="https://slicedinvoices.com/pdf/wordpress-pdf-invoice-plugin-sample.pdf" re... | 2 | 2,289 |
DataAdapter not updating source | <p>I have come across a problem in using the DataAdapter, which I hope someone can help with. Basically I am creating a system, which is as follows:</p>
<ol>
<li>Data is read in from a data source (MS-Access, SQL Server or Excel), converted to data tables and inserted into a local SQL Server database, using DataAdapt... | 2 | 1,946 |
app crashing when using location permission | <p>I am very new to android development and java. I am trying to learn some android code from <a href="https://developer.android.com/training/basics/firstapp/index.html" rel="nofollow noreferrer">Build your first app</a>.
Now, the problem is, as soon as I add <code>FusedLocation</code>(the commanted section in the send... | 2 | 4,267 |
Dynamically display page number in cfdocument | <p>I'm able to create a PDF no problem but need the page number of the PDF to begin on a certain page -- not 1. Normally I would use the cfdocument scope to show the page number but because I don't want the page number to start on 1 I can't get the code to work. Not sure how best to do this while incrementing each page... | 2 | 1,116 |
unknown timezone 'localtime' | <p>I think I have done everything right, but why am I getting this:</p>
<pre><code>> Sys.time()
[1] "2015-11-09 18:51:17 UTC"
Warning messages:
1: In as.POSIXlt.POSIXct(x, tz) : unknown timezone 'localtime'
2: In as.POSIXlt.POSIXct(x, tz) : unknown timezone 'localtime'
>
</code></pre>
<p>Operating system is Wi... | 2 | 1,258 |
How to go through a list on two different worksheets comparing values using VBA | <p>I am trying to match 2 columns in one worksheet with 2 (or potentially more) columns in another worksheet. </p>
<p>I have posted a sample of my worksheet data which hopefully gives a good description of what I have been trying to do for the past week. I think I am on the right track but I don't know how to properly... | 2 | 1,147 |
How to Resize Webview when Keyboard is dismissed? | <p>I've got the following code:</p>
<pre><code>- (void)messageComposerFrameDidChange:(CGRect)frame withAnimationDuration:(float)duration {
self.webViewBottomConstraint.constant = _keyboardFrame.size.height-15 + frame.size.height;
UIScrollView *scrollView = self.chatConversation.scrollView;
CGRect rect = C... | 2 | 1,053 |
How to define a 'literal' in XSD | <p>I'm a newbie with XSD and pretty much at wits end.</p>
<p>What I need to do is somehow define a 'literal' element within an XSD file so that users can use it in an XML document.</p>
<p>For example:
In the XML document, I want to let a user be able to add an element like this:</p>
<pre><code> <WordBoundary/>... | 2 | 1,635 |
Javascript: Loop through class and push the inputs | <p>I'm having a problem with pushing some input values to an <code>array</code>. I have a <code>div</code> with a class <code>optiondiv</code> that can be cloned. This div has some table rows with some input fields as follows:</p>
<pre><code><div class="optiondiv">
<table class="tableOptions">
... | 2 | 1,066 |
Handling multiple users editing the same information angular 4 | <p>hey how to handle multiple users editing same information? like by editing a patient using two browsers/users. Two browsers should start the edit process. One changes and saves, and the other browser changes to different values and attempt to save (but it should be rejected)
how can i achieve that?</p>
<p><strong>... | 2 | 2,974 |
TRESTRequest JSON POST issue in Delphi | <p>I'm trying to send JSON POST request to an API using a TRESTClient (Delphi 10.4/Windows 10), but I'm receiving a <strong>409 conflict indicating "No input found"</strong>. Using the same code in (Delphi XE6/Windows 10) I get a <strong>REST request failed: Socket Error # 10054 Connection reset by peer.</str... | 2 | 1,833 |
How to upload files & Get the public url Google Drive Api? | <p>I create a simple website for Uploading files on Google Drive using Google Drive Api.</p>
<p>This is My Code :</p>
<pre><code> $.ajax({
type: "POST",
beforeSend: function(request) {
request.setRequestHeader("Authorization", "Bearer" + "... | 2 | 1,170 |
Django Rest Framework Module Not Found Error | <p>I made sure that every step was followed correctly but this happened and I don't know how to solve this. </p>
<pre><code>**ERROR:**
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x0000017F5090E620>
Traceback (most recent call last):
File "C:\Users\Chrisannesuuuu\e... | 2 | 1,878 |
How to render a YUI datatable? | <p>Following <a href="http://yuilibrary.com/yui/docs/datatable/" rel="nofollow noreferrer">the documentation of the YUI DataTable control</a> i've inferred the following code:</p>
<pre><code><!DOCTYPE HTML>
<HTML>
<HEAD>
<SCRIPT type="text/javascript" src="http://yui.yahooapis.com/3.5.1/build/... | 2 | 1,098 |
How solve Servlet Context Error into Spring? | <p>I'm trying to develop a new Spring web app, but I have a problem with configuration..</p>
<pre><code>ERROR: org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emf' defined in ServletContext resource [/... | 2 | 3,612 |
C++ Qt setting up signal and slots for QMenu | <p>I am trying to make a make a program that allows a user to right click a cell in a gridView and choose from a menu of actions.</p>
<p>I have the menu display, but am having trouble getting the signal and slot to work without getting errors. I am working in Qt 5.5 C++11, not very advanced with Qt or C++ yet so any h... | 2 | 1,872 |
Can I Pass a Function To a Props on a VueJS Component | <p>I have a rather simple component. Basically it is a dropdown <code>select</code> and I need to run some custom code that is in an external javascript function. However, this prop is not required on every instance of the component. So sometimes there may be nothing in the prop. Other times it might do one thing, ... | 2 | 2,584 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.