title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Spread Operator is not working ...this.state.attributes | <p>Spread operator is not working </p>
<pre><code><button {...this.state.attributes}></button>
</code></pre>
<p>Getting error "unexpected token this" Below is package.json we have used</p>
<pre><code> {
"name": "@coreui/coreui-free-react-admin-template",
"version": "2.0.5",
"description": "Co... | 2 | 1,532 |
Save array of objects to javascript localStorage not working | <p>I'm trying to store an array of objects in local storage. I'm using <a href="https://stackoverflow.com/a/43762443/3935156">this common method</a>:</p>
<pre><code>localStorage.setItem( 'products', JSON.stringify(this.state.products) );
let initialProducts = JSON.parse(localStorage.getItem("products") || "[]")
</code... | 2 | 1,390 |
RSpec instance double expectations and default parameter values | <p>I'm trying to create a unit test for a class that has a dependency on an object I've created, <code>WebClient</code>, that makes authenticated web requests. I have created an <code>instance_double</code> of <code>WebClient</code> that I'm passing into the object and am going through mocking out its one public method... | 2 | 1,033 |
Terraform policy attachment to a role name in module | <p>I'm trying to create data roles in three environments in AWS using Terraform.
One is an role in root account. This role can is used to login to AWS and can assume data roles in production and staging. This works fine. This is using a separate module.</p>
<p>I have problems when trying to create the roles in prod an... | 2 | 1,041 |
Fixed header on-scroll with jQuery animate with stop | <p>After long search on google and everywhere I couldnt find a solution to my problem. I am developing a wordpress theme and having issue with my header on scrolling... On fast scrollbar scrolling the menu, logo, and header height does not return back to its state.</p>
<p>How i can fix that???</p>
<p>i am using this ... | 2 | 1,539 |
intent putextra does not working on adapter | <p>I am new to Android programming.
I get a problem when I want to send the data to the intent putextra to new activity in my listview adapter.
This code my adapter</p>
<pre><code> package com.app.amusa.library;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import com.app.amusa.Frag... | 2 | 1,274 |
flutter: compare two object and got ERROR: Expected: VenuesDetails:<VenuesDetails> in unit test | <p>I am using Equatable to compare 2 object in unit testing.This is my object that extended from Equatable:</p>
<pre><code>import 'dart:convert';
import 'package:equatable/equatable.dart';
class VenuesDetails extends Equatable {
Response response;
VenuesDetails({
this.response,
});
factory VenuesDetail... | 2 | 3,146 |
Symfony ManyToMany Form | <p>I have entity skill and language, speciality, platforms entity with relation ManyToMany and when I create skill I select language, speciality, platforms and form is valid and normal persist and flush in DB. But when I create language or speciality or platforms I have error This value is not valid and in debug panel... | 2 | 1,518 |
Passing LiveData as <layout> tag argument | <p>I have quick question about my code. I'm writing an app using Android MVVM with LiveData. I want to create loading layout which is will be included in many views. Main goal is to have ability of passing live data representing if layout should be visible and what text info should be displayed with progress bar.</p>
... | 2 | 1,449 |
geocoder on android show java lang index out of bound exception | <p>i tried to make application to convert from latitude and longitude to an address</p>
<p>the problem is geocoder class didnt work and throw an exception</p>
<p>on below i put java class and xml also with log cat</p>
<pre><code> package com.example.androidfromlocation;
import java.io.IOException;
import java.ut... | 2 | 2,570 |
Script that calls a jquery function before the library load | <p>I have problems with a Jquery function. </p>
<p>I get the jquery library from google.</p>
<pre><code><script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js"></script>
</code></pre>
<p>... | 2 | 2,161 |
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_BORDER, 0); Throws a GL_INVALID_ENUM? | <p>I am creating a 2D openGL texture from an NSImage (cocoa desktop).
I grabbed some code from the internet and it seems to work.</p>
<p>However, I started to insert calls to glGetError() here and there to track other rendering bugs, and thus I traced a GL_INVALID_ENUM error to the call mentioned above. As per the do... | 2 | 1,396 |
Symfony redirect web directory | <p>i am a newbie of symfony, following a guide i had a working project test (contains only default page and lucky number, an example)</p>
<p>in 127.0.0.1:8000 it works perfectly, so i decide to upload in my server but i had a bad surprise</p>
<p>in the main folder of project dosnt works
<a href="http://www.andreapigl... | 2 | 1,244 |
NiFi ListSFTP connector cannot connect to sftp server | <p>I have problems getting ListSFTP processor to work.</p>
<p>First I have tested accessing the sftp server using the commandline on the NiFi server. This works but I have to provide the pass phrase of the private ssh key file.</p>
<p>Then I made sure that I configured the ListSFTP processor using the same settings a... | 2 | 1,474 |
How to do sys.exit() with asyncio Python 3.8+/Windows 10+ without exceptions? | <p>I want to write such asyncio program which exists on on some problems. I should work but it generates ugly output instead of clean exit. How to do <code>sys.exit()</code> without such ugly exceptions?</p>
<p>Here is code:</p>
<pre><code>import asyncio
import sys
async def main():
sys.exit()
if __name__ == ... | 2 | 1,245 |
How can i get the total count in if else condition loop in vb.net? | <p>I want to get the total count from the condition for loop, Let's say for the first row(I), the code will check through the if condition, if the condition meets the specific month then use the specific for loop to get the column count (for example : if the row's month is 1 then apply For k As Integer = 4 To dt.Column... | 2 | 1,236 |
How to view the Full image of the pictures in Gridview once I clicked it | <p>When one of the pictures in the GridView is clicked it needs to show the Full View of the Image, How can I achieve that? Here are the classes.</p>
<pre><code>public class MainActivity extends Activity {
ImageAdapter myImageAdapter;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate... | 2 | 1,860 |
Want to display no image in Handler | <p>I am trying to show an image in a grid view through a handler.But when there is no path in the DB it shows the dirty no image logo. I need to display a "NOImage" image where there are no image.</p>
<pre><code> <asp:TemplateField HeaderText="Path_Image">
<ItemTemplate>
... | 2 | 2,098 |
how to add cached image to app bar in flutter (using cached_image_network) | <pre><code>return Scaffold(
appBar: AppBar(title: CachedNetworkImage(imageUrl: "https://cdn.pixabay.com/photo/2016/02/24/19/05/apples-1220574__340.png",
width: 80.0,
height: 80.0,
)),
</code></pre>
<p>I used cached network image to add image in flutter app bar but it is not working please h... | 2 | 2,072 |
Map generic child to generic parent from stored procedure results | <p>I use a similar approach to the one described in <a href="http://www.khalidabuhakmeh.com/entity-framework-6-multiple-result-sets-with-stored-procedures" rel="nofollow noreferrer">this</a> post to map multiple stored procedure result sets to a parent and child entity using Entity Framework. However, every implementat... | 2 | 1,820 |
Unable to eliminate Firebase Analytics Thread warnings using Xcode 9 in Swift | <p>After moving to <strong>Xcode 9</strong> with an existing project I’m keep receiving warnings from the <strong>Main Thread Checker</strong> about a queue called <code>FIRAnalyticsQueue</code>.
I found this MTC as an awesome feature, since I’ve already resolved quite a lot threading issues with it, but unfortunately ... | 2 | 1,033 |
"Access to path denied" issue | <p>1) i was trying to create directory programmatically this way</p>
<pre><code>if (!Directory.Exists(Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath) + "\\VoiceRecords"))
{
Directory.CreateDirectory(Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath) + "\\VoiceRecords");
... | 2 | 1,839 |
(Swift) How to pass data back and forth between UITableView and UITableViewCell? | <p>I'm a beginning iOS developer and I've been stuck on an issue for quite some time now.</p>
<p><strong>Background:</strong>
I have a single viewcontroller in which I have placed a TableView (I cannot use a tableviewcontroller). It holds 4 dynamic prototype cells:
Cell 1 has an UITextField and a couple of labels, Cel... | 2 | 2,102 |
Threejs particle system with dynamic lines | <p>I am trying to create a very basic particle system which has connecting lines. The logic for the lines is based on nearby particles. Any particles close enough get a line between them. I have worked out the logic but it seems a bit buggy. I am not sure if I am missing something of if there is a better way to do it. ... | 2 | 3,409 |
can't set image zoom level and fix the image view | <p>I am new In Android.I have done zooming in image view.Now facing some problem.
1)can't set the zoom level.
2)Also image is moving. i wanna stop that
here is my code:</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout... | 2 | 1,783 |
error LNK2019 while tring to use SQLAPI(Visual Studio 2010) | <p>Total Newbie Using Visual Studio 2010 to try out SQLAPI, the code at the bottom is the exact example provided by them so there is no problem in the code I believe. But it just Keeps showing LNK2019 when I tries to build it.</p>
<p>These are the errors:</p>
<hr>
<p>error LNK2019: unresolved external symbol "public... | 2 | 1,185 |
Get appointment from Office365 in C#.Net | <p>Basically, My Knowledge level in Office 365 at Beginning level. </p>
<p>I am trying to pull the appointment from Office 365 through .Net Office 365 API call and show it in Windows Application Grid. </p>
<p>I am using code(below) to pull the appointments; I have collected the code from web...</p>
<p>I have succeed... | 2 | 1,059 |
Unable to publish Pubsub message in Airflow Python 3 | <p>I am unable to publish using the <code>PubSubHook</code> in Airflow with Python 3. Everything works perfectly with Python 2, but with Python 3 I get this error <code>{models.py:1760} ERROR - Object of type 'bytes' is not JSON serializable</code>. It seems that encoding the message in Python 3 results in a byte that ... | 2 | 2,820 |
Error 2440 cannot convert from 'int' to 'node' | <p>Ok, so I'm working on a school assignment. I found this program that I wanted to use as an example to help me understand how the linked list system works. This specific program is supposed to create a linked list, and then ask the user to input "points" as in, an x and y pair. It stores each "point" in a node in the... | 2 | 1,062 |
Scatter plot matrices using pairs() in R | <p>I'm new to R and working on some code that outputs a scatter plot matrix. The data frame is in the following format:</p>
<pre><code>A B C D
2 3 0 5
8 9 5 4
0 0 5 3
7 0 0 0
</code></pre>
<p>My data sets can run into the 100-1000s of rows and 10-100s of columns, with a wide scale of values (hence log transforming my... | 2 | 2,510 |
Using checkbox widget in Bokeh to hide or show lines for dynamic number of lines | <p>I am trying to add checkboxes in my bokeh plot so that I can hide or show different lines in my plot. I found some code from github and modified it to fulfil my purpose. Please have a look into the below code,</p>
<pre><code> for data, name, color in zip([AAPL, IBM, MSFT, GOOG], ["AAPL", "IBM", "MSFT", "GOOG"], ... | 2 | 1,208 |
Take first, second, third ... last value and selecting rows (Window function with filter and lag) | <p>I would like to perform a window function with a filter clause, for example:</p>
<pre><code>LAG("date", 1) FILTER (WHERE type='A') OVER (PARTITION BY id ORDER BY id ASC) AS "A_lag_1"
</code></pre>
<p>However, Postgres doesn't support this operation but I cant determine how else do it. Details below</p>
<p><strong... | 2 | 1,811 |
Google Assistant location permissions not stored between requests | <p>With API.AI and the Google Assistant, I'm requesting permission to get the user's name and location. The intent is that I'll be able to ask for permission once, and subsequent requests to my Action will not need to ask again (since this will make for a very stilted conversation every time the user talks to my Action... | 2 | 4,012 |
Primefaces Programmatic Menu | <p>this is my xhtml</p>
<pre><code> <h:form>
<p:growl id="messages" showDetail="false"/>
<p:menubar>
<p:submenu label="Report" icon="ui-icon-arrowreturnthick-1-e">
<p:submenu label="User Management" icon="ui-icon-arrowretu... | 2 | 1,575 |
Missing required parameter: scope. after doorkeeper gem upgrade from 5.1.0 to 5.2.1 | <p>After a gem upgrade of doorkeeper from 5.1.0 to 5.2.1 on the Rails (5.2.3) application that provides authorization, the login for the application requesting authorization does not work anymore. The page on the authorizing application states <code>Missing required parameter: scope.</code> although we do not use scope... | 2 | 1,314 |
Multiple select field - use selected="selected" multiple times | <p>I have a multiple field like this:</p>
<pre><code><select name="excluded_groups[]">
<?php echo $foo->multi_group_select_options($group_ids, $excluded_id); ?>
</select>
</code></pre>
<p>I manage to get results from the database via this function and put them in the <code><select></cod... | 2 | 1,095 |
ASP.NET Core Identity - Confirm email return url | <p>I've managed to set up SignUp and LogIn for my project with ASP.NET Core Identity. Everything works fine but there is a small thing really bugging me.</p>
<p>Since it is a simple project I don't want to configure account confirmation by really sending email to the user so I'm using the default templates, the user is... | 2 | 1,375 |
HtmlUnit on webserver: method <init>()V not found | <p>I've managed to run the code in this question <a href="https://stackoverflow.com/questions/9081743/how-to-call-getpage-from-htmlunit-webclient-and-have-settimeout-not-wait-forever">here</a> properly in a test java project with no problem, but when I am following the exact same procedure to import HtmlUnit in my webs... | 2 | 1,054 |
How to efficiently add and remove classes using jQuery | <p>i have managed to get this code working, but it doesnt make sense to me, its too long, there must be another way to do this or simplify it. can some one point me in the right direction ?</p>
<p>thanks</p>
<pre><code>var TabbedContent = {
init: function() {
$(".menu > li").click(function(e){
switch(e.... | 2 | 2,364 |
C Networking: Sendto() returning Errno 22, EINVAL | <p>I'm attempting to generate a packet from scratch with Layer 2, 3, and 4 components (namely Ethernet, IP, and UDP). My socket is configured to use SOCK_RAW as the type and IPPROTO_RAW as the protocol, so that my program can be used to send different protocols at a later date. I've strictly abided by the sendto(2) man... | 2 | 1,772 |
Why DetailsView.ChangeMode method does not fire ModeChanging and ModeChanged events? | <p>I have an ASP.NET WebApplication page with DetailsView bounded to SqlDataSource.</p>
<p>When I try to change mode by auto-generated Edit or Insert buttons, events are fired.</p>
<p>When I try to change mode programmatically by DetailsView.ChangeMode method call (inside custom button click), ModeChanging and ModeC... | 2 | 1,579 |
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed | <p>I got this error message below:</p>
<pre><code>Ld /Users/kIT98K/Library/Developer/Xcode/DerivedData/iFly-cijrdcwdnrwowmgcazhvczqzkctd/Build/Products/Debug-iphonesimulator/iFly.app/iFly normal i386
cd /Users/kIT98K/proooo2/VPN38/iFly
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/... | 2 | 1,338 |
Update access db from textbox value | <p>im new in c# and asp.net world!
I have a problem.
In access db i have 2 table ( book, loan ) with a referential integrity constraint ( book.ID = loan.ID ).</p>
<p>In my project i have some textbox and when i change a value of textbox i must update the tables.</p>
<pre><code>protected void Button1_Click(object sen... | 2 | 1,945 |
Why are static X11 apps failing on other machines? | <p>I built X11R5 libs statically on a 32-bit Fedora Core 9 machine. Then I built an app which uses X11 and linked it statically. So far, so good. ldd reports it's a statically-linked app. I can run it locally just fine. But when I copy it over to a 64-bit FC9 machine, it fails as follows:</p>
<p>assistant.static: xcb_... | 2 | 1,373 |
Nuxt.js SSR w/ Nest API deployed to AWS in a Docker container | <p>I've tried roughly 5 million variations on the theme here, as well as spent a lot of time poring through the Nuxt docs and I cannot get Nuxt SSR with a Nest backend working when deployed in a docker container to AWS. Below is my current setup. Please let me know if I've left anything out.</p>
<p>Here are the errors... | 2 | 2,622 |
Android infinite scroll view sometimes starts on second page during pagination (skipping first page sometimes) | <p>I am working on an Android app that utilizes an infinite scroll in a recycler view. The app is a news reader app for my college which allows students to read articles from the college news paper. I collect these articles by accessing the REST api of our website. </p>
<p>I have been using an infinite scroll view whi... | 2 | 8,047 |
How to re-render an i frame with this.setState using ReactJS? | <p>In a component, I am changing the state each time a button is clicked. The state is the url of the iframe. <strong>The fact is, clicking a button does change the state (when printing it out, it works), but does not re-render the iFrame with the new url</strong>.
How comes ? </p>
<pre><code>import React, { Componen... | 2 | 1,145 |
UIImagePickerController video recording starts after delay or not working | <p>I am working on a application which needs custome camera UI. SO I used Overlay view in ImagePickerController. User can switch between capture modes.
(<code>UIImagePickerControllerCameraCaptureMode.Video</code> and <code>UIImagePickerControllerCameraCaptureMode.Photo</code> )</p>
<p>My problem is when user swich ca... | 2 | 1,056 |
HTTP Status 404 Error when Running Upload File Code | <p>I am getting the error "HTTP Status 404 - Not Found" at the point where I click the Submit button. The path given seems to be correct. Is there anything about this code that would cause that error to occur?</p>
<pre><code><form name="uploadForm" action="index.jsp" method="POST" enctype="multipart/form-data">... | 2 | 1,185 |
How can I get my JS car to move? | <p>I'm trying to get this car to move with the arrow keys and rotate as well. <strong><em>The car loaded onto the canvas, but its not moving with the keys</em></strong>. I think I've put in everything I need, or I'm wrong. Or, there just some minor mistakes. Anyways, please help a noob like me :D!</p>
<pre><code><!... | 2 | 1,163 |
java8 stream grouping aggregate | <p>Given a java class <code>Something</code></p>
<pre><code>class Something {
String parent;
String parentName;
String child;
Date at;
int noThings;
Something(String parent, String parentName, String child, Date at, int noThings) {
this.parent = parent;
this.parentNam... | 2 | 1,156 |
MVC Enum Model Binding in For Loop | <p>I have an MVC 5 app where I am using a for loop so I can bind a collection when passing back to the controller. This works fine for all my properties except for the one that is based on a DropDownFor type.</p>
<p>The problem is the name of the property is not getting set to "product.[0].TypeOfSubscription.</p>
<p... | 2 | 4,160 |
Django urls help - not able to access view | <p>Let me start by saying I'm new to Django and I realize this seems simple (and I'm hoping it is).</p>
<p>I'm following a tutorial that is taking me through the basic set up of a simple Django site, and I've found myself stuck at a point where I'm simply calling on a new view the tutorial just had me add. (for those ... | 2 | 1,232 |
Why can't I interact with elements within the iframe? | <p>I'm trying to parse and manipulate some data via Selenium and Java (using Firefox as a browser and Ubuntu as an OS).</p>
<p>I want to type to <code><textarea></code> within an <code><iframe></code>:</p>
<p><strong>Main Form:</strong></p>
<pre><code>...
<a class="sendMessegeLink" onclick="open_ifram... | 2 | 1,562 |
Getting 'WrappedRuntimeException' when using XSL-FO in an Xpage | <p>I am trying to create a PDF from the contents of an xpage. I am following the format that Paul Calhoun used in Notes in 9 #102. I am able to create PDF's for views, but having trouble creating one for a document. I do not think the error is in Paul's code so I am not including it here, although I can if need be.... | 2 | 2,452 |
c#: Log4Net console application failed to create console color according log level and crash | <p>So this is my <code>Log4Net</code> <code>app.config</code>:</p>
<pre><code><log4net>
<appender name="ConsoleAppender" type="log4net.Appender.ColoredConsoleAppender">
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="[%date] [%level] [%logger/%method] → %me... | 2 | 1,508 |
Delphi 10.2 how to use the ZipProgress | <p>An earlier StackOverflow topic provides some sample code for using the progress event while using <code>TZipFile</code>:</p>
<p><a href="https://stackoverflow.com/questions/45383554/">Using Delphi Toyko creating a Zip file onprocess example</a></p>
<p>I am able to make the example work if I use it as a MainForm. B... | 2 | 1,286 |
CommandText property has not been initialized error in gridview | <p>I have a gridview and I want to checked line in insert but I see this error:</p>
<blockquote>
<p>CommandText property has not been initialized.</p>
</blockquote>
<p>I guess my mistake about strArrays. I'm working two days about it</p>
<p>How can I fixed?</p>
<pre><code>StringBuilder stringBuilder = new StringB... | 2 | 1,326 |
Android: Change parent layout of a button with animation | <p>I am writing my first android application using Eclipse. The screen of my application shows a 2x4 table of buttons (made using 4 linear layouts) and I have a method which shuffles the buttons by removing them from one linear layout and adding them to another. I have used android:animateLayoutChanges="true" in my xml... | 2 | 3,557 |
Java year display coming out in 3 digits | <p>I'm trying to do a simple console display in Eclipse and my time and date are coming directly from the computer. For some reason, the year display is only coming out in 3 characters instead of 4, and I have no idea why. Any help would be amazing. Here's the code:</p>
<pre><code>public class InClass3 implements A... | 2 | 1,111 |
Multiple easyXDM in one page | <p>I am trying to use two easyXDM sockets on a single parent page without success. Both the sockets connect to the same remote domain but different endpoints. The parent page has two divs <code>false_app_div</code> and <code>dummy_app_div</code>.The following shows the code snippets -</p>
<p>On the parent page I have ... | 2 | 1,196 |
Failed to bind properties under 'spring.jackson.deserialization' | <p>When I start my project into deploy on Tomcat i get the error message</p>
<blockquote>
<p>Description: Failed to bind properties under
'spring.jackson.deserialization' to
java.util.Map<com.fasterxml.jackson.databind.DeserializationFeature,
java.lang.Boolean>:
Reason: No converter found capable of converting fr... | 2 | 5,206 |
Is AWS S3 CORS policy at file level? | <p>I'm trying to apply a CORS policy to my S3 bucket, and what I am observing is that, if at any point of time, I modify the CORS policy, the older files that were uploaded to S3 still do not use the new CORS policy. For e.g.</p>
<ol>
<li>I created a S3 bucket "X"</li>
<li><p>Added the following CORS policy -</p>
<pr... | 2 | 1,146 |
Hover with star rating not working properly | <p>So I found the following code on codepen (<a href="https://codepen.io/anon/pen/Edzxaj" rel="nofollow noreferrer">https://codepen.io/anon/pen/Edzxaj</a>) to make a star rating, which works fine for Font Awesome 3.x and 4.x, but fails to produce the same result on 5.x when hovering over the stars.</p>
<p><div class="... | 2 | 1,313 |
Fetching events in specified time interval using Event Kit does not work as expected | <p>I am using Event Kit on iOS 4.3.1 to retrieve all of the events in a specified time interval.
However, I am experiencing the following problems.</p>
<p>1) using as start date [NSDate distantPast] and as end date [NSDate distantFuture] does not return any event.</p>
<pre><code> EKEventStore *store = [[EKEventSto... | 2 | 1,311 |
freetype 2 library crashes when trying to access characters map | <p>I'm trying to use <a href="https://github.com/cdave1/freetype2-android/issues/1" rel="nofollow">this</a> awesome version of freetype 2 with my multiplatform library. I didn't test it on Android yet, but I've tried to compile and test it under win32. It compiles just fine without errors, but it always crashes when li... | 2 | 1,210 |
GetModuleHandleA fails to get modules not used by python.exe when attached to another process | <p>I am working with Grey Hat Python book at the moment. It describes on how to create a debugger in python. So far my debugger is able to start the process and attach to it. The problem happens when I try to retrieve a module handle from the process. According to OllyDbg the DLL is present in the program, but <code>Ge... | 2 | 2,078 |
How can I suppress identical footnotes with XSLT/XSL-FO? | <p>First of all, I'm trying to create a PDF from an XML with help of XSLT, XPath and XSL-FO.</p>
<p>I have an XML with multiple footnotes and I use a template to render them automatically after tag name "note".</p>
<p><strong>XML:</strong></p>
<pre><code><document>
<ul type='custom-list-1' startdist="0.... | 2 | 7,476 |
Expo Camera crashing on Android devices | <p>I'm trying to use Expo Camera to take pictures and scan barcodes, but for some reason whenever I run it on an Android device when I am about to use the camera the app crashes. This is the code used for taking pictures/scanning barcodes. I don't believe it is a code issue though:</p>
<pre><code>import React, { useSta... | 2 | 2,040 |
import hibernate-orm source into eclipse juno | <p>I want to import hibernate source code into eclipse as a java project. I am new in this field and I'm stuck. I followed the instruction in <a href="https://community.jboss.org/wiki/BuildingHibernateORM4x5x" rel="nofollow">https://community.jboss.org/wiki/BuildingHibernateORM4x5x</a>. Installed git, downloaded the hi... | 2 | 1,542 |
Forge / Nginx - 404 Not Found | <p>I create a server with php 5.* on forge + digital ocean (no domain). I upload a laravel 4.2 project. And I keep getting a 404 Not Found page (I never get that with php 7.* and a laravel 5.* project).</p>
<p>How can I fix it?</p>
<p>Here is my nginx config (error log is empty)</p>
<pre><code>server {
listen 80... | 2 | 1,083 |
KeyError: 'Passing list-likes to .loc or [] with any missing labels is no longer supported on json file | <pre><code>{'meta': {'code': 200, 'requestId': '5e7c703bb9a389001b7d1e8c'},
'response': {'suggestedFilters': {'header': 'Tap to show:',
'filters': [{'name': 'Open now', 'key': 'openNow'}]},
'headerLocation': 'Lagos',
'headerFullLocation': 'Lagos',
'headerLocationGranularity': 'city',
'totalResults': 39,
'... | 2 | 1,245 |
Mapping definition has unsupported parameters: [store : true] | <p>I defined my index <code>ads</code> as follows:</p>
<pre><code>fos_elastica:
clients:
default: { host: %elastica_host%, port: %elastica_port% }
indexes:
ads:
types:
brand:
mappings:
na... | 2 | 2,388 |
WCF MsmqIntegrationBinding - Some XML messages not being picked up | <p>I am using a WCF service to pick up messages off of MSMQ. I have found that some of the messages are not being picked up and I am not sure why. How can I try to debug this? I don't see any errors being thrown, the service is just not picking up messages off o the queue. I am using MsmqMessage to enqueue / dequeue... | 2 | 3,050 |
Linq to NHibernate OrderBy Enum value | <p>I have the following Enum which describes the status of an item and an object that represents the item.</p>
<pre><code>public Enum Status
{
Sent,
Received,
UnderWork,
Returned
}
public Class Item
{
public virtual int Id {get;set;}
public virtual Status CurrentStatus {get;set;}
public vi... | 2 | 1,363 |
C#: My 1st Azure DevOps Pipeline ("Hello, World!") - "The type or namespace name 'System' could not be found" | <p>All I want (for now) is to create an Azure DevOps C# pipeline that runs <code>Helloworld.cs</code>.</p>
<p>I created a <code>Helloworld.cs</code> & <code>Helloworld.csproj</code> following <a href="https://docs.microsoft.com/en-us/visualstudio/msbuild/walkthrough-creating-an-msbuild-project-file-from-scratch?vi... | 2 | 1,649 |
Azure Powershell Tagging VM's from CSV file | <p>I'm quite new to Powershell scripting. I'm trying to generate tags for azure vm's from a CSV file. </p>
<p>Inside the CSV I have the following column headings:</p>
<ul>
<li>VMName</li>
<li>Application</li>
<li>SubCat</li>
<li>Environment</li>
<li>AppOwner</li>
<li>Location</li>
</ul>
<p>I've got a test CSV which ... | 2 | 1,797 |
Importing Javascript module in Firefox extension | <p>I am developing a simple Firefox extension but am having trouble importing my custom Javascript module file. The <code>bootstrap.js</code> file is at the root and <code>test.jsm</code> is inside the <code>content</code> folder.
<code>test.jsm</code> exports 2 symbols <code>foo</code> and <code>bar</code> as:</p>
<p... | 2 | 1,186 |
Facebook Invite Friends Box with iframes is not loading | <p>i created a facebook app name bitsutopia, i wanted to invite my friends to that app using php.
i am using iframe in that app. i got this code from <a href="http://developers.facebook.com/docs/reference/fbml/request-form/" rel="nofollow">http://developers.facebook.com/docs/reference/fbml/request-form/</a> php script ... | 2 | 1,596 |
Google Checkout/GAE: urlfetch: XML parser error. Content is not allowed in prolog | <p>Updated question with the XML. I checked it with a validator earlier and it passed. Could the issue be something else. Thanks again.</p>
<hr>
<p>Could you pls let me know what is wrong with the following code? I am using it for submitting a <strong>Server-to-Server Checkout API Request</strong>.</p>
<p>I keep get... | 2 | 1,429 |
Rails 5 Assignment of _ids array fails on has_many: through association | <p>When upgrading from Rails 3.2 to Rails 5 I ran into this problem where a model suddenly refuses to save.</p>
<p>I have 2 models: <code>ClosingDay</code> and <code>Location</code> which have a has_many :through relation via a <code>ClosingDayLocation</code> model. When creating a <code>ClosingDay</code> the user nee... | 2 | 1,593 |
DefaultWebSessionManager not works on Chrome | <p>Well, I have posted following question on Shiro's forum for 1 week but no response until now.</p>
<p>I am just trying to use Shiro with a simple Spring application. The security manager is defined as <code>DefaultWebSecurityManager</code> which set session manager as <code>ServletContainerSessionManager</code> by d... | 2 | 1,807 |
Read and write an ArrayList to a .txt file | <p>I can't get this part of my project to work. (fileOut() and fileIn() methods). I would appreciate any help!</p>
<p>I am trying to construct a method to open a text file and to write the details of an ArrayList of type to it.</p>
<p>I am also trying to construct a second method to open the text file containing det... | 2 | 5,998 |
I want to upload an image to my blog with node.js | <p>I am creating a small blog with node.js, my blog works perfectly locally, but I would like to add images to my article, I already use bootstrap to display my input but at the node. i can not save my image can you help me please?</p>
<p>I use Mongoose as an online server
(I work under linux)</p>
<p>server.js</p>
<... | 2 | 1,729 |
Printing Google Maps - screen size affecting print size | <p><strong>Background</strong></p>
<p>I'm writing a Google Maps web app (API v3) and I want the user to be able to print what they see on screen.</p>
<p>The map div is 100% wide and 100% high with various bits and bobs over-layed including the markers and application controls etc.</p>
<p>I'm using a @print set of cs... | 2 | 1,303 |
Using GTK/GDK to get Pango-rendered pixels | <p>I'm trying to get a bitmap rendered by Pango with a given character, in this case the letter "T". I thought this should work, but it just prints out garbage..</p>
<p>In this code, <code>gtk_window</code> is already initialized as a GTK window.</p>
<pre><code>int width, height;
PangoLayout *layout = gtk_widget_cre... | 2 | 1,070 |
Spring SAML integration with WSO2 Identity server "Validation of protocol message signature failed" | <p>I have Spring SAML sample application. I have configured WSO2 identity server metadata into sample application. I am able to login into sample application using WSO2 identity server as identity provider. </p>
<p>Now I am adding support for multiple identity provider for sample application. So I have configured Okta... | 2 | 8,003 |
How to use windbg to troubleshoot executable which won't start? | <p>The <a href="https://software.intel.com/en-us/articles/intel-power-gadget-20" rel="nofollow noreferrer">Intel Power Gadget</a> tool will not run on my system, and I'm trying to figure out why. It's a Core i7-720QM running Window 8.1 x64. AIDA64 reads the CPU temperatures just fine, but I can't even launch the Inte... | 2 | 2,252 |
request.getRequestDispatcher("URL").forward(request,response) Not Working | <p>I am trying to redirect to a jsp when an input validation error is found in case of data tampering. When I change the value for one of the fields it works properly but when value is changed for variable metricId[i] to "" it executes the code for request.getRequestDispatcher line but doesn't redirect it to the requir... | 2 | 1,512 |
Client-server application in Java | <p>I have a server application in Java, that holds a list of Student objects (implementing Serializable). The client application sends a message with an integer - index of Student object to fetch. Then the selected Student is sent to the client, the client modifies its value and sends back. The application however free... | 2 | 2,732 |
Answer is wrong when calculating future value in java | <p>So I am creating a future value application, that allows the user to enter the amount they have invested, the percent per year, how many years it is invested, and if it is compounded annually, semi-annually, monthly, daily, etc.</p>
<p>The problem I am having is that my answer is turning out wrong, but only by a co... | 2 | 1,027 |
C# implementation to get SignedCms from signed file | <p>I am having an implementation using C++ CRYPT32.DLL to extract a SignedCms object from a signed c# assembly dll.</p>
<p><a href="https://i.stack.imgur.com/cRn0Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cRn0Y.png" alt="signed c# assembly"></a></p>
<p>The certificate used to sign the dll is... | 2 | 2,820 |
Activating an animation in SwiftUI automatically based on saved state | <p>I'm trying to write a view that displays 3 buttons, I cannot get the animation to start on load.</p>
<p>When a button is tapped, I want it to animate until either:</p>
<ol>
<li>it is tapped a second time </li>
<li>another of the 3 buttons is tapped</li>
</ol>
<p>I have got the code working using a @Environment ob... | 2 | 1,298 |
Exception on SwingWorker is not catchable | <p>I have been working with Java threads in order to provide a GUI platform for running processes in a pipeline. I've managed to work through a number of issues with <code>SwingWorker</code>, but this one is seemingly incomprehensible.</p>
<p>My <code>SwingWorker</code> looks like:</p>
<pre><code>SwingWorker<Boole... | 2 | 2,000 |
UIView animation change image of button | <p>I have <code>UIButton</code> and i want to change is image with animation (change 4 images), i tried this method but it only change to the last image.</p>
<p>what i try to do is to put small image of the <code>UIButton</code> from the currently image.</p>
<pre><code> [UIView beginAnimations:nil context:NULL];
... | 2 | 1,502 |
Error: undefined Unable to resolve module | <p>I am trying to load glb file as:</p>
<pre><code>const asset = Asset.fromModule(require('../assets/webgl/RModelNoKeys.glb'));
</code></pre>
<pre><code>#metro.config.js
module.exports = {
resolver: {
assetExts: ['db', 'mp3', 'ttf', 'obj', 'png', 'jpg', 'gltf', 'glb'],
},
transformer: {
ass... | 2 | 2,961 |
"Not a managed type: class java.lang.Object" when creating a Spring Data repository | <p>I am writing a Spring Boot application where I am using Postgres DB.
I have a jpa <em>ConfigParamsJpa</em> to access a table</p>
<pre><code>@Entity
@Table ( name = "CONFIG_PARAMS", schema = "schema1")
public class ConfigParamsJpa implements Serializable {
private static final long serialVersi... | 2 | 3,440 |
django.db.utils.ProgrammingError: in DJango application | <p>I am working with a Django application with Postgres Database.</p>
<p>My models are as follows:</p>
<pre><code>from django.db import models
from django.contrib.auth.models import User as UserModel
from dynamicforms.mangers import TextQuestionManager, MCQManager, IntegerQuestionManager
from django.db.models.fields.... | 2 | 2,127 |
How to use transitions on select option using Vue.js | <p>I have quick question regarding transitions with Vue.js.</p>
<p>In my boostrap template I'm trying to add one more select option dropdown based on selected option. So, I added change event on first select option. So, if I select <em>'first item'</em> then change classes and add dropdown in row, or else hides it.</p... | 2 | 2,422 |
i can't navigate from one window to other | <p>I want to navigate from Login.js to home.js so anyone who help me for this.</p>
<pre><code>//app.js
var win = Titanium.UI.currentWindow;
var tabbar = Ti.UI.createTabGroup({
title:"Login"
});
var mainwin = Ti.UI.createWindow({
url:"Login/login.js"
});
var signupwin = Ti.UI.createWindow({
url:"... | 2 | 1,404 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.