title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
org.json.JSONException: No value for id - IMPOSSIBLE TO SOLVE
<p><a href="http://www.androidhive.info/2014/10/android-building-group-chat-app-using-sockets-part-2/" rel="nofollow">http://www.androidhive.info/2014/10/android-building-group-chat-app-using-sockets-part-2/</a></p> <p>Hi,</p> <p>This is a tutorial about building a group chat app using socket programming. This app al...
2
6,812
Domain Class Field Type not Getting Mapped to Spring Data ElasticSearch
<p>I have a Domain Class of Books I use this for hibernate and elasticsearch both.</p> <pre><code>import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import org.springframework.data.elasticsearch.annotations.DateFormat; i...
2
1,855
Properties file causes exception on empty Spring Boot Project
<p>I created a Spring Boot project and it's empty, no other classes. I want to connect to my MySQL database so my properties file looks like this</p> <pre><code>spring.jpa.hibernate.ddl-auto = none spring.datasource.url = jdbc:mysql://localhost:3306/mydb spring.datasource.username = root spring.datasource.password = "...
2
6,759
asking password when clone or push - docker gitlab
<p>I just installed the latest version of gitlab with docker (<a href="https://hub.docker.com/r/gitlab/gitlab-ce/" rel="nofollow noreferrer">https://hub.docker.com/r/gitlab/gitlab-ce/</a>) and added my ssh key, but it still asks for a password when I try pushing to this docker gitlab.</p> <blockquote> <p>desktop system...
2
1,290
uninitialized constant ActionController::Caching::Sweeper
<p>When precompiling production environment I receive an <strong>uninitialized constant ActionController::Caching::Sweeper</strong> error (same with heroku). In the development environment and with localhost everything is working fine. Thx for any suggestions.</p> <pre><code>C:\Sites\code\myapp&gt;bundle exec rake ass...
2
3,484
Binding 2 ObservableCollections to Listview
<p>I'm new to WPF, and having trouble with the binding, have been searching for difference solutions, but nothing have helped. Got 2 Observable Collections, I want to be binded into to different columns of a listview. XAML code: </p> <pre><code>&lt;GroupBox Header="Search results" HorizontalAlignment="Left" Margin="10...
2
1,384
Weird structure member alignment in C++ / gSoap 2.8.2
<p>I've encountered a weird structure member alignment issue in C++. This happens when using gSoap 2.8.2. gSoap defines this struct:</p> <pre><code>struct SOAP_STD_API soap { short state; /* 0 = uninitialized, 1 = initialized, 2 = copy of another soap struct */ short version; /* 1 = SOAP1.1 and 2 = S...
2
5,035
How can i give a focus to a listBox in the constructor and when a new item was added?
<p>In the constructor i did:</p> <pre><code>if (listBox1.Items != null) { listBox1.Focus(); } </code></pre> <p>But when im running the program i cant move with the keyboards up down in listBox since the focus is on a button somewhere else in the Form. I need to click with the m...
2
1,292
Javascript - Magnific Popup not working when HTML Elements are generated using Javascript
<p>I have a problem regarding the magnific popup, so whenever i type the code in HTML, its working but whenever I try using Javascript to generate the HTML element that have popup menu, the popup not appear.</p> <p>Here my HTML Code to show the popup using HTML Code and its working</p> <pre><code> &lt;!DOCTYPE htm...
2
4,539
How to use Spring Data CouchBase 'findAll(Iterable<ID>)' Method?
<p>I'm trying to use Spring-Data-Couchbase.</p> <p>I want to get List from findAll(Iterable) method. I set view 'all' to my Production View.</p> <p>But, I meet the exception. How Can I use findAll(Iterable) method?</p> <p>Below is a Sample Code and exception.</p> <p>Document Class:</p> <pre><code>@Document public ...
2
1,235
Bootstrap/Datatables CSS shows in chrome but not firefox
<p>having a problem getting CSS to show in firefox. I have a bootstrap site with datatables and all is fine and dandy in chrome but a lot of the CSS is missing in firefox, and the datatables don't show at all. In the developer console for firefox I get a lot of "declaration dropped' which I'm assuming is affecting my o...
2
3,988
Installing an older version of python
<p>I am currently using a mac version 11.6.1 with Big Sur on it. I have the latest version of python (3.9) on it, however I need to use 3.6 for a project at work. I attempted to use pyenv to install this version but ran into a number of issues with pyenv. So, I next went to <a href="https://www.python.org/downloads/...
2
1,241
400 - Bad Request on Apache POST sending JSON
<p>I'm trying to make a REST call from my class using the Apache. But its giving the 400 exception when I print the response of the REST service. Kindly find the code below and let me know the changes that needs to be made to make it working,</p> <pre><code> List&lt;NameValuePair&gt; pickup = new ArrayList&lt;NameV...
2
1,336
How to invoke AWS Lambda function in account B (this Lambda in VPC) from Lambda in account A (Lambda in VPC)
<p>What I did:</p> <ol> <li>I created a VPC Peering connection between these accounts</li> <li>Internet Gateways also attached to each VPC</li> <li>Route Tables also configured (to allow traffic from both sides)</li> </ol> <p>Case 1:</p> <p>I successfully tested invoking Lambda function (in VPC B) from another Lambd...
2
1,255
animared plot two different colors and shapes in 3d in matplotlib python
<p>i try to animate two different classes "red dots" and "blue triangles". At the beginning they are all on the x-y plane and through the animation all of them should move along the z-axis. At the end it should look like on the picture.</p> <p><a href="https://i.stack.imgur.com/66OhN.png" rel="nofollow noreferrer"><im...
2
1,592
Logistic regression 100% test accuracy: What am I doing wrong?
<p>I am using tensorflow on mnist handwritten numbers. Here, I keep getting 100% accuracy on a test set when using logistic regression (I am expecting something much less accuracy). </p> <p>The following is the code I used. Can someone please point out what I am doing wrong? </p> <p>I must be somehow overfitting the ...
2
1,788
React Child component don't update when parent component's state update
<p>I'm working with Google place search API. When I fetch some Data from Google Place search API it only returns 20 records and gives a next page token for more results then I grab the <code>Place_id</code> for each place and then again I fetch all details of that place so I'm fetching data twice what I did is created ...
2
3,226
How to change encding of column names to utf 8 in R
<p>I've got a daata frame with Russian <code>colnames</code> in UTF-8. I do some lineer modeling with <code>purrr</code> and explore <code>coefficients</code> with <code>broom::tidy()</code>, then I receive a data frame with mixed column name encodings, which I cant pass to <code>girafe()</code>, it crushes with an err...
2
2,390
SQL to return rows even if there is no data
<p>I have some students are are awarded grades A to E at the end of the year. I find the percentage of students who have been awarded grades grouped by AssessmentCode using the following SQL.</p> <pre><code>SELECT '2014' as FileYear, AssessmentCode, AssessResultsResult as Grade, cast(count(*)*100.0/sum(co...
2
1,305
Unknown Script in my index.php, produce malware, Have i been hacked?
<p>I have a site. My site Was difficult yesterday, when open it with Google Chrome, instead of my site this page is shown:</p> <pre><code>Warning: Visiting this site may harm your computer! The website at http:... appears to host malware - Software that can hurt your computer or otherwise operate without your consent...
2
2,703
Getting error in installing tf2onnx on pip
<p>I am trying to convert my .pb model to .onnx and for that I am installing tf2onnx using pip. However, doing that I keep getting following error</p> <pre><code>C:\Users\HC&gt;pip install -U tf2onnx Collecting tf2onnx Using cached tf2onnx-1.9.3-py3-none-any.whl (435 kB) Collecting flatbuffers~=1.12 Using cached fl...
2
1,278
std::list<std::unique_ptr>: empty initializer list vs. default constructor
<p>The code</p> <pre><code>#include &lt;list&gt; #include &lt;memory&gt; class B; class A { std::list&lt;std::unique_ptr&lt;B&gt;&gt; bs; public: A(); ~A(); }; int main() { A x; return 0; } </code></pre> <p>obviously compiles. It doesn't link because <code>A::A()</code> and <code>A::~A()</code> ...
2
1,139
Chatbox layout with fixed header and footer
<p>I am trying to figure out a way to have my chatbox layout with a fixed header at the top and a fixed footer at the bottom all the while having the chatbox body scrollable and nests right up to both the fixed header and footer. I have tried a few different ways but still can't seem to get it just right and clean. </p...
2
1,108
Can't install apps with Eclipse ADT on my phone
<p>I would like to install and debug projects using Eclipse ADT. It finds the device and trys to install but then I get the errors below. The phone is a "HTC One S" and it is the Custom ROM "Codename Lungo One S" (4.3). The applications are the Kontalk project and the ApiDemos from the 17 (4.2.2) samples both build fo...
2
1,444
How to decode stack trace for a userspace process crash printed in kernel logs
<p>I have native sources compiling with Android NDK tool chain. This shared library is loaded by the mediaserver process running on the android device. Usually when any of the user space process crashes, the debugger daemon in android takes the stack trace of the crashing process and print it in logcat messages. But so...
2
1,576
Stencil component not rendering the updated tabs
<pre class="lang-js prettyprint-override"><code>import { Component, h, State } from '@stencil/core'; // import '@webcomponents/custom-elements'; import '@clr/core/icon/register'; import { ClarityIcons, plusIcon } from '@clr/core/icon'; ClarityIcons.addIcons(plusIcon); @Component({ tag: 'tabs-component', styleUrl:...
2
1,139
Python-like Byte Array String representation in C#
<p>Here is the method I am using to get this string representation:</p> <pre><code> public static string ByteArrayToString(byte[] ba, string prefix) { StringBuilder hex = new StringBuilder(ba.Length * 2); foreach (byte b in ba) { if (prefix != null) { ...
2
1,167
Eclipse Galileo won't start after OS X update to 10.6.3
<p>I have just updated os x to 10.6.3 and no Eclipse won't start the logs show the following error, but I can't figure it out. Can anyone shed any light?</p> <pre><code>!SESSION 2010-03-30 10:06:38.244 ----------------------------------------------- eclipse.buildId=M20090917-0800 java.version=1.6.0_17 java.vendor=Appl...
2
1,551
How do I add a score counter to this snake game?
<p>I want to be able to display the score to players, and have the score go up by 10 every time you get an apple. To do this though, I need to add extra space on the window to allow room for the score counter, but I can't find where to do that in my code.</p> <pre><code>import java.awt.Color; import java.awt.Dimension...
2
2,761
fail Failed to execute 'send' on 'WebSocket': Still in CONNECTING state
<p>there: I am want to send some data </p> <p>here is the code : filename:[wx-resource.ts]</p> <pre><code>import {Promise} from 'es6-promise'; declare const wx: any; class WxResource { public socketOpen: boolean = false; public count: number = 0; public socketState; public reqObj: any = { url: 'http:/...
2
1,732
Parsing XML in Swift with NSXMLParser
<p>I have the following XML structure which I want to parse:</p> <pre><code>&lt;plist version="1.0"&gt; &lt;dict&gt; &lt;key&gt; PALABRA &lt;/key&gt; &lt;array&gt; &lt;string&gt; CATEGORY &lt;/string&gt; ...
2
1,213
Castle Windsor 3 Interceptor not releasing components created by a typed factory but 2.5.4 did. Why?
<p>This is a similar pattern to ones stated elsewhere and detailed <a href="http://kozmic.pl/2010/03/11/advanced-castle-windsor-ndash-generic-typed-factories-auto-release-and-more/" rel="nofollow">in this blog post</a>. I have this working using Windsor 2.5.4 pretty much as stated in the blogpost, but decided to switch...
2
1,956
Apache Flink: ClassNotFoundException on remote cluster
<p>I'm running into a ClassNotFoundException only when I run my application on a standalone cluster (using flink cli). If i directly run the main class in my IDE, it's working fine. But using the following cli, it throws error:</p> <p><code>./bin/flink run /mnt/MykafkaConsumerApp.jar</code></p> <p>This is a spring bo...
2
10,011
Error "no suitable constructor found for FirebaseListAdapter()" in Android
<p>I have no idea about neither <code>Firebase</code> nor <code>Arduino</code>.... But I wrote this code, referring to the video of David East. So I am getting an error, please help me solve it.</p> <p>The error is:</p> <blockquote> <p>Error:(66, 52) error: no suitable constructor found for FirebaseListAdapter() ...
2
1,345
passProps throws 'Error calling RCTEventEmiter.receiveTouches' (react-native-navigation)
<p>I'm trying to pass some data to a modal screen with react-native-navigation pacakage 1.1.65 (<a href="https://github.com/wix/react-native-navigation" rel="nofollow noreferrer">https://github.com/wix/react-native-navigation</a>)</p> <p><strong>I have two cases</strong> :</p> <h2>First one</h2> <pre><code>export de...
2
2,135
RxJava Backpressure (Fast producer slow consumer)
<p>i have execution method which does some time consuming network calls on io thread</p> <p>example</p> <pre><code>/** * network call * @param value * @return */ private Observable&lt;Integer&gt; execute(final int value) { return Observable.create(new Observable.OnSubscribe&lt;Integer&gt;() { @Overrid...
2
1,474
Spring JPA Transaction Manager does not rollback
<p>I recently moved from Hibernate to JPA. Now I notice two things in my code.</p> <ol> <li><p>Methods in my services do not need <code>@Transactional</code> anymore to perform insertion to the database.</p></li> <li><p>Transaction never get rolled back even if there's any exception.</p></li> </ol> <p><strong>applica...
2
4,626
ECDH between C# and javascript
<p>I'm building a web API and I need to implement ECDH to perform an end-to-end cryptography. At the server side I have a C# application and at the client side I have a Javascript application.</p> <p>I'm able to exchange the keys, generate the private keys and encrypt the messages, but I'm having problems decrypting i...
2
1,969
How to retrieve the download URL of an image from Firebase Storage?
<p>I am watching an old tutorial about Firebase Storage. The <code>getDownloadUrl()</code> method from <code>UploadTask.TaskSnapshot</code> is no longer existent, and the <a href="https://firebase.google.com/docs/storage/android/upload-files#get_a_download_url" rel="nofollow noreferrer">documentation</a> fails to be cl...
2
1,169
Quick, sleek and simple way of adding minor ticks in ggplot2?
<p>This question has been raised a number of times on StackOverflow over the years (see <a href="https://stackoverflow.com/questions/25944955/adding-minor-ticks-and-labels-to-ggplot2">here</a> and <a href="https://stackoverflow.com/questions/43334538/minor-ticks-not-showing-in-ggplot2-r">here</a>), however I'm yet to c...
2
1,501
Integrating Birt reports in JSP
<p>While running my report on the Sever I'm getting this Exception"</p> <pre><code>javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagSupport org.apache.jasper.servlet.JspServlet.service(JspServlet.java:275) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) root c...
2
1,073
ffmpeg frame rate issue h264+ass to mkv
<p>I'm using this command for ffmpeg:</p> <pre><code>ffmpeg -i 1.h264 -i ass1.ass -map 0 -map 1 -c copy test.mkv </code></pre> <p>The h264 file is 30 fps... the mkv plays at 25fps so it runs slow</p> <p>The h264 come off my hd webcam. If i change the frame rate on the camera to 25 it works fine and 15fps wilk play ...
2
1,108
Boost 1.74.0 Asio Executor Migration Issues
<p>Related (but not the problem), I am trying to get a <a href="https://github.com/equalitie/cpp-upnp" rel="nofollow noreferrer">UPnP library</a> to work. It <a href="https://github.com/equalitie/cpp-upnp/blob/5ba742accded434523c6b9dabae72d062927ead8/cppupnp-config.cmake#L5-L15" rel="nofollow noreferrer">appears to be ...
2
3,634
Error when run: http://localhost:8080
<p>Current I have 1 bug when I run 1 project of Spring 1- Create class common: BlogMvcApplication.java</p> <pre><code> package blog; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class BlogMvcApplicatio...
2
1,052
AJAX returns whole web page
<p>I am using Ajax to do a live search and all i want is the data t be displayed in a div called "results". However when im ding the search, it displays the search form again and then the results div. How do I go by solving this? Here is the ajax code:</p> <pre><code>function finding(str) { if (str.length==0) ...
2
1,208
TKinter focus command not working on the widget of the second called form from stack of forms
<p>I used the codes (below) from <a href="https://stackoverflow.com/questions/7546050/switch-between-two-frames-in-tkinter/38306342#38306342">Switch between two frames in tkinter</a> (thanks to <a href="https://stackoverflow.com/users/7432/bryan-oakley">Brian Oakley</a>) on my first pilot project using Python3.5 + Tkin...
2
1,468
ASP.NET MVC / JQuery/ Javascript: view will not refresh after searching (and trying to load) new data
<p>This is my first post of stackoverflow. I've spent the past month trying to solve this on my own, extensively searching Google and this website. Here's my problem:</p> <p>I have a website where users can search for cases. When they find a case, their results are loaded on a case details page. Users normally search ...
2
2,968
How to make a Standalone exploit with a custom payload?
<p><strong>First of all, what I want to achieve:</strong></p> <p>I want to exploit a device with a script (in python) without metasploit (therefore standalone) and run a custom programm on the exploitet device. This should happen automatically (I just want to run the script and it does everything for me).</p> <p><str...
2
2,176
Rails App On Heroku - Status 500 Error => Blank White Page
<p>I have a Rails app on Heroku staging server and everything has gone well except for the error pages aren't working. Every time I get a "status: 500" error, it results in a blank white page, NOT the 500.html static error page. </p> <p>I have a static 500.html page in the my_app/public folder, and I can access it in ...
2
1,647
Android dependencies inconsitant
<p>I am using firebase database and have updated my dependencies.</p> <pre><code>dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:24.0.0' compile 'com.android.support:support-v4:24.0.0' compile 'com.firebase:firebase-client-androi...
2
6,217
PHP upload images form + resize through GD library. But it fails over 8mb
<p>I make a php script that receive from POST 4 image, than store them and create the thumbs trought GD php library. The problem is that it works only if i load 2 photos 4mb each (or 4 photos 2 mb each, or less; in fact max 8 mb). why? i check the value of memory_limit (64mb), upload_max_filesize (25mb) and max_file_up...
2
1,821
Rails 4 - capistrano 3 doesn't deploy last commits
<p>We have a production environment for a Rails 4 app with Apache, Phusion Passenger, and Capistrano 3, and a remote bitbucket repository. The Capistrano's "cap production deploy" works well, and executes without errors. But when we go the "current" folder on the remote server, and do a "git log" command, the last comm...
2
1,629
(Unknown Source:7) error in kotlin android
<p>I just converted my java project to kotlin in android and after that I'm facing following issue. This isn't indicating whether the error is?</p> <pre><code> Process: com.app.furr, PID: 12420 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.app.furr/com.app.furr.DashboardActivity}: java.lan...
2
2,477
collections.sort(list, comparator) using comparator DEBUG
<p>I am trying to use <code>collections.sort(list, comparator)</code> to sort a <code>&lt;Map.Entry&lt;String, Integer&gt;&gt;</code> object. The code compiles correctly, but I get the following error during runtime. This is my first time using a comparator and collections.sort, but cannot seem to find what is causing...
2
2,827
System.Threading.Channels ReadAsync() method is blocking execution
<p><strong>Overview</strong></p> <p>I am attempting to write an <code>IAsyncEnumerable&lt;T&gt;</code> wrapper around an <code>IObserver&lt;T&gt;</code> interface. At first I used a <code>BufferBlock&lt;T&gt;</code> as the backing data store, but I found out through performance testing and research that it is actually ...
2
1,279
Prevent Firefox from bypassing the disk caches in a request (how to disable "Race Cache With Network")?
<p>Since version 59, Firefox has a feature called Race Cache With Network (RCWN). If Firefox detects that the disk is slow, it can decide to start a network requests immediately without waiting for the cache. It is a trade-off: if the network requests wins the race, latency improved; if it the cache wins, network bandw...
2
1,239
PHP and HTML table search using javascript
<p>I want to create a search box, that only displays matched entries as search phrases are typed; the same in function as described here:</p> <p><a href="https://stackoverflow.com/questions/9127498/how-to-perform-a-real-time-search-and-filter-on-a-html-table">How to perform a real time search and filter on a HTML tabl...
2
1,370
World map + slider in Altair (Python)
<p>I would like to build an interactive chart with world map with COVID-19 confirmed cases per country and date slider using Altair library in python.</p> <p>Data format:</p> <pre><code>&quot;country_region&quot;,&quot;date&quot;,&quot;confirmed_cases&quot; &quot;Afghanistan&quot;,2020-01-22,0 &quot;Afghanistan&quot;,2...
2
1,099
Swift arrays/collections memory management
<p>I've spent over a week reading various articles online &amp; StackOverflow Q&amp;A on memory management of Swift arrays within <code>UIViewController</code>, I'm still getting crashes in my app. I hope you can help.</p> <p>I have a parent class controller and multiple subclasses (simplified using examples) that inh...
2
1,095
Can't display patches with mplleaflet
<p>I'm trying to display a circle of fixed size in a leaflet map. </p> <p>I tried with <code>.add_artist()</code>(see <a href="https://stackoverflow.com/questions/46305778/plotting-a-circle-in-leaflet-using-add-artist">here</a>) and I'm now trying with <code>.add_patch()</code></p> <pre><code>import mplleaflet import...
2
1,631
findViewById not finding views from relevant activity
<p><strong>EDIT: Problem Solved after rebuilding the project.</strong></p> <p>I am making a app which shares data between two activities. Name of two Activites : 1. MainActivity 2.ScorerActivity</p> <p>When I try to make instance of a TextView object int the ScorerActivity the findViewById method finds the id from th...
2
3,832
getting json data null in struts2 action class
<p>//I am developing a web application using struts2 framework. I am new to json and trying to send json data via ajax to action class.But getting null values in action class//</p> <p>Step1: //Implemented json3.min.js//</p> <pre><code>var iprodReportsViewReportSqlQueryDetails={ rtemplateSqlquery : sqlQuery, ...
2
3,961
Core Data exception error - Invalid fetch request: HAVING with no GROUP BY with userInfo of (null)
<p>I am getting a runtime error saying:</p> <blockquote> <p>Invalid fetch request: HAVING with no GROUP BY with userInfo of (null)</p> </blockquote> <p>At the place in my code that says "// error here":</p> <pre><code>let request = NSFetchRequest&lt;NSFetchRequestResult&gt;(entityName: CoreDataStrings.entityAffirm...
2
3,071
spinner selected item change event triggers in initialization
<p>In my android app I have a spinner that I initialize with some categories</p> <pre><code>public void loadData() { Thread t=new Thread(new Runnable() { @Override public void run() { try { String link="http://"+Static.host+"/allcategories/?format...
2
1,231
How to reload DFP ad on ajax success?
<p>BACKGROUND STORY: Everytime a new search results is done, server will give whole page HTML back. This includes the ad (that has new targetting, ID, etc). </p> <p>I need to re-load one of the ads from DFP, that is located inside search results wrapper (content is updated via AJAX). This is my current code: <div cla...
2
2,620
Entity Framework 6 - Group by then Order by the First() takes too long
<p>I really need help with this one and couldn't find related answers after hours of searching. </p> <p>MySQL, Entity Framework 6, database with a few millions of records, record looks like:</p> <pre><code>Indexint(11) NOT NULL TaskIDint(11) NOT NULL DeviceIDbigint(20) NOT NULL Commentslongtext NULL Extended...
2
2,227
java.net.ConnectException : Connection timed out with spring boot application
<p>I deployed a springboot application on a linux VM. Then send the postman request (HTTP GET) to the endpoint. However, I got connection timed out while I'm NOT getting this error when I deployed it to another machine in the same network (LAN). What should be possible reasons this? How can I enable tomcat log for look...
2
6,737
pkg_resources.DistributionNotFound: The 'wheel>=0.26; python_version >= "3"' distribution was not found and is required by tensorboard
<p>When I was installing the ml-agents from unity,i encountered a problem. i was not able to fix it at this moment. I am running an env through anaconda. i entered the command: <code>mlagents-learn</code> to verify the installation</p> <pre><code>(unity_envIAJ) C:\Users\Rui\Documents\GitHub\ml-agents-release_10&gt;mlag...
2
1,630
Firefox plugin to click button download a file and post it to another server
<p>I have access a website that has a simple button (I dont own the site and dont have access to the source) to download a document. I am using the code below to execute this and it seems to work ok but is glitchy</p> <p><strong>Objective</strong> </p> <ul> <li><p>I want to download the file </p></li> <li><p>Post the...
2
1,507
Negative Fill color in AreaSpline Graph
<p>I want to fill area color above the spline in area spline chart. I have tried to set negative fill color but no result. Can anyone let me know how to fill area color above the spline rather then below? Any help will be appreciated.</p> <pre><code>$(function () { $('#container').highcharts({ char...
2
1,309
Can Delphi XE5 compile a .so library that can be loaded in Java with 'System.loadLibrary?
<p>I have previously successfully compiled a .so library written in Pascal with the Free Pascal FPC compiler. That library loads successfully in Android Java with System.loadLibrary, and its methods can be used successfully via JNI in Android Java code.</p> <p>However, new code that has been compiled with Delphi XE5 a...
2
9,248
Adding Inbound Rewrite Rule in DSC script does not work
<p>As the title says I'm configuring Rewrite rules for Reverse Proxy functionality with:</p> <ul> <li>IIS 8.5</li> <li>Windows Server 2012R2</li> <li>URL Rewrite 2.1</li> <li>Application Request Routing 3.0</li> <li>Powershell 5.1</li> </ul> <p>For this I'm using Powershell DSC, setting the configuration in a Script ...
2
1,889
Passing Iterated list of values from controller to view in Asp.net mvc 4
<p>I have a controller which checks for list of urls and returns the httpstatus code, description and message to the view. Everytime i debug my solution it goes through the list of urls but it only returns the status of first url.</p> <p>How can i return the status of all the list of urls? Here is my sample code </p> ...
2
1,170
Can't run specflow tests from jenkins and `runtests.cmd` file
<p>I'm trying to run specflow tests from jenkins but all the tests are running expect specflow tests (spec flow tests should be fail - assert 1==2).</p> <p><strong>Note:</strong> Using visual studio 2017, all the tests including spec flow are running as expected.</p> <p>Jenkins configuration: (no errors but with warn...
2
1,886
Multiple bindings from ReactiveUI search using ObservableAsPropertyHelper<>
<p>I have a working implementation of a ReactiveUI asynchronous search routine within an WPF MVVM application based off of the following (legacy) example: </p> <p><a href="http://blog.paulbetts.org/index.php/2010/07/05/reactivexaml-series-implementing-search-with-observableaspropertyhelper/" rel="nofollow">http://blog...
2
1,637
IncompatibleClassChangeError with Maven - Jersey - Tomcat
<p>I have a problem with rest services. The maven build finishes successfully and tomcat starts normally. However I can't reach service classes. Where is the problem? Any help would be appreciated!</p> <ul> <li>Java 1.8</li> <li>Tomcat 8.0.35</li> <li>Maven 3.0.5</li> <li>JaxRs 2.23.2</li> </ul> <p>Pom.xml</p> <pre>...
2
8,487
android run failed Error:Execution failed for task ':app:compileDebugJavaWithJavac'
<p>The Android studio build is successful, but when I click run app the following error appears:</p> <blockquote> <p>Error:Execution failed for task ':app:compileDebugJavaWithJavac'. Compilation failed; see the compiler error output for details.</p> </blockquote> <p>Running <code>./gradlew complileDebug --stackt...
2
1,922
Tensorflow object Detection with OpenCV export Text of objects detected
<p>I am working with Object Detection using Tensorflow and openCV on Raspberry pi 3B+. I am pretty beginner and don't know much inside the actual working of it. So I saw a tutorial <a href="https://www.youtube.com/watch?v=npZ-8Nj1YwY&amp;feature=youtu.be" rel="nofollow noreferrer">this</a>. So basically it is detectin...
2
3,268
No class definition found error occurs while trying to run the lucene app from command line
<p>I'm a beginner to lucene and I had tried to run a sample app (HelloLucene.java) given in the website <a href="http://www.lucenetutorial.com/lucene-in-5-minutes.html" rel="nofollow noreferrer">http://www.lucenetutorial.com/lucene-in-5-minutes.html</a>. The code was successfully compiled and a class file (HelloLucene....
2
1,133
CTE in subQuery
<p>I have a scenario to display data from 2 tables combined. First table Named 'DayTable' consists of daily plan and actual. Second table named 'MonthTable' consists of Monthly plan and actual. I need to display last 6months data and the current month daily data. So i wrote the query like below i for the expected outpu...
2
1,341
dnx does not load correct .Net libraries
<p>I am trying to run a .Net WebApi using dnx and kestrel on my CentOS machine, and I am getting a lot of "The type or namespace 'blah' does not exist in the namespace 'blahblah'" errors, which hints, that dnx is for some reason using some old assemblies, which indeed do not have the latter defined. By this moment I ha...
2
1,087
PHP set variable in function within switch within foreach
<p>I need to declare a bunch of variables within a function based on data which is looped through using a <code>foreach</code> with a <code>switch</code> statement with another <code>foreach</code>. I think I'm misunderstanding the scope of the variables I'm using, any help would be great. </p> <pre><code>class Users ...
2
1,386
java.util.zip.ZipException: duplicate entry: javax/inject/Inject.class
<p>I have seen similar responses to the below question. Sorry but i could not fixed it out trying multiple things so I am asking it again. Whenever I am trying to build my app, the gradle build throws me the below error stating ...due to duplicate entry of javax/Inject class. This only occurred when I am trying to put ...
2
1,147
How can I extend Identity with custom attributes in ASP.NET MVC?
<p>I seem to have a hate/love relation with the Identity. I love it because it is a complete solution for most applications. But I hate it because extending is not an easy task. I feel it is more complected than it should be.</p> <p>I am trying to add custom attributes and foreign keys to my user model but it seems to...
2
1,469
LambdaMetaFactory with concrete implementation of generic type
<p>I am trying to use Java's <code>LambdaMetaFactory</code> to dynamically implement a generic lambda, <code>Handler&lt;RoutingContext&gt;</code>:</p> <pre><code>public class RoutingContext { // ... } @FunctionalInterface public interface Handler&lt;X&gt; { public void handle(X arg); } public class HomeHandl...
2
1,220
pandas groupby report empty bins
<p>I want to make a 2d histogram (or other statistics, but let's take a histogram for the example) of a given 2d data set. The problem is that empty bins seem to be discarded altogether. For instance,</p> <pre><code>import numpy import pandas numpy.random.seed(35) values = numpy.random.random((2,10000)) xbins = nump...
2
1,282
Bootstrap-ui datepicker : how of have an empty ng-model?
<p>In an angular project, I have an bootstrap-ui datepicker which is used to provide info on the date when an invoice has been paid.</p> <p>Initially, upon creating the invoice, as it has not been paid and so I should have an ng-model variable indicating null or something like that :</p> <pre><code>$scope.invoice.Pay...
2
1,238
Powershell ADSI: Can I query the local Administrators group using a SID?
<p>I am in a multilanguage client environment. The local administrators are &quot;Administratoren&quot;, &quot;Administrators&quot;,&quot;Administradores&quot;,&quot;Administrateurs&quot; and so on. This works to get the group members using Invoke-Expression:</p> <pre><code>PS C:\&gt; Get-LocalGroupMember -SID &quot;S-...
2
1,332
mailgun send email to multiple users
<p>i have the following mailgun.php file:</p> <pre><code>define('MAILGUN_URL', 'https://api.eu.mailgun.net/v3/my_domain'); define('MAILGUN_KEY', 'xxxxxxxxx'); function sendmailbymailgun($to,$toname,$mailfromnane,$mailfrom,$subject,$html,$text,$tag,$replyto){ $array_data = array( 'from'=&gt; $mailfromnane ...
2
1,034
Pointer Wrapper: dereference operator
<p>I'm pretty new to C++ and as an exercise (and perhaps eventually .Net utility) I'm doing a pointer wrapper (actually in C++/CLI, but this applies to C++ as well). This pointer wrapper (called <code>Apont</code>) currently behaves just like a pointer would, as the test below can show, if lines marked <strong>1.</stro...
2
1,521
can i modify tabs of a template using API in docusign
<p>Reading the API documentation i understood that I can edit the tabs of recipients for an envelope which is created/sent</p> <p>However i am trying to undertsand can i also modify tabs for a template?</p> <p>When i used the same request, as the one below i am getting error</p> <p>Any reference would be appreciable...
2
3,872
I can`t see my created tables in HSQLDB, what could be the issue?
<p>My environment is HSQLDB, Maven and spring-boot. I have created 2 entity POJOs. I do see the <code>CREATE TABLE</code> command under <code>testedb.log</code> file. But when I open <code>Data Source Explorer</code> in Eclipse, I can`t see my tables, albeit I do see all the system tables.</p> <p>I have looked at this...
2
1,333
Why does Change Data Capture (SQL Server) job auto stop after specific duration?
<p>I'm currently synchronizing data between Maria &lt;--> MSSQL. That is 2 way sync. I used SQL Server on Windows and everything works well until several days before... I switched all the test DB to Linux server, so MSSQL was run on a Docker container (the official image).</p> <p><strong>My Env</strong></p> <ul> <li>...
2
1,275
Chromedriver crashes when lauched from watir-webdriver
<p>I have the following gems and I also have the latest Chrome driver 2.9 version.</p> <pre><code>builder (2.1.2) bundler (1.6.0.pre.2) childprocess (0.4.1) coderay (1.1.0) cucumber (0.8.7) data_magic (0.17) diff-lcs (1.1.3) faker (1.2.0) ffi (1.9.3 x86-mingw32) gherkin (2.1.4 i386-mingw32) i18n (0.6.9) json_pure (1...
2
1,959
Kadira/mup.js Error: Cannot find module 'fbjs/lib/invariant'
<p>$ npm -v 3.10.3</p> <p>$ node -v v4.5.0</p> <p>I tried to setup mup.js from kadirahq/mup but after</p> <p>cd .deploy</p> <p>mup setup</p> <p>I don't get any status of whether it setup properly or not, just returns next line as opposed to mupx setup which did provide SUCCESS MUPX setup messages along the way.</p...
2
2,249
How to pass object data from parent to child components?
<p>I would like to know how to make the contents object visible in the video.vue component.</p> <p>This is the <strong>Video.vue</strong> components. This component is where I want to access the content object that is defined in the <strong>Home.vue</strong> component. </p> <pre><code>&lt;template&gt; &lt;div&gt; ...
2
2,121
C# retrieve multiple XML attributes from specific elements for manipulation
<p>Beginner C# person here and I have been wrestling with a particular scenario that i'd like your help with. I am in need of processing an XML file whose content can be different each time I read it. Each time I read that document, I need to search for specific attributes within specific elements. The composition of t...
2
1,639
WPF. How to make a binding into Brush to property of ControlTemplate?
<p>Good afternoon! </p> <p>I made control. There is it code:</p> <pre class="lang-cs prettyprint-override"><code>public class ShutterWidget : Control { // this Control changes own Background property (changes brush) in some time } </code></pre> <p>And ResourceDictionary with style for it:</p> <pre class="lang-xml p...
2
1,622
Unable to make successful requests using nest.js HttpService
<p>I'm trying to make a request using nest.js HttpService as specified in their docs but I keep getting an error that I can't make sense of.</p> <p>I have imported the HttpModule</p> <pre><code>import { Module } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.s...
2
1,063
Swagger not opening when running in Docker container
<p>In my project I have set up Swagger with Swashbuckle like so in my Startup.cs:</p> <pre><code>public void Configure(IApplicationBuilder app, IHostingEnvironment env) { app.UseSwagger(); app.UseSwaggerUI(c =&gt; { c.SwaggerEndpoint("/swagger/v1/swagger.json...
2
1,069