title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to rename result assembly to have in installed in .m2
<p>I have multimudule project. One of module is assembly, having descriptor to put core (library) and examples in one zip. </p> <pre><code>&lt;assembly&gt; &lt;id&gt;assembly&lt;/id&gt; &lt;formats&gt; &lt;format&gt;zip&lt;/format&gt; &lt;format&gt;dir&lt;/format&gt; &lt;/formats&gt; &lt;includeBaseDirect...
2
1,594
Kotlin: Argument Type Mismatch when passing Array as vararg parameter
<p>I have a simple interface and its implementation:</p> <pre><code>interface Iface { fun doSomething(s: String) } class IfaceImpl : Iface { override fun doSomething(s: String) { println("Doing the job, s = $s") } } </code></pre> <p>Also, there are two identical (at least I cannot spot the differ...
2
1,097
Programmatic login using the Android Facebook SDK
<p>I've read through the documentation and source code and other relevant questions here, but I am still having an issue authorizing/logging into my app using the Facebook SDK 3 for Android.</p> <p>I do not want to use the "Login" button provided.</p> <p>Here is the relevant code:</p> <p>On the Activity.onCreate I s...
2
1,135
yii2 Trying to copy a directory to itself or a subdirectory
<p>when loading kartik\detail\DetailView,i came across:</p> <p>Invalid Parameter – yii\base\InvalidParamException</p> <p>Trying to copy a directory to itself or a subdirectory.</p> <p>and the error stack is below here</p> <pre><code>1. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/helpers/BaseFileHelper.php ...
2
3,237
Docker container not starting with ubuntu image (docker start)
<p>If I run a container directly from an Ubuntu image using <code>docker container run ubuntu</code>, I can easily restart it using a <code>docker start &lt;CONTAINER ID&gt;</code>. However, I run the container using the image by <code>docker run &lt;ID IMAGE&gt;</code>, once I exit the pseudo-terminal, It's completely...
2
1,605
XAMPP- MYSQL shutdown unexpectedly
<p>I am facing this problem from today morning . <pre><br> 11:30:25 AM [mysql] Error: MySQL shutdown unexpectedly. 11:30:25 AM [mysql] This may be due to a blocked port, missing dependencies, 11:30:25 AM [mysql] improper privileges, a crash, or a shutdown by another method. 11:30:25 AM ...
2
9,054
Error timeout reached before the port went into state "inuse"
<p>Faced a problem with connection of postgresql to keycloak. In keycloak I tried to use 5433 and 5432 port in &quot;<code>KEYCLOAK_DATABASE_PORT</code>&quot;, but none of them is not working</p> <p><strong>docker compose</strong></p> <pre><code>version: &quot;3.8&quot; volumes: postgres_data: driver: local ser...
2
1,555
How to overcome kinect sdk 2 installation failure on windows 10
<p>A Windows 10 laptop fails during Kinect SDK v2 installation. The SDK was previously working on this machine when the OS was at either Windows version 8 or 8.1. I have since upgraded to Windows 10 and am unable to reinstall the Kinect SDK 2 (which had been uninstalled in the interim). </p> <p>There is similar quest...
2
3,805
SQLite Getting only last record not all the Records
<p>I have total <strong>4 records</strong> in <em>ecare</em> table, where <code>2 records</code> status is <strong>sent = 1</strong>, and other <em>2 records</em> status is <code>sent = 0</code></p> <p><strong>RECORDS</strong></p> <pre><code>1st Record : Track 1 [sent = 1] 2nd Record : Track 2 [sent = 1] 3rd Record...
2
1,150
Localisation in Asp.Net Core 3.1 not working after updatig from versin 2.2
<p>We had a website in Asp.net core version 2.2. We have updated the website from version 2.2 to 3.1.</p> <p>The same code we were using for the localization in version 2.2 is not working after updating the application to version 3.1.</p> <p>I have put the code on <a href="https://github.com/gurpreet42/MyAppV3" rel="...
2
1,452
Monit script not working to restart service
<p>This is my first post so please be patient with me!</p> <p>I have tried to create script that checks if service is unreachable (http error code), then Monit should restart program (Preview Service). Monit is run as user "spark".</p> <p>This is phantomjs-check.sh code:</p> <pre><code>#!/bin/bash # source: /opt/mon...
2
1,396
ClassCastException with Spring-Websocket because of Tomcat ServerContainer
<p>While trying to connect to Spring Websocket with SockJS, I am getting an error</p> <pre><code>org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.web.socket.sockjs.SockJsException: Uncaught failure in SockJS request, uri=http://localhost:8083//su...
2
1,785
How Remove Recycler Separator/divider programmatically or using xml property
<p>i am developing a grid cardview using recyclerview and card view in android v25 , facing behavior of Android recycler view has a divider line that acts as a separator between two rows as shown in the below image</p> <p><img src="https://i.stack.imgur.com/reZvQ.png" alt="Screen shot from emulator "></p> <p>I want ...
2
1,710
Auto-hiding scrollbar not showing as expected with tkinter pack() method
<p>I'm building the GUI for my Python app using tkinter, and I want the app to have a scrollbar that hides and shows when needed so that the window doesn't always have to be full size. I'm programming the code primarily on MacOS, and then Windows (because by the time I get something to work on MacOS getting it work on ...
2
1,286
Text-Align: Center not centering properly
<p>I am trying to create a navbar with a centered title and links to other pages on the site on the right, but the title does not seem to be centering, even when I am using <code>text-align: center</code>. In order to keep the title and links to other pages on the same line, I am using a flexbox. Is there something wro...
2
1,137
Inheritance with Flex mxml files - screenshot attached
<p>In a Flex mobile app I have 5 <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/View.html" rel="nofollow noreferrer">View</a>s, handling OAuth logins through 5 different social networks - including Google+ and Facebook. The <code>View</code>s are being selected through the ...
2
1,321
Calculate average exchange rate for time period
<p>In Django I have model similar to this example:</p> <pre><code>class Currency(models.Model): name = models.CharField(max_length=3, unique=True) full_name = models.CharField(max_length=20) class ExchangeRate(models.Model): currency = models.ForeignKey('Currency') start_date = models.DateFiled() ...
2
1,778
Java Criteria API query for bridge table with composite primary key
<p>What is the Java criteria api query equivalent of the following SQL? I am new to this and have tried a few things but none worked.</p> <pre><code>SELECT p.* FROM Product p RIGHT JOIN store_has_product shp ON p.id_product=shp.id_product WHERE shp.id_store=1; </code></pre> <p>TableA: store</p> <p>Bridge Table: sto...
2
2,472
PowerShell DSC Service Missing Members
<p>I am trying to use DSC in PowerShell to deploy a service. According to the <a href="http://technet.microsoft.com/en-us/library/dn282120.aspx" rel="nofollow" title="Microsoft documentation">Microsoft Documentation</a>, the service resource has the following properties that can be set:</p> <ul> <li>Name</li> <li>Ensu...
2
1,178
ReactJS: ascii art issue after JSX transformation
<p>I'm trying to get an ascii art to be properly rendered by my React application.</p> <p>After jsx-transformer is executed my art looses the format and renders pretty strange in the browser</p> <p><strong>My code:</strong></p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt;...
2
1,269
sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) ENUM type
<p>I am using postgres and sqlalchemy to setup a reservation table that holds information on specific job applications. When a user applies for a job, the default status of the application is 'pending.' Once the reservation is accepted, the status of the application changes. I'm implementing an enum type to switch betw...
2
1,037
Appcelerator and CommonJS modules (caching and circular references)
<p>Here's the thing:</p> <p>I'm using the CommonJS way of making my mobile (iPhone/Android) application modular. No surprise there. But there's one thing that I just can't get my head around.</p> <p>CommonJS lets me create STATIC private variables, which lets me create singletons at ease. This, I think at least, is b...
2
1,135
How to access propertyvalue in FluentModelValidator
<p>How can I access property value in Fluent Model Validator?. Below is the validator class for ModelA. ModelA has a bool property named isValid. How can I access the boolean value within this class?.</p> <pre><code> public class ModelAValidator : AbstractValidator&lt;ModelA&gt; { public ModelAValidator() ...
2
1,216
docker-compose health check passed, still unhealthy
<blockquote> <p><em><code>condition</code> was removed compose spec in versions 3.0 to 3.8 but is now back! Using version of the compose spec v3.9, you can use <code>condition</code> as an option in <a href="https://github.com/compose-spec/compose-spec/blob/master/spec.md#long-syntax-1" rel="nofollow noreferrer">long ...
2
1,135
How to spread Entities over different modules in Spring-data-jpa and eclipselink?
<p>I am currently developing an application with a core module and different "extension" modules. The core module includes the JPA configuration based on a Spring configuration class as well as some "basic" entities and their repositories which shall be used in the "extension" modules. The extension modules contain add...
2
2,151
AWS Amplify currentAuthenticatedUser is null after FB Login in React Native, but when app is reloaded, currentAuthenticatedUser returns valid user
<p>I am trying to integrate Facebook login into my React Native app. </p> <p>I have been able to implement successfully the Auth.signIn() method, and I can consistently retrieve the user using Auth.currentAuthenticatedUser().</p> <p>However, when I use Auth.currentAuthenticatedUser() after getting the code from the F...
2
1,235
How to make AngularJs http.put() and Spring controller work together (no more status 400 errors)?
<p>I am learning AngularJs with Spring. I am converting an existing Spring MVC server to work with Angular-provided JSON.</p> <p>Doing the GET was rather easy, cribbing from tutorial code. Doing a PUT is proving challenging. I mostly get status 400 (syntactically incorrect). Rather than thrash about I've decided to...
2
2,219
Content goes over top of fixed navbar despite z-index
<p>I want the content to go beneath the fixed navbar, but it goes over the top of it. I cant figure out how to do this.</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-css lang-css prettyprint-override"><code>body {...
2
1,689
OGR2OGR with MS SQL on Ubuntu 16.04
<p>I need to access a Microsoft SQL Server with OGR2OGR from an Ubuntu Server 16.04. It is working on Microsoft, so the basic setup is fine.</p> <p>My problem is that when I run my OGR2OGR command (after installing GDAL with sudo apt-get install gdal-bin):</p> <pre><code>ogr2ogr -overwrite -f MSSQLSpatial "MSSQL:serv...
2
1,200
Why ignores nginx my "auth_basic off" for sub-path location directive?
<p>Nginx (<a href="https://hub.docker.com/_/nginx" rel="nofollow noreferrer">docker image</a>, <code>1.17.2</code>) requires a basic authentication for a subpath. Although my config says otherwise for <code>https://example.org/subpath</code>:</p> <pre><code>// /etc/nginx/conf.d/mysetup.conf ssl_session_cache shared:...
2
1,184
Dynamic <select><option> with conditional <optgroup> as ng-container not working
<p>I have created a small dropdown component which takes the following interface as <code>&lt;option&gt;</code>s:</p> <pre><code>interface DropdownSelectChoice { label: string; key: string; } </code></pre> <p>The component to accepts a one- or two-dimensional array of choices</p> <pre><code>@Input() choices:...
2
1,210
Overlapping of images in java
<p>I want to overlap a black image containing some white spots on a grey shade image.I want to make this black image transparent. I used the code mentioned <a href="https://i.stack.imgur.com/foVZ1.jpg" rel="nofollow noreferrer">here</a> in Java.</p> <p>But the output shows a red image. Why?</p> <p>The code is mention...
2
1,462
Pass values between views in backbone
<p>I have 2 views and need to pass values between them.</p> <pre><code>var appModel1 = Backbone.Model.extend({ url: '/', defaults: { name: 'Default name' }, validate: function(attr){ } }); var appCollection1 = Backbone.Collection.extend({ model: app...
2
1,198
WKWebView is not scrolling the content to mapped HTML
<p>I am working on the WKWebView to render the HTML in WKWebView.</p> <pre><code>My HTML has &lt;a href ='#bottom'&gt; </code></pre> <p>This anchor tag will push my WKWebView to the content mapped to it. My full HTML is :</p> <pre><code>&lt;!DOCTYPE html&gt;&lt;html lang="en"&gt;&lt;head&gt; &lt;title&gt;Hello&lt;/...
2
1,734
highcharts donut chart center text overlaps with tooltip
<p>I am showing text in the center of Highcharts Donut/Pie chart. But my problem is that the center text overlaps with the tooltip text and tooltip becomes unreadable.</p> <p>I have tried changing the zIndex of tooltip to bring it to front but it doesn't work. I want the tooltip to be on top of the donut center text.<...
2
1,597
Calling prototype method inside function not working
<p><br/> I am trying to <em>create one gallery class</em> using <strong><em>Javascript</em></strong> and <strong><em>jQuery</em></strong>.</p> <p>I have some <em>prototype function</em> for that gallery class, but when I try to access those functions inside class it shows error.<br/></p> <pre><code>Uncaught TypeError...
2
3,001
delete multiple columns by name in excel using vb.net
<p>I have a large spreadsheet with many columns. A lot of those columns will not be used and need to be deleted. When I wrote the procedure in VBA, I wrote a procedure that deleted all columns except for the ones listed. Can I do the same in VB.net? </p> <p>I researched the web and saw how to do it by using column A, ...
2
1,037
Androids MediaPlayer plays video every second time activity enters
<p>I'm writing application in which one of the activities would able to play video files. I record the videos but then when trying to play trouble starts. Activity starts and plays the video fine for the first time. Then I press back button, go back to previous activity, select video (same or other) and video playing a...
2
2,428
How to create a custom TreeView in qt with branches put at right side of the ItemView?
<p>What I want is to create a sidebar with qt with QTreeView that branches are put at right side of items. Like AdminLTE sidebar: <a href="https://adminlte.io/themes/AdminLTE/index2.html#" rel="nofollow noreferrer">https://adminlte.io/themes/AdminLTE/index2.html#</a>.</p> <p>I have Tried several solutions each failing...
2
4,074
How to display value with field names from Solr XML files, getting values only
<p>I want to display the xml content differentiating the docs by fields names and values any help please.. Below is my xml file content..</p> <pre><code>&lt;doc&gt; &lt;field name="id"&gt;1&lt;/field&gt; &lt;field name="name"&gt;A&lt;/field&gt; &lt;field name="sk"&gt;Acce&lt;/field&gt; &lt;field name="...
2
1,516
Laravel: Multiple auth with same routes
<p>I have a Laravel(5.8) application where I have 2 roles <code>Super Admin</code> and <code>Admin</code> which are saved in two different tables <code>admins</code> &amp; <code>users</code>. They each have their own access levels respectively. However, about 95% of the routes in the entire application are same for eac...
2
1,540
winforms: updating progress with a parallel.foreach
<p>I haven't seen any posts pertaining to my issue, so I apologize if I post a question already asked.</p> <p>I have a windows form program, c#, that checks stocks and does analysis. The main form launches another form, via a new thread and ShowDialog. While it's loading, it's running a parallel.foreach. In that pa...
2
1,242
Elements are not floating after a page break in print preview or print in Firefox(latest version)
<p>I am trying to print multiple document formats, but for some reason in Firefox the format is messed up beyond the first page. I have floating elements and they align correctly in the first page but break on the second page in print preview. I posted the code in jsfiddle and underneath. If you copy the code to your l...
2
1,591
Trying to create maven dynamic web project in eclipse with java and clojure
<p>I have created maven-archetype-webapp project in Eclipse. And I want to use Clojure code in Java. So, there is my core.clj file:</p> <pre><code>(ns coq.core (:gen-class :name coq.core :methods [#^{:static true} [foo [int] void]])) (defn -foo [i] (println "Hello from Clojure. My input was " i)) (defn -main...
2
3,591
Runtime Exception while instantiating Server class for rmiregistry
<p>I tried the same program on my Ubuntu VM and the program even yielded the correct output but on Windows its giving a weird runtime exception:</p> <pre> e:\java\rmi final>javac *.java e:\java\rmi final>rmic ServerImplement e:\java\rmi final>rmiregistry 20361 &lt;&lt; BLANK , fine >> e:\java\rmi final>java ServerMa...
2
1,990
Add row function to push new object in angular ng-repeat
<p>I have one ng-repeat for parent Objects inside Master Object. I also have another ng-repeat for child objects for each parent object.</p> <p>child object has two textboxes and one actionCode attribute . When I click on add row I want to set action code of new row object to A.</p> <pre><code>&lt;tbody ng-repeat= "...
2
2,195
Visual Studio WSDL create async/await SOAP webservice
<p>I've got a SOAP webservice in my C# winforms application, but I'm trying to get WSDL.exe to generate with Task-Based async/await methods.</p> <p>I've read up on the documentation <a href="https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/7h3ystb6(v=vs.100)" rel="nofollow noreferrer">here</a...
2
1,045
PyQT QGraphicScene move item in background thread
<p>Sorry for my bad english. I need update graphic scene in background thread. I need that the thread move my rectangle on scene. But it doesn't work, when threads start, rectagle is hides on scene, and i can't see his move. Only if i move by mouse on scene other object, i can see how my rectangle move. But if i change...
2
1,427
Play Framework - JSON Serialization Cyclic References (e.g. Files->User, User->Files) --> Stackoverflow
<p>I've been playing around with the play framework for a couple of days now but came across one issue I can't solve: Suppose you have some "User" and "File" classes. Both reference each other and are persisted in the database with ebean (@ManyToOne, @OneToMany). Now when return a user as JSON I get a stackoverflow Err...
2
1,422
Xcode iOS GPUImage - drawing triangles over live video
<p>I am making use of Brad Larson's wonderful GPUImage library for image manipulation. Thank you Brad, great work.</p> <p>I am trying to add a new filter that will allow for objects to be drawn over a live video source. </p> <p>This is early stages. At this point, I am just trying to draw 3 triangles over the video ...
2
1,655
error when trying to run ui (app) on kubernetes?
<p>Basically when i try to run my app(UI) on kubernetess using kubectl the pod fails and says error.</p> <p>logs of the pod</p> <pre><code> &gt; wootz@0.1.0 start /usr/src/app &gt; node scripts/start.js internal/modules/cjs/loader.js:626 throw err; ^ Error: Cannot find module 'react-dev-utils/chalk' Require...
2
1,967
An attempt was made to call a method that does not exist, mongo-java-driver , mongobee
<p>I am using MongoBee for migration, getting exception on <strong>mongoTemplate.insertAll(airports);</strong></p> <pre><code>@ChangeLog(order = &quot;001&quot;) public class DbChangeLog001 { @ChangeSet(order = &quot;001&quot;, id = &quot;seedProduct&quot;, author = &quot;San&quot;) public void seedProduct(Mong...
2
1,619
Issue with jQuery.ajax() for pagination
<p>I'm using magento as my CMS, trying to implement ajax for pagination,</p> <p>I have 2 pages at the moment, the structure is such,</p> <pre><code>&lt;div class="pager"&gt; &lt;div class="pages"&gt; &lt;strong&gt;Page:&lt;/strong&gt; &lt;ol&gt; &lt;li class="current"&gt;1&lt;...
2
1,133
bytesWritten, but other device never receives NSStreamEventHasBytesAvailable event
<p>I have set up a Bonjour network between an iPhone and a Mac.</p> <p>The user chooses the iPhone’s net service in a table presented in the Mac, and a pair of streams are created and opened on both sides.</p> <p>The iPhone starts by sending a code (an integer) to the Mac. The Mac successfully receives it.</p> <p>Af...
2
2,655
"Enhancing" CoreNLP Sentiment Analysis Results
<p>I am trying to perform sentiment analysis on a large number of product reviews using CoreNLP (Java). Overall, I find the accuracy of the analysis to be pretty good. From what I read, the model I'm using was initially created using movie reviews (I think), so it's not 100% suited for analyzing product reviews. I w...
2
1,034
Adjacency list to create graph and Breadth First Search (BFS) and Fepth First Search (DFS)
<p>Here is my code which implements graph using adjacency list and do a Breadth First Search (BFS) and Depth First Search (DFS). While creating graph and adding edges I am facing problem of a fault in creating graph. I am not sure of the pointer that I have used. Can you suggest where am I wrong?</p> <pre><code>#inclu...
2
2,560
My composer package's namespace doesn't show in the autoload_psr4 file
<p>I'm creating my first composer package. I'm testing it by pulling it into a vanilla Laravel project. </p> <p>The issue I'm having is that when I require my composer package in the main Laravel composer.json file and then try to update the autoload. </p> <h2>My package's composer.json:</h2> <pre><code>{ "name"...
2
1,538
Error sending large byte array
<p>I have WCF service through which I am adding data in DB. It works fine, but when I try to send large byte[] it returns "remote server returned an error: NotFound".</p> <p>web.config</p> <pre><code> &lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;connectionStrings&gt; &lt;add name="JabsBaseConnection...
2
2,168
Checking BLAS and LAPACK libraries links in scipy and numpy
<p>I'm trying to link my code (scipy.linalg.solve notably) to a given library like OpenBLAS.</p> <p>I am using python 3.7.7 in a virtual environment:</p> <pre><code>Python 3.7.7 (default, Mar 29 2020, 18:12:06) [Clang 11.0.3 (clang-1103.0.32.29)] on darwin </code></pre> <p>Also of note, I installed numpy and scipy int...
2
1,428
Merge - when matched then do nothing
<p>I need to write a MERGE statement to insert data WHEN NOT MATCHED condition, WHEN MATCHED I'd like the query to do nothing but I've got to include this condition because I badly need to catch the source data from both conditions into my output table.</p> <p>Here's my code:</p> <pre><code> MERGE dm_d...
2
1,629
Spring Boot MySQL not batching inserts
<p>I've applied pretty much all solutions posted here on SO regarding this issue but nothing worked.</p> <p>My <strong>application.properties</strong>:</p> <pre><code>spring.jpa.hibernate.ddl-auto=create-drop spring.datasource.url=jdbc:mysql://localhost:3306/mydb?logger=com.mysql.jdbc.log.Slf4JLogger&amp;rewriteBatch...
2
1,025
create smaller chunks of a file then compress and decompress back into one file
<p>I'm trying to create a file transfer application which sends files after compressing them. My main goal was to provide resumable transfer with it, for that purpose, I first create an archive of all the files the user has to send, then I open the archive in a stream and read a chunk of data from it (say a chunk of 2m...
2
1,107
How do I remove all the zero's from a dataset that is in a list?
<p>I have this dataset in an excel spreadsheet and I have converted into a csv file for python to read:</p> <pre><code>1 5 0 1 3 2 1 18 30 50 13 12 24 1 0 1 0 0 1 1 1 10 10 12 10 6 16 -1 0 7 0 0 4 4 1 21 30 46 19 11 25 1 0 1 0 0 1 1 1 2 4 3...
2
1,224
Python: How to use shutil.copy() with unicode filenames
<p>So I've been pounding my head against this problem for days and I just can't figure it out. I've read <a href="https://docs.python.org/2/howto/unicode.html" rel="nofollow noreferrer">this</a>, <a href="https://stackoverflow.com/questions/5523373/python-how-to-move-a-file-with-unicode-filename-to-a-unicode-folder">t...
2
1,143
React Hooks Read CSV From Local Machine
<p>I am trying to rewrite a function to read a CSV file and assign it to state. </p> <p>The general workflow is to upload a CSV file from local machine, parse it, divide into three different objects and assign it to state.</p> <p>However, I am getting this error:</p> <blockquote> <p>TypeError: Cannot read property...
2
1,636
Efficient way to find the number of all such triplets (from a given set of numbers) whose numbers are in A.P.?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/13240330/fastest-algorithm-count-number-of-3-length-ap-in-array">fastest algorithm count number of 3 length AP in array</a> </p> </blockquote> <p>I've been working on the following problem taken from CodeChef's...
2
1,259
SubscriptionClient with Sessions issue: java.lang.UnsupportedOperationException
<p>Using Azure Service Message Bus Topics and Subscriptions.</p> <p>Created a Topic <code>aaaa</code> and Subscription <code>zzzsubscription</code> - session aware.</p> <p>Using the below code to send messages to Topic with Session IDs:</p> <pre><code>String senderString="Endpoint=sb://xxxx.servicebus.windows.net/;S...
2
2,417
Need to find out if all columns in a SQL Server table have the same value
<p>I have the task to find out if all columns in a SQL Server table have exact the same value. The table content is created by a stored procedure and can vary in the number of columns. The first column is an ID, the second and the following columns must be compared if the all columns have exact the same value.</p> <p>...
2
1,055
responsive svg using viewbox and preserveaspect ratio when no width and height is specified on the svg
<p>I have a large svg image and I want it scales well in different scenarios (see snippet).</p> <p>I originally was using the <code>width</code> and <code>height</code> attributes of the svg and was setting these values everytime the screen resized.</p> <p>I then discovered the viewbox. </p> <p>What I do not underst...
2
6,170
Can't compile with mingw-w64 g++: can't find <wchar.h>
<p>I have the simple C++ program</p> <pre><code>#include &lt;iostream&gt; int main() { std::cout &lt;&lt; "Hello, world!\n"; return 0; } </code></pre> <p>When I try to compile using <code>g++ test.cpp</code> I get this error</p> <pre><code>In file included from C:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0...
2
1,755
boost::stacktrace prints addresses
<p>I can compile all examples of boost:stacktrace. Here is my bash script:</p> <pre><code>#!/bin/bash export CXX=~/x-tools/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-g++ export BOOST_INCLUDE=$HOME/x-libs/$($CXX -dumpmachine)/include export BOOST_LIB=$HOME/x-libs/$($CXX -dumpmachine)/lib export BOOST_SUFFIX...
2
1,461
Changing the y-axis scale in nvd3
<p>I am very new to nvd3. <strong>I plot a line chart, where most of the points are in the the Y-axis range 99 to 101. Only a few value will be outside this range.</strong> Check this image:</p> <p><img src="https://i.stack.imgur.com/zUMLf.png" alt="enter image description here"></p> <p><strong>I want this range to b...
2
1,044
WSO2 ESB: SFTP file transfer: Could not connect to SFTP server
<p>I am trying to transfer some files from local server to SFTP server using WSO2 Enterprise Integrator 6.3.0. I have username, SFTP location, SFTP port(990), ppk file and PassPhrase. When I tried below configuration in my Proxy service, I couldn't connect to SFTP server. It gives com.jcraft.jsch.JSchException: Auth fa...
2
1,974
Explanation/information sought: Windows write I/O performance with "fsync" (FlushFileBuffers)
<p>This question is in follow up of an earlier question I posted: <a href="https://stackoverflow.com/questions/18276554/windows-fsync-flushfilebuffers-performance-with-large-files">Windows fsync (FlushFileBuffers) performance with large files</a>. Where I found a possible solution but also new questions. </p> <p>While...
2
1,943
Rails autocomplete with acts-as-taggable-on issue
<p>I am a rails newbie. I am trying to implement acts-as-taggable-on with autocomplete. The problem I am facing is if I have multiple tags for a user, autocomplete suggests the entire tag_list instead of a single tag. </p> <p>This is a follow up question with <a href="https://stackoverflow.com/questions/8575153/active...
2
1,169
Bootstrap 3: triple nested list on a navbar default fixed top inverse does not drop down...
<p>I've been trying to get a the menu to drop, from an navbar navbar fixed top navbar inverse, additionally there is a toggle button to make the menu responsive on a small screen... menu is drop down and then drop right... well it doesn't drop down...</p> <p>also I'm wondering if we can combine a drop down with an acc...
2
10,359
sed statement to change/modify CSV separators and delimiters
<p>I have some CSV files which contains comma seperated values and some of the column values can contain characters like <code>,.&lt;&gt;!/\;&amp;</code></p> <p>I am trying to convert the CSV to be a comma separated, quote enclosed CSV</p> <p>Example Data:</p> <pre><code>DateCreated,DateModified,SKU,Name,Category,De...
2
1,466
Incompatible pointer type warning C
<p>Thanks for your help in advance. I am trying to create a simple graph in C. I however get </p> <pre><code>graph.c:66:11: warning: incompatible pointer types initializing 'edge *' (aka 'struct gegde *') with an expression of type 'struct gedge *' [-Wincompatible-pointer-types] edge *node = fromptr-&g...
2
1,591
Parallelization in WCF
<p>I create WCF service with Spring.NET framework. This service is math service and provide some computations for client apps.</p> <p>I have question about WCF service parallelization on multi-core server. For simple example I have server with 20 cores.</p> <p>First here is a simplified code.</p> <pre><code>//WS int...
2
1,587
Retrieveing data from database results in 0 results
<p>I've got multiple entries in my database, yet my php code <code>returns 0</code> entries.</p> <p>Here's my php:</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>error_reporting(E_ALL); ini_set('display_error...
2
1,669
library(clValid) - The number of items to be clustered is larger than 'maxitems'
<p>Whenever I call:</p> <pre><code>library(clValid) clValid(da_mat, nClust = 2:6,clMethods = "kmeans",method = "ward", validation = "internal",verbose = F,metric = "euclidean") </code></pre> <p>the following question appears:</p> <blockquote> <p>The number of items to be clustered is larger than 'maxitems'</p> ...
2
2,207
Favorite food Java program gone wrong
<p>Below is my Java program. Right now, the only way for the program to run correctly is to have the last column be the longest. If the last column in the array isn't the longest, then the output isn't correct. For example, if the <code>food</code> array has more elements in the second column than in the third column l...
2
1,086
play video immediately after recording on android app
<p>I am developing an app which should record a video of Maximum limit one minute, and saving it in gallery and then right after it saves it should start playing automatically. Following is my code.</p> <pre><code>public class MainActivity extends Activity { private Camera myCamera; private MyCameraSurfaceView my...
2
2,505
Viewport doesn't work
<p>I'm practicing in using @media queries. Here is a part of my HTML:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt; &lt;script src="js/script.min.js"&gt;&lt;/script&gt; &lt...
2
4,140
Rails 6.1.0 [webpack-cli] TypeError: Cannot read property 'plugins' of undefined
<p>My Rails+Webpack app contanizered with Docker worked fine in 6.0.3.4 and with</p> <pre><code>&quot;webpack&quot;: &quot;^4.44.1&quot;, &quot;webpack-cli&quot;: &quot;^3.3.9&quot; </code></pre> <p>After upgrade to 6.1.0 <strong>webpack-cli</strong> cannot read property 'plugins' (or 'config' or 'loaders') in the <em>...
2
2,506
Runtime Ignoring While Loops?
<p>I am new to the forums so first of all I'd like to say "Hi"! I'm new to Java programming and am trying to make a simple payroll calculating program with three while loops.</p> <p>The first while loop keeps the program going until the user enters the sentinel "stop". The second and third loops are error traps that e...
2
1,395
Cordova iOS plugin install pod install silently exits
<p>I am writing a script which automates the build of my Cordova App for iOS. I'm using CLI 6.4.0 and cordova-ios 4.3.1 and I use the new possibility to add a framework to the plugin as a pod. Plugin is specified like this in the config.xml: </p> <pre><code>&lt;plugin name="sbb-cordova-plugin-onboarding" spec="~0.0.4...
2
1,219
How to save to File in android programatically
<p>I have been searching the internet to find a resolution to my answer, have gone through all the documentation, and have looked through multiple forums before posting my own question on this. I need to save information through a file because my function</p> <pre><code>@Override protected void onSaveInstanceState(Bu...
2
1,108
Recipe for target 'ninja_wrapper' failed
<p>I am trying to compile android 7.0 from the AOSP but got the above error (cf title). The logs show several errors which seem to be about *Test.java files in the packages/apps/Dialer/tests/src/com/android/dialer/ folder</p> <p>Below are some examples of error : </p> <pre><code>FAILED: /bin/bash -c "(rm -f out/targe...
2
1,542
dataTable takes more time loading after logging into the client side
<p>I have a dataTable where I show about the contracts in the index page once we logged in. The dataTable contains merely 2000 rows for now. I have tried to load it faster by reading some of the techniques like <strong>deferRender, deferLoading, pagination, lengthChange and scroller</strong>. But none of these seems to...
2
2,421
Update Logic for JPA Entity Fails when using DBUnit and Spring
<p>I am currently using DBUnit in conjunction with Spring in order to unit test my application, but have run into an issue where my update logic test always fails because a deadlock occurs on the database and I cannot figure out why this is the case. Please note that I have been able to get around the issue by removin...
2
2,118
Android manifest make apk a launcher app on tablet but normal app on phone
<p>How do you make one apk be a <strong>launcher</strong> app on tablets but just a <strong>normal</strong> app on phones? How do you configure the manifest file for this?</p> <p>By launcher app I mean it will show up as one of the option when the apk is run on tablets: <a href="https://i.stack.imgur.com/F3UaA.png" re...
2
1,834
Fatal error: Uncaught exception 'Zend_Db_Table_Exception'
<p>I am using zend1.12. I placed index.php from public to root folder and changed configuration after that it is throwing below error.</p> <p>I am getting following error , all configuration looks fine.</p> <pre><code>Fatal error: Uncaught exception 'Zend_Db_Table_Exception' with message 'No adapter found for Applica...
2
1,459
Youtube Analytics API returns 403 forbidden even if token is valid
<p>I have an issue with access to Youtube Analytics API for random youtube channels. </p> <p>After a successful authorization with following scopes:</p> <ul> <li><a href="https://www.googleapis.com/auth/youtube.readonly" rel="noreferrer">https://www.googleapis.com/auth/youtube.readonly</a></li> <li><a href="https://w...
2
1,154
User Control Not Resizing
<p>I have a rather weird problem with a control that doesn't want to resize. Bellow is the XAML + Code behind of the control written in SL4. </p> <p>So to explain things rather shortly, the control has 4 regions - Header, Subheader, BodyContent, and Footer. Each region is represented by a "Border" element which acts a...
2
5,994
Regex: Find groups of lowercase letters between HTML tag
<p>I'm attempting to develop a regular expression that can be run in <a href="http://code.google.com/p/sigil/" rel="nofollow noreferrer">Sigil</a>, the ePub 2 editor.</p> <p>Small-caps are a well-known problem within the current ePub reader ecosystem. Many readers, such as Adobe Digital Editions, do not support &quot;f...
2
1,416
<f:convertNumber/> does not recognize correct input for german currency
<p>I'm setting up an input field for currency in my jsf web app and have a backing bean to write the value to. However the converter <code>&lt;f:convertNumber/&gt;</code> doesn't seem to recognize correct input if entered by the user. The initial value can be submitted and numbers can be changed but typing in a value l...
2
1,035
violation of primary key constraint 'pk_'. cannot insert duplicate key in object wpf
<p>I used <strong>entity framework code first</strong>.I have 3 tables . my tables are :</p> <pre><code>-Product :{name id ...} -property :{name id } -productProperty:{productId propertyId value} </code></pre> <p>know when I editing my product I want to add new property to this product. So my code is : </p> <pre><...
2
1,448
Textbox lose value after postback
<p>I have a group of text box that allows the user to automatically compute the gross amount. The computation is working but when the page post back all the text box value is gone. Any help would be much appreciated! Thank you!</p> <p>Please see below my codes.</p> <p><strong>JavaScript</strong></p> <pre><code>$(doc...
2
3,950
Cashu Payment Gateway
<p>hi all I have a website and I want to add Cashu Payment Gateway . to the users can buy > this is my files for payment </p> <p>Payment_manage.php <pre><code>include("../include/config.php"); include_once("../include/functions/import.php"); verify_login_admin(); $adminurl = $config['adminurl']; function insert...
2
8,814