title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Disabling Checked checkboxes in a Repeater when clicking a Submit button
<p>I would like to disable Checked checkboxes when the user clicks the Submit button in ASP.NET. I can disable the checkboxes using JavaScript using the onclick event of the button. The checkboxes are in a Repeater. When the form is submitted by clicking the Submit button, none of the checkboxes show as checked in t...
2
1,479
NoClassDefFoundError: com/sun/xml/internal/bind/DatatypeConverterImpl using knopfletfish
<p>I am new to ogsi and when I run the bundle in the knopfletfish framework, I obtain this error:</p> <pre class="lang-none prettyprint-override"><code>Exception in thread "Thread-17" [stderr] java.lang.NoClassDefFoundError: com/sun/xml/internal/bind/DatatypeConverterImpl [stderr] at eu.datex2.schema._2_0._2_3.Inte...
2
2,533
RecyclerView of RecyclerViews: Image Loading
<p>I try to implement a layout that contains a vertical <code>RecyclerView</code> that itself contains multiple horizontal <code>RecyclerViews</code> (imagine a news site, with multiple news sections, where each section contains multiple news stories that can be scrolled horizontally). </p> <p>The horizontal <code>Rec...
2
1,100
Environment variable in nest.js is not visible in jwt.strategy.ts
<p>I am trying to pass in an environment variable to my jwt.stratgy.ts file but variable is not visible in the file. It works fine if I hardcode the jwksUri variable in SecurityParameters file. For some reason it seems process.env is not visible in super(options) or even in constructor( ) . Would appreciate any pointe...
2
1,122
Replace JBoss error page with Axis2 fault XML response
<p>I'm developing a webservice with Axis2 1.4.1 on JBoss 4.2.3/Tomcat 5.5.27 and Java 1.5.0 (15-b04). It works flawlessly but when an exception happens I get a JBoss error 500 HTML page instead of an Axis2 XML/SOAP fault.</p> <p>This behavoir is vexing, because it difficults to handle errors in the webservice client o...
2
2,098
Decoding data read from a .bin file into fields
<p>I was originally going to read a file through an array, pin to struct, convert and display. I have been trying to find another solution (I have removed the original details here to cause less confusion). I have a .bin File and I can correctly identify how many records are in the file by using a simple sum and <em>Fi...
2
1,978
Visualizing Neo4j graphs with Vis.js
<p>I want to visualize Neo4j graph on my web interface. So I'm using <code>Netwok</code> of <code>Vis.js</code>. When I specify the JSON file like on this example it works fine:</p> <pre><code> var container = document.getElementById('graph'); var options = { clickToUse : true, edges: {...
2
1,542
ansible can't find a python package even if it is installed
<p>Trying to use <code>docker-compose</code> within an ansible playbook using the <code>docker_compose</code> module. Note that I can successfully use the docker module in ansible but running into problems with <code>docker_compose</code> module. I'm using plaintext vars for testing locally, I use ansible-vault for sto...
2
1,082
How to open a modal dialog popup from an iframe (sharepoint hosted app, (app part))) in the parent window
<p>so I developed this sharepoint hosted app with an app part which renders a calendar, when they click on a day it must open a modal popup with an url that I already have.</p> <p>I will paste the error at the end.</p> <p> </p> <pre><code>&lt;script type="text/javascript" src="../Scripts/jquery-1.9.1.min.j...
2
1,407
Cobol, Finding a Percentage
<p>I'm working on an assignment for my class, and I'm having an issue with getting a percentage to show the proper value for my COBOL Lab.</p> <p>My issue is with PERCENT-DISCOUNT / WS-PERCENT-WITH-DISCOUNT (at least, I believe it is).</p> <p>When the program is run, I get the result 50.0. The result I should be gett...
2
4,934
How to save the drawing in canvas and Frame Layout with background
<p>I'm trying to save my drawing into Canvas and Framelayout with a background on it, i was able to save the Canvas and it's drawing but the Problem is the FrameLayout. It seems that my code is only saving the canvas not the Framelayout (background image). Can anyone help me with this.</p> <pre><code>public class Dra...
2
3,530
How to solve a NoClassDefFoundError caused by ClassNotFoundException?
<p>I'm trying to make an extension for <a href="http://www.bluej.org" rel="nofollow noreferrer">BlueJ</a> (this is a free <code>Java Development Environment</code> designed for beginners). The Extension should help the first year students in our school. The extension has to be a JAR file, that I have to place in a fold...
2
1,724
I got an error in solidity like "TypeError: "block.blockhash()" has been deprecated in favor of "blockhash()""
<p>I get gemini-doller contract code from etherscan through this link"<a href="https://etherscan.io/address/0x056fd409e1d7a124bd7017459dfea2f387b6d5cd#code" rel="nofollow noreferrer">https://etherscan.io/address/0x056fd409e1d7a124bd7017459dfea2f387b6d5cd#code</a>" while test it in remix i found some errors in line numb...
2
10,853
Glitchy shared element transition between recyclerview and viewpager
<p>Hi i have made an app where i'm using shared element transition for some animation between recyclerview which is in fragment and a slider viewpager which is in activity. Now the problem is that when i apply shared element transition and click recyclerview it blinks for a moment and the detail activity starts but wi...
2
2,165
400 bad request returning /favicon.ico as req.url in express.
<p>I am building a simple microservice which returns the url date parameters as a Json object in unix and natural language. For example if you go to <a href="https://cyber-clock.glitch.me/May%2013,%202015" rel="nofollow noreferrer">https://cyber-clock.glitch.me/May%2013,%202015</a> the app should return: <strong>{"un...
2
1,052
googlemap not working on android 4.2
<p>Will running my google map in enumerator using eclipse my Android version is 4.2 i get a message that u have to update my google service with one button with text Update </p> <p>LOGCAT </p> <pre><code> 05-19 10:27:43.540: W/GooglePlayServicesUtil(1744): Google Play services out of date. Requires 4323000 b...
2
2,339
drupal 7 chrome not loading css rules
<p>After editing the css file that holds all of the custom css the site stopped displaying correctly in chrome. IE looks fine... could it be something in my devtools that changed the way it loads in chrome?</p> <p>Or is there an error in the file itself:</p> <pre><code>@import url("http://florabellemv.com/sites/all/t...
2
3,026
Boosting performance of a PHP image upload/resize script
<p>So I was on this mission to create a moderately flexible, but most importantly, re-usable handler PHP script for image uploading projects. As I cruised along I ran into a PHP memory limit question that I posted on stackoverflow (can be found here: <a href="https://stackoverflow.com/questions/3792058/php-memory-limi...
2
2,265
Android ExpandableLists, implementing Gestures, setting onTouch Listener makes expandable List dissapear
<p>the example below makes my Expandable List dissapear as soon as I set either the OnTouch listener or onCLick listener. </p> <p>I have a ActivityswipeDetector Class:</p> <pre><code>public class ActivitySwipeDetector implements View.OnTouchListener { public static enum Action { LR, // Left to Right RL, // R...
2
2,175
Failed to convert property value of type 'org.springframework.web.multipart.support.StandardMultipartHttpServletRequest$StandardMultipartFile'
<p>I have trouble with convert type &quot;multipart&quot;</p> <p>&quot;Failed to convert property value of type 'org.springframework.web.multipart.support.StandardMultipartHttpServletRequest$StandardMultipartFile' to required type 'java.lang.String' for property 'foto'; nested exception is java.lang.IllegalStateExcepti...
2
1,279
Android, view.bringToFront() not working in ViewPager
<p>I have a ViewPager modelled after <a href="http://developer.android.com/training/animation/screen-slide.html" rel="nofollow noreferrer">this</a> example, where I am implementing <code>ViewPager.PageTransformer</code>:</p> <pre><code>public class DepthPageTransformer implements ViewPager.PageTransformer { privat...
2
2,576
C++ MySQL Linker errors
<p>I am new to Visual C++. I wanted to work with MySQL/C++. So, I</p> <ul> <li>Installed MySQL on my machine Installed VS 2010 Professional on my machine</li> <li>From the internet, I found that My SQL drivers are found in </li> </ul> <blockquote> <p>C:\Program Files\MySQL\Connector.C++ 1.1\include &lt;-- Headers...
2
1,805
How Claims are mapped in asp.net core
<p>I am new to asp.net core and I am currently working in the multi-tenant application.I am now stuck because i have no idea of how the claims are mapped in asp.net core</p> <p><a href="https://i.stack.imgur.com/LNHjG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LNHjG.png" alt="image 1"></a></p> ...
2
1,619
Upload rotated image preview with ReactJS
<p>I'm pretty new in ReactJS and I am trying to upload rotated a preview of an image with ReactJS. I followed this stackoverflow question: </p> <p><code>https://stackoverflow.com/questions/44530791/rotating-image-preview-with-reactjs</code></p> <p>I was able to integrate but I am really stuck how I could possibly upd...
2
1,476
Should I expose IObservable<T> on my interfaces?
<p>My colleague and I have dispute. We are writing a .NET application that processes massive amounts of data. It receives data elements, groups subsets of them them into blocks according to some criterion and processes those blocks.</p> <p>Let's say we have data items of type <code>Foo</code> arriving some source (fro...
2
1,478
Android GridView DataBinding - ItemClickListener does not fire
<p>I've tried the following implementation for <code>GridView ItemClickListener</code>, the project are compiling fine, but when i clicks on <code>GridView</code> item, the <code>Toast</code> dont show my message, what's wrong ? </p> <p><strong>Java Click handler</strong></p> <pre><code>public class MultiChoiceAction...
2
1,040
Program works but get **stack smashing detected** in the end
<p>I already check this discussion: <a href="https://stackoverflow.com/questions/32959038/stack-smashing-detected-at-end-of-program">Stack Smashing Detected at End of Program</a></p> <p>But it's not the same problem. </p> <p>In my case. My program works, but if I run 10x: 6x no error, and 4x give me "stack smashing d...
2
1,977
Sails.js How to load session and create, check, destroy?
<p>In config session.js i have enabled redis before that i have installed these two things...</p> <p>npm install connect-redis</p> <p>npm install express</p> <pre><code> adapter: 'redis', // // on localhost is expected. // Read more about options at: https://github.com/visionm...
2
1,233
No response from jsonArray request
<p>Well long story short i face this kind of problem, Im trying to send volley request to my server, which responds with json array:</p> <pre><code>{ "images": [{ "product_serial_num": "1", "product_title": "Abbadon", "product_img": "http://1.2.3.4/android/uploads/1.jpg", "product_p...
2
1,197
java.lang.NoClassDefFoundError exception on some devices
<p>I have an <code>ImageView</code> in my <code>Fragment</code>, on which am setting an <code>onClick Listener</code>.</p> <pre><code>public class TutorialFragment extends Fragment { private TutorialAdapter tutorialAdapter; private TutorialFragment tutorialFragment; private SplashActivity splashActivity; private Rela...
2
7,115
Error sharing customer stripe and create charges with php
<p>I'm sorry for my english.</p> <p>I'm try to create a charge with a connected account in stripe using standalone account. I'm connecting my accounts using this article in stripe: <a href="https://stripe.com/docs/connect/standalone-accounts#sample-code" rel="nofollow noreferrer">Sample OAuth Applications</a>. I have ...
2
2,653
JQuery - change background image when sliding according to data-ride carousel when active
<p>is there a way to override the bootstrap carousel indicator? I want to change the background of the indicator when an item is active.</p> <p>Normally in bootstrap's default carousel, the indicator is only like this: </p> <p><a href="https://i.stack.imgur.com/uh8cn.png" rel="nofollow noreferrer"><img src="https://i...
2
1,242
ERROR TypeError: Cannot read property X of undefined
<p>I have following Interface to be used as a type for a JSON file : </p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>export interface IIndustrySectors { IndustrySector:...
2
1,668
Attribute binding using emberjs, handlebar, with jquery draggable
<p>Attribute binding emberjs jquery draggable handlebar</p> <p>I have an emberJS object:</p> <pre><code>randomsticker= Sticker.create({ id : 2, title : "someeditable value by binding", top : 100, left : 200 }); </code></pre> <p>This has a ha...
2
1,146
How do I get Twitter Bootstrap's Less files to work with Sinatra AssetPack?
<p>I am trying to get Bootstrap's Less files working with <a href="http://ricostacruz.com/sinatra-assetpack/" rel="nofollow">Sinatra AssetPack</a>, but I am getting Less parser errors. These errors lead me believe that the less files being imported through bootstrap.less are not aware of each other.</p> <p>I have an a...
2
1,584
Multiple Instances Of Spring Scheduler Task
<p>We have an EJB application running on Webshere Application Server. Part of the processing there are several scheduled tasks that need to run with a fix delay of 50 to 200 milliseconds so we had to use Spring scheduled task to achieve this.</p> <p>The Spring application context is only loaded once when the applicati...
2
1,548
When I run the full test suite in Django, I get errors about missing MessageMiddleware
<p>My app is called abcapp. I am running Django 1.5b1 on Python 2.7. The same issue happens in the latest trunk release of django.</p> <p>When I run <code>manage.py test abcapp</code> all tests which I have written pass.</p> <p>When I run <code>manage.py test</code> I get a cascade of failures. The first of these fai...
2
1,027
Corrupted string as a result from a download of utf8 encoded xml data received by libcurl
<p>In a project that implements an Amazon S3 access library with the use of libcurl, I have problems with UTF8. The method for listing a bucket's contents sends the appropriate request to the S3 server, correctly signed and all. I receive a xml document, but the data is corrupted.</p> <p>I save it into a std::string. ...
2
1,173
Drawtext on surfaceview does only work on emulator but not on device
<p>I use canvas.drawText on a SurfaceView and the output looks correct on the emulator but when I deploy the app to my device (a Samsung Galaxy S3) the text is written from top to bottom like this:</p> <pre><code>T E s t </code></pre> <p><img src="https://i.stack.imgur.com/0GWxz.png" alt="Wrong output on Device Samsu...
2
1,161
Date format not working in MVC with Entity Framework?
<p>I'm trying to get some data to format in the ShortDateTime format of "MM/dd/yyyy" but everything I'm trying is not working. </p> <p>I have the following EF below and the field I'm specifically looking at is the ExpireDate. When I try to use a DateTime.Parse around the field I get an error <code>cannot convert from ...
2
1,184
Spring JdbcTemplate fail to convert String to Enum (that extend specific interface), since default converter is called even if removed
<p>My basic Spring boot app has an endpoint that accepts one single String and use it as key to read a char(1) value from DB, with NamedParameterJdbcTemplate. Simplified version of my code:</p> <p><strong>Application.java</strong></p> <pre><code>@SpringBootApplication @EnableCaching @EnableScheduling @ComponentScan(bas...
2
3,072
Why do I get "POST http://54.xx.xx.xx/wp-admin/admin-ajax.php 500 (Internal Server Error)" when using Wordpress+Ajax?
<p>It's the first time for me using ajax on WP. I am working on a simple contact form, and for some reason whenever I click submit I get an error: </p> <p>on console: </p> <pre><code> POST http://54.xxx.xx.xx/wp-admin/admin-ajax.php 500 (Internal Server Error)jquery.js?ver=1.11.1:4 m.ajaxTransport.sendjquery.js?ver=...
2
1,853
Randomly selecting enum values according to few rules
<p>Please have a look at the following code</p> <pre><code>#include &lt;iostream&gt; #include &lt;stdlib.h&gt; using namespace std; int main() { enum Movement{STAND,WALK,RUN,CRAWL}; Movement state = (Movement)(1+rand()%4); for(int i=0;i&lt;100;i++) { cout &lt;&lt; state &lt;&lt; endl; swi...
2
1,654
Can't find dependency for org.neo4j:neo4j-cypher-dsl:jar:2.0.1
<p>I was trying to get the dependencies from the repository, given below the pom.xml.</p> <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;...
2
1,177
Error: incompatible types: android.support.v4.app.Fragment cannot be converted to android.app.Fragment
<p>Before i ask this question i have tried all available options and solutions provided here to no avail. Learning to create fragments with this link <a href="https://abhiandroid.com/ui/fragment" rel="nofollow noreferrer">https://abhiandroid.com/ui/fragment</a>. There are two fragment classes in addition to MainAct...
2
2,857
Xcode 4.4 clang error: linker failed
<p>After upgrading to Mountain Lion and Xcode 4.4 today, one of my projects is no longer compiling. I've verified that it still compiles ok on Xcode 4.3. This is the output I'm getting - any ideas?</p> <pre><code>Ld "/Users/Adam/Library/Developer/Xcode/DerivedData/Home_Loan_Finder-ciynsbeemzwbzhenhqlhhzbsgebo/Build/Pr...
2
1,064
Java Reflection traverse into nested object and list and update the fields
<p>I have the following complex POJO class Invoice</p> <pre><code>public class Measure { private String id; private Float value; public String getId() { return id; } public void setId(String id) { this.id = id; } public Float getValue() { return value; } public void setValue(Float value)...
2
1,084
onActivityResult resultCode always 0 when using camera
<p>So i have 2 Activities, the first one is to launch camera before the second Activity start. After taking the camera, the ImageView on second Activities will changed by the photo ive taken. And if i click the ImageView, it will intent the camera and replacing the image from camera. However, i cant replace the image a...
2
3,663
JSON output from MySQL works, but then white screen appears?
<p>I've used the below code to generate JSON from a MySQL table. It works great when I'm only generating 2 arrays, but for some reason when I try and generate 3 or 4 arrays, I get the "white screen of death". I thought it was happening because I needed to bump up my PHP Memory Limit, but I've done that and still get th...
2
1,044
pyspark on emr with boto3, copy of s3 object result with Futures timed out after [100000 milliseconds]
<p>I have a pyspark application that will transform csv to parquet and before this happen I'm copying some S3 object from a bucket to another.</p> <p>pyspark with spark 2.4, emr 5.27, maximizeResourceAllocation set to true</p> <p>I have various csv files size, from 80kb to 500mb.</p> <p>Nonetheless, my EMR cluster (...
2
2,179
ReferenceError: function is not defined at HTMLInputElement.onclick
<p>There is a possibility to select an excel file. Then click on upload and the code will get started. When I press the 'upload' button I get the </p> <blockquote> <p>'(index): 57 Uncaught ReferenceError: Upload is not defined<br>      at HTMLInputElement.onclick '</p> </blockquote> <p>I tried to place the <code>...
2
12,385
How to pass a boost asio tcp socket to a thread for sending heartbeat to client or server
<p>I am writing a client/server program in boost TCP in which I want to send a HEARTBEAT message to the client every 2 seconds for which I am trying to create a new thread by which I can send it easily but unable to solve it. I am creating thread using <code>boost::thread t(hearbeatSender,sock);</code> this. but giving...
2
1,399
Get JSON Object after submit the form in phonegap
<p>I'm new in phonegap development in android. i'm working on phonegap application. I have subbmited the code on the server using the form tag. Now i want to get the result back. So please hlep me how to get the result which is returned by the server. the result is in the form of JSON.</p> <p>Here is my code that i'm ...
2
1,313
gss_display_name() failed: A required input parameter could not be read: An invalid name was supplied (, Unknown error)
<p>I'm trying to setup Kerberos authentication on Apache 2.2.15-30 (CentOs 6.5), and am facing an issue that I'm not able to debug or solve. I can see the TGS request in the KDC log and Firefox sends the correct Authorization: Negotiate header, but something in Apache goes wrong and I'm getting an HTTP 500.</p> <h2>kr...
2
3,811
Negotiation with the VPN server has failed (NEVPNProtocolIPSec, Swift 3.0.2)
<p>guys.</p> <p>I'm trying to setup a VPN connection to my server, but something goes wrong.</p> <p>I've tried setting it up manually and it works.</p> <p>Here's my configuration code. The server object has a name and a correct host for sure and i tried disabling extended authentication. Afaik remote and local ident...
2
1,189
tns stopped recognizing my device. Cannot find connected devices
<p>I am developing an app using nativescript 5.4.0, tns-core-modules 5.4.2, tns-android 5.4.0</p> <p>In the past days I started receiving an error saying Cannot find connected devices.</p> <p>Before everything was working fine. I was able to deploy my app on my RedMi 3 device and debug it from the console using tns ...
2
4,148
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/view/animation/FastOutSlowInInterpolator;
<p>I'm facing an issue with my new app. I created a app for shopping cart and i created a signin and signup page and it is now showing error message</p> <p>Error:</p> <pre><code>08-19 18:56:41.279 2902-2902/com.example.dinidev.ecom E/AndroidRuntime: FATAL EXCEPTION: main `Error` ...
2
10,762
AngularJS: upload file inside modal-ui-bootstrap
<p>I have an angular modal-ui, in it I upload file. The problem is that for some reason the <code>&lt;input&gt;</code> of the file doesn't triggers the app directive. The directive returns the file name and size when the <code>&lt;input&gt;</code> being changed.</p> <p>this is the result I want to get:<br> <a href="ht...
2
2,406
Upload CSV file from React and Spring Boot
<p>Maybe anybody knows how to solve the problem of uploading files to the back-end. <a href="https://i.stack.imgur.com/0egbB.jpg" rel="nofollow noreferrer">Send file from Postman looks like</a> But after upload from React, I have exception like this:</p> <blockquote> <p>2020-11-09 18:17:38.829 DEBUG 10764 --- [nio-8081...
2
3,460
Increase the default disc space for Docker Images on macOS
<p>on macOS Sierra (10.12.2) I have Docker v1.13.0 installed.</p> <p>For all created images, the disc space for / is allocated to 63Gb as on the following screenshot</p> <p><a href="https://i.stack.imgur.com/VzSJa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VzSJa.png" alt="enter image descripti...
2
1,025
R8: Cannot constrain type: @Nullable androidx.transition.ViewGroupUtilsApi14 {} for value: v3 by constraint: INT
<p>I am getting an error <strong>R8: Cannot constrain type: @Nullable androidx.transition.ViewGroupUtilsApi14 {} for value: v3 by constraint: INT</strong> when I try to create a release version of Android App and this error is caused by Android R8. The task that fails is <strong>:app:transformClassesAndResourcesWithR8F...
2
5,764
I keep getting exception sometimes on System.Threading.Tasks.TaskCompletionSource<bool> how can i solve it?
<p>I have a watcher method i'm calling from the constructor of fomr1:</p> <pre><code>FileSystemWatcher watcher; private void WatchDirectory() { watcher = new FileSystemWatcher(); watcher.Path = userVideosDirectory; watcher.NotifyFilter = NotifyFilters.LastWrite | Not...
2
1,526
slide left and slide right using jquery
<p>Hi friend m trying to make a menu bar which will slide to left or right. This navigation bar is controlled by two arrow if user mouse over on the right arrow then the navigation will move right to left till the end and when it reach its last point so it will be stop. Same thing will happen when user mouse over on l...
2
2,843
Center logo with main menu appearing on each side
<p>I would like to center my logo and have my main menu appear on each side of the logo, I have no clue on how to do that, do I have to create two separate menus to achieve that layout?</p> <p>Any advice is much appreciated.</p> <p>Thank you!</p> <pre><code> &lt;header class="remove-padding"&gt; &lt;div class="c...
2
2,076
add checkbox to datatable while loading data from database using ajax
<p>I can't add checkbox to my DataTable while bind data from db using ajax. How can I add a checkbox with server-side data loading?</p> <p>My jQuery:</p> <pre><code>var table = $('#example').DataTable({ "ajax": "getBusperOrder.php", "bPaginate": true, "retrieve": true, "bProcessing": t...
2
1,170
c# roslyn generating class with base type
<p>I got below source from <a href="https://msdn.microsoft.com/en-us/magazine/mt707527.aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/magazine/mt707527.aspx</a> and it generates class using Roslyn:</p> <pre><code> // Get a workspace var workspace = new AdhocWorkspace(); // Get the SyntaxG...
2
1,295
Working with compound js on windows. Cannot start anything
<p>I wish to create a hello world application using <a href="http://compoundjs.com" rel="nofollow">compound.js</a>.<br> So far, nothing works at all.<br> I've installed "npm install compound -g" to have compound be available globally.<br> Now I wish to run "compound init" and I get this:</p> <p>(see first code block)...
2
1,197
--extra-index-url is not working in docker file
<p>I have setup local pypiserver using following docker-compose.yml and it is working when i use it directly like</p> <p><code>pip install -r requirements.txt --extra-index-url http://127.0.0.1:8082</code></p> <p>However, When I try to use same command in Dockerfile, it is not working. Files I have created following fi...
2
1,232
How to organize communication with database in Node.Js?
<p>I have a problem to design communication with MySQL database in my Nodejs's app. The biggest problem is that queries are async, so it becomes complicated to design my projects. For example, I have excercises.js </p> <p><strong>EXCERCISES.JS</strong></p> <pre><code>var express = require('express'); var database = r...
2
1,208
RecyclerView in NestedScrollView to fill remaining space
<p>I have view hierarchy like below: <strong>NestedScrollView > ConstraintLayout > [Layout,Layout, RecyclerView]</strong> </p> <p>I want my RecyclerView to fill remaining space in Nested ScrollView. My ConstaintLayout has <strong>wrap_content</strong> layout_height. Child Layouts has fixed height set in dp units. And...
2
5,577
How to run nested batch file programatically using C#
<p>I am trying to execute a batch through my Client/server socket program. Inside the main batch file, it calls other batch files . All batch files exist in the same folder. The Server program application is in exist another folder (E:\Apps) and running it as windows service.</p> <p>Main batch file Path :</p> <block...
2
1,184
Pandas - How to create a one row dataframe using multiple columns of another dataframe
<p>I have searched how to "create a one row dataframe using multiple columns of another dataframe" all over stack overflow and other sites but I am only getting subjects like "how to merge columns" or "how to concatenate dataframes". But I have not seen how to merge column names.</p> <p>I have <code>tsv</code> files t...
2
1,491
Read Post Data submitted to A HTML Form
<p>I've written my HTML webserver in VB.NET and I don't know how to make it read data values submitted in HTML forms. Please help me My web server only responds to HTTP 'GET' requests. My sample cod is below it is reading the URL rather tan the data contained in the forms`</p> <pre><code> ' Extract path and filenam...
2
1,999
Function not modifying passed parameter value
<p>I have the following function:</p> <pre><code>function validateField(target, field, field_check) { if(target.val().trim().length &gt; 0) { $.ajax({ url: '&lt;?php echo $html-&gt;url('/fonykers/validate_',true); ?&gt;'+ field + '/' + target.val(), ...
2
1,294
FlowDocument with InlineUIContainer (image, datagrid) issues when creating XPS
<p>I'm trying to save a FlowDocument as a XPS. I'm using .Net 4.0. The FlowDocument contains the following elements:</p> <pre><code> &lt;Paragraph&gt; &lt;InlineUIContainer BaselineAlignment="Center"&gt; &lt;Image Source="/MyNamespace;component/Images/logo.png"/&gt; &lt;/InlineUIContainer&gt; &lt;/P...
2
1,111
Pip package a django project
<p>The target is to create a pip package of a Django project. </p> <p>The goal is to make the web application quickly installable anywhere just by doing <code>pip install</code>.</p> <p>The use cases are 2 that I can think of:</p> <ol> <li><p>Manually start the application using a console_scripts like <code>client-w...
2
1,443
Push rejected, failed to compile Node.js app
<p>I have mean stack node js app , I am trying to deploy it to heroku , unfortunatelly I am getting the following message.</p> <pre><code>remote: Installing any new modules (package.json) remote: npm ERR! code EINVALIDTAGNAME remote: npm ERR! Invalid tag name "^6.0.0.beta.1": Tags may not have any...
2
1,043
Implementing WebSockets using SignalR
<p>I'm trying to use websockets into my ASP.NET MVC web-app but I can't implement, so here I'm trying to display each database update on the end-user web-page without any need to refresh.</p> <p>HTML:</p> <pre><code>&lt;span id="nbAlertes"&gt;&lt;/span&gt; &lt;ul id="listeAlertes"&gt;&lt;/ul&gt; </code></pre> <p>Jav...
2
1,063
Spring Boot Oauth2, "Access-Control-Allow-Origin" Error (Server returns 401)
<p>i have a rest server with oauth2 implemented. POSTMAN works good but our angular2 client wont work because of the following reason on console:</p> <blockquote> <p>Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Orig...
2
1,458
How to get Values from HTML String in Android
<p>I have a problem that I want to get different values from different tags from HTML String as, <code>&lt;p&gt;&lt;div class=\"image_wrapper\" style=\"width:320px;\"&gt;&lt;img name=\"tccimg_100322484_s\" **title=\"2011 Chevrolet Corvette 2-door Coupe Z06 w/2LZ Angular Front Exterior View\"** src=\"http://images.theca...
2
1,975
Form Validation and disabled button
<p><a href="http://plnkr.co/edit/xkOeosSqI8zCQkSkR7EW?p=preview" rel="nofollow"><strong>PLUNKER LINK</strong></a></p> <p>In above problem i have three radio buttons which let the user pay balance,minimum amount and other<br> amount.When user clicks on third radio button it opens up a div with input where user can ent...
2
1,105
Set text to textview via edittext
<p>I cant set text in an android textview item using an edittext:</p> <pre><code> public class MainActivity extends Activity { TextView textView1; private Button button1; private EditText editText1; private Editable e; private String ee; private SharedPreferences sh1; ...
2
1,080
Android Expandable List - OnClickListener
<p>I'm having trouble with setting an OnClickListener to list items in my ExpandableListActivity. The code structure matches the following example:</p> <pre><code> ExpandableListAdapter mAdapter; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Assign the adapter ...
2
1,109
Angularjs http request doesn't go in errorCallback
<p>I'm using angularjs to call my Rest web services but I have a problem with error handle. This is one of my http calls:</p> <pre><code>$http({ method: 'POST', url: "tr"+licenseSelected,//angular need string in url headers: {'Content-Type': 'application/json'}, data : updatedLicense, beforeSend: f...
2
1,548
Save, Open and Sort Excel attachments from a macro in Outlook
<p>I receive reports via outlook every 15 minutes. These reports actually come in Excel attachments. I only work 8 hours a day; the next day I usually have a build up of reports that have come every 15 minutes since the previous day. I have to then open each report individually and then sort them by header. </p> ...
2
1,787
MVC 5: Database table not being generated when program is run
<p>I have MVC 5 application. This is the Default <code>ApplicationUser</code> and <code>ApplicationDbContext</code> class which i have edited as per my need</p> <pre><code>public class ApplicationUser : IdentityUser { [Key] public Guid UserId { get; set; } [Required] public override string UserName { g...
2
5,231
ng-repeat track by $index returning no results in ionic cordova app
<p>Using the browser, both firefox and chrome, I am able to see my repeated items. However once the app is pushed to the device (android in this case) no results show. I am sure it is iterating through the total results, because I get a blank screen with 51 blank spots. If I don't use the <a href="https://stackoverflo...
2
1,264
Relative references must start with either "/", "./", or "../". When running on live-server
<p>I'm receiving an error of <code>Uncaught TypeError: Failed to resolve module specifier &quot;leaflet&quot;. Relative references must start with either &quot;/&quot;, &quot;./&quot;, or &quot;../&quot;</code></p> <p>I'm trying to run my app with <a href="https://www.npmjs.com/package/live-server" rel="nofollow norefe...
2
1,266
My app force closes on setcontentview when using the holoeverywhere library
<p>Hi I'm trying to make my app backwards compatible using holoeverywhere. In my app I have a tab activity and 3 holoeverywhere activitys. When I run my app on a 2.3.3 emulator it runs and my first tab is shown but if I switch to my second or third tab it closes unexpectedly. The error occurs in my second or third tab ...
2
5,480
Grouping Child Elements within Grouped Parent Elements XSLT
<p>I am working on combining XML elements using <code>for-each-group</code> and the problem I am having is that these XML elements have children elements that have children of their own. I would also like to combine the children elements as well.</p> <p>My input XML looks like this:</p> <pre><code>&lt;Root&gt; &lt...
2
4,217
Can't login with custom authentication backend
<p>I creating custom authentication backend using LDAP. I want to check is user exist in database, but "delegate" password check to LDAP (password changes often due to company policy).</p> <p>Backend work well when using django admin interface, but when I creating custom login page with FormView i getting following er...
2
1,604
Sort list alphabetically
<p>How can I get the resulting generated list of links sorted out alphabetically according to "sTitle"? My sort function on line 272 is not giving me the results I need. Please help.</p> <pre><code>&lt;script language="VB" runat="server"&gt; Function sectionTitle(ByRef f As String) 'Open a file for rea...
2
1,559
DNN7 Installation Error
<p>Whenever I try to Install DNN7 with or witout WebMatrix I got the same Error. I think tried every solution - gave a appropriate permission to the folder, true collation used. But not working. Whenever I install I get this error.</p> <p>Installation log: 10/10/2013 14:01:59 [ERROR] DotNetNuke.Services.Upgrade.Upgrad...
2
8,472
zooming an image view android
<p>I'm developing a program to guide students in my college to go around the building. The only problem now is with zooming. I tried this code to zoom in and out an image view and it is working but the only problem is that I want it to stop zooming out in a certain place or to stop at the original image size </p> <pre...
2
3,945
Use jquery to make chat boxes float like facebook
<p>I'm trying a make a chat script like a facebook, but my problem is when i delete a chat box , there place left empty, what i want is for example i have 3 chat boxes , so when i delete the first one i want the second one replace the first one and the third one replace the second one and so on. this is how i create c...
2
1,664
Cannot convert traditional for loop to for-each loop
<p>For some inexplicable reason, I cannot convert this loop into a more natural <code>for (var player in fizzPlayers) { ... }</code> loop:</p> <pre><code> for (var i = 0; i &lt; fizzPlayers.length; i++) { var player = fizzPlayers[i]; var val = parseInt(player.value); if (val != 0) { active.push(play...
2
2,540
Can't run android emulator for Xamarin.forms
<p>I've got a Xamarin forms app and am using Xamarin Studio on a Mac.</p> <p>I can debug my app successfully when running on <strong>iOS</strong> emulator, however, my app crashes straight away and doesn't give me a chance to find out what's going on when using the <strong>android</strong> emulator.</p> <p>An extract...
2
1,118
Windows service that runs a batch file
<p>I have developed a Windows service which runs on Windows server. The purpose of the service is to run a batch file on local system which further runs a Java-based thread. The problem is that when I log in to server using remote session the service starts normally but both batch file and Java thread run in the backgr...
2
1,567
Plotly Dash: How to change image on button click
<p>I had unknowingly added in the answer section of the following thread as I was trying to use that example to complete my usecase:</p> <p><a href="https://stackoverflow.com/questions/63811550/plotly-how-to-display-graph-after-clicking-a-button/69957171#69957171">Plotly: How to display graph after clicking a button?</...
2
2,154
Error installing FacebookConnect plugin in Phonegap Android app
<p>I created an android app (phonegap 2.0) and installed plugin: <a href="https://github.com/mgcrea/cordova-facebook-connect" rel="nofollow">https://github.com/mgcrea/cordova-facebook-connect</a></p> <p>This line: in res/xml/config.xml. The facebook-android-sdk.jar is under libs/ and added to build path.</p> <p>My a...
2
1,477