title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to execute sh file from jenkins running on windows
<p>Cygwin installed in my windows and able to execute the sh file using cmd prompt. same Cygwin plugin has been installed in jenkins which also running in windows. I created a job in jenkins build step->execute shell command I am giving the command as <strong>sh /cygdrive/d/539707/data/getchanges/gymBuild.sh</strong> w...
0
1,078
The specified child already has a parent. You must call removeView() on the child's parent first”
<p>I am trying to add a marginTop of 20 using Java if the Android Version is Kitkat or above. I am getting an error The specified child already has a parent. You must call removeView() on the child's parent first. I have tried these but to no avail.</p> <p><a href="https://stackoverflow.com/questions/28071349/the-spec...
0
6,679
Initializing SD card in SPI issues
<p>I've had a look at Stack Overflow question <em><a href="https://stackoverflow.com/questions/955587">Initialization of a microSD card using an SPI interface</a></em> and didn't see any answers that matched my issue (that is, things I haven't already tried). </p> <p>I have a similar issue where I'm trying to access a...
0
1,768
Stacking Bootstrap 4 cards in card deck
<p>I am using reactstrap to setup cards for one of my views. The last 2 cards have no images in the header and the need is to have them stacked. What I have done, but doesn't look to good is add a <code>&lt;Col&gt;&lt;/Col&gt;</code> in there, but that messes with the padding. Is there a way I canb simply do this and h...
0
1,889
How to play music using libgdx
<p>I have had trouble playing music using libgdx. My code is as follows:</p> <pre><code>package com.me.fixGame; import java.util.Random; import com.badlogic.gdx.ApplicationListener; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input.Keys; import com.badlogic.gdx.audio.Sound; import com.badlogic.gdx.graphics...
0
2,455
Bootstrap tab with content not working
<p>Completely new to HTML and CSS but I found code on this site for tabs with content that I would love to use as it is perfect for what I need, however I can't get it to work. I checked all the answers and followed every advise giving, including the ordering of the links/script tags but it is still not working. It wor...
0
1,383
System.IO.IOException: A device attached to the system is not functioning C# .NET 4.0
<p>I've built a C# application which reads and writes data from a serial port. The device connected to the serial port is a FTDI USB to serial converter which communicates to hardware through a XBee wireless module. The hardware tests battery modules for capacity and steady state voltage etc. these tests take days to c...
0
3,554
Spring-Boot application startup failed
<p>I have created basic spring-boot application with tomcat container. After building jar using maven, I run it as <code>java -jar mybootapp-1.0.0.jar</code>. Then following error was occurred. Any way I using <code>mvn spring-boot:run</code> command to run the app, Its running nicely. But What is the reason for givin...
0
4,183
Reading CDATA XML in Java
<p>I'm trying to parse CDATA tpyes in XML. The code runs fine and it will print Links: in the console (about 50 times, because that's how many links I have) but the links won't appear...it's just a blank console space. What could I be missing?`` </p> <pre><code>package Parse; import java.io.File; import javax.xml...
0
2,043
Error: "Expected named arguments" in parallel in Jenkins groovy script
<p>I have a Jenkins 2.0 pipeline, with a groovyscript like this:</p> <pre><code>node('nnh561.raijin') { stage 'checkout' build('trunk/checkout') stage 'build' parallel( { build('trunk/build/gfortran') }, { build('trunk/build/ifort') } ) } </code></pre> <p>Each of the individual j...
0
1,702
Gradle sync failed: Could not determine artifacts for com.edwardvanraak:MaterialBarcodeScanner:0.0.6-ALPHA: Skipped due to earlier error
<p>After upgrading from Android Studio 3.1 to 3.2, the sync failed with a message related to the com.edwardvanraak:MaterialBarcodeScanner dependency.</p> <p>implementation 'com.edwardvanraak:MaterialBarcodeScanner:0.0.6-ALPHA'</p> <p>The build.gradle is:</p> <pre><code>buildscript { repositories { // jce...
0
3,540
get file size with ifstream::seekg and tellg
<p>I have the following block to test the behaviours of the seekg and tellg when I try to get a file size:</p> <pre><code> int size = 0; ifstream in(fileName.c_str(), ifstream::in | ifstream::binary); if(in) { in.seekg(0,ifstream::end); size = in.tellg(); cout &lt;&lt; endl; ...
0
1,410
rake db:migrate and rake db:create both work on test database, not development database
<p>I am new to Stack Overflow and Ruby on Rails. My problem is, when I run the command rake db:create or rake db:migrate, the test database is affected, but the development database is not.</p> <p>rails (3.2.2)</p> <p>my database.yml:</p> <pre><code># Warning: The database defined as "test" will be erased and # re-...
0
3,616
How does Flexible Search query translate to SQL query in Hybris?
<p>As far as I know, Hybris uses FlexibleSearchQuery to query data. So to query the database, I need to translate FlexibleSearchQuery into SQL. I still do not know how Hybris does it.Can you help me understand?</p> <p>I have stack trace code as follows:</p> <p>I see: TranslatedQuery tQuery(class: FlexibleSearch metho...
0
10,204
Spring Data JPA performnace issue with batch save
<p>I have the following Entity</p> <pre><code>@Entity @Table(name = "APP_ITEM") public class AppItem implements Serializable { private static final long serialVersionUID = 1L; @EmbeddedId private AppItemPK AppItemPK; public AppItemPK getAppItemPK() { return appItemPK; } public void setAppItemPK( AppIte...
0
1,650
Line truncated, Syntax error in argument list
<p>When I compile the program below, I have an error and a warning in the <code>call Coor_Trans</code> command line as</p> <blockquote> <p>Warning: Line truncated</p> <p>Error: Syntax error in argument list</p> </blockquote> <p>I compile the program several times, but it does not work. Maybe there is something wrong wi...
0
1,615
Vue.js and vue-phone-number-input package component : set country code and phone number programmatically
<p>In my Laravel + Vue.js SPA (Single Page Application), I am using <a href="https://bootstrap-vue.js.org/" rel="nofollow noreferrer">BootstrapVue</a> , <a href="https://github.com/LouisMazel/vue-phone-number-input" rel="nofollow noreferrer">vue-phone-number-input</a> package and <a href="https://logaretm.github.io/v...
0
1,836
about RestTemplate
<p>I have linked [Spring-Boot Rest API] and [Go Rest API] in the following configuration. Although the service of the destination URI exists, I intend to connect using RestTemplate in a communicable environment, but somehow it is a 404 error.</p> <ul> <li><p>[Client]&lt;--(1)-->[Spring-Boot Rest API]&lt;--(2)-->[Go Re...
0
3,724
Multiple data source and schema creation in Spring Boot
<p>I'm using Spring Boot. I finally managed to setup two data sources, but now I'm facing another issue. </p> <ol> <li><p>with two data sources in place <code>spring.jpa.hibernate.ddl-auto=create</code> seems to stop working in my spring boot application, only <code>spring.jpa.generate-ddl=true</code> do the job now</...
0
1,735
WPF: Alternating colors on a ItemsControl?
<p>How do I get alternating colors on a ItemsControl? I have AlternationCount set to 2, but the ItemsControl.AlternationIndex property always returns 0.</p> <pre><code> &lt;ItemsControl ItemsSource="{Binding}" AlternationCount="2"&gt; &lt;ItemsControl.Resources&gt; &lt;Style x:Key="F...
0
3,061
How to change text of a label in the kivy language with python
<p>I was wondering how I could change the text of a label made inside the Kivy language using Python. Like how would I have user input from python be made as the text of a label in kivy. (By the way I have the formatting correct in the actual program but I screwed up pasting it to stackoverflow) Say if I wanted to make...
0
2,584
Error starting modern compiler
<p>In my servlet , I m using Tomcat 5.0 and JRE is 1.5.0 but it is giving error when I click on the URL . As when I created a war file of my project and deployed in tomcat than it is working fine . It means that only problem with my eclipse configuration </p> <p>ERROR IS : - </p> <pre><code>Apr 5, 2010 3:20:22 PM org...
0
8,624
how to install laravel?
<p>I am having an error trying to install laravel globally. </p> <p>When I write <code>composer global require laravel/installer</code> I get this error: </p> <pre><code>Problem 1 - Installation request for laravel/installer ^3.1 -&gt; satisfiable by laravel/installer[v3.1.0]. - Conclusion: remove symfony/con...
1
3,000
Assign a variable inside an "if" bracket, how do you use that variable outside the bracket?
<p>I'm making a program that makes a fractal, and the user is suppose to choose what colors they what the fractal to be. The only problem is that the color variable won't work outside the "if" statement. Here's my code: (Problem in <code>public void fractalEngine</code> down by where pen colors are being set. Those <co...
1
2,288
AngularJS ng-repeat over multiple tr
<p>I'm trying to get the following code to work (data comes from an API):</p> <pre><code>... &lt;tbody ng-repeat="verbinding in data.connection" style="border-bottom:2px solid black;"&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td&gt;&lt;/td&gt; &lt;td&gt;{{verbinding.departure.time * 1000 |...
1
1,044
Extending HTTP Handlers
<p>I have a fairly quick-and-dirty error handler in my Go web app that raises a HTTP error, logs the important parts of the response and serves an error template. I'd like to remove the repetition where I'm writing something like this a few too many times in a handler:</p> <pre><code>err := doSomething() if err != nil...
1
1,232
javax.xml.ws.WebServiceException: Could not send Message | java.net.ConnectException: ConnectException invoking xxx: Connection timed out: connect
<p>A provider exposed a webservice, i created a java client from WSDL and i configured all certificates in cacerts and keystore for security, everything works fine on my computer, the costumer asked for deploy the client in one of their windows machine, but i couldnt make it work because of the error i get when i run t...
1
3,335
Transactions in Android Room w/ RxJava2
<p>A requirement of my application is to allow the user to progress through multiple steps, then upon completion write values to the database based off of entries in each step. Each step in the UI may contribute to the operations that will need to be written to the database. The data may be in multiple tables and perta...
1
1,159
Hibernate Class level validation
<p>Well, I read several issues (here and other sites) about class level validation with hibernate, I created the annotation and validation class, but when validation returns false, I get an exception (when validation returns true its ok) that the class is not valid (obviously because validation returned false), my doub...
1
1,278
jquery - get next level children only
<p>for example:</p> <pre><code>&lt;div id="headerWrapper"&gt; &lt;H1&gt;TEST&lt;/H1&gt; &lt;div id="paarofileLinks"&gt; &lt;ul id="primaryNav" role="navigation"&gt; &lt;li id="musicNav" class="navItem"&gt; &lt;a hre...
1
1,232
Error: VNDK library: libandroid_net's ABI has EXTENDING CHANGES
<p>I am setting up an environment to run AOSP code on Ubuntu 18.04.1 LTS and got the error "error: VNDK library: libandroid_net's ABI has EXTENDING CHANGES". Please help me to resolve this. I have searched for hours but didn't get the solution.</p> <p>I have done following things:</p> <ol> <li>Installed required pack...
1
1,155
Recipe for target `autoloads' failed while building Emacs in Cygwin
<p>I am trying to build Emacs on 64-bit Windows 7 using Cyqwin:</p> <p>Emacs 23.3 or 23.4</p> <p>CYGWIN_NT-6.1-WOW64 1.7.11(0.260/5/3) 2012-02-24 14:05 i686 Cygwin</p> <p>Some info from ./configure log:</p> <pre><code> What compiler should emacs be built with? gcc -g -O2 -Wdeclarati What operating sy...
1
5,063
Reading UTF8-encoded command-line in .NET (C#)
<p>I want to be able to handle UTF8-encoded command-line parameters in a .NET console program I'm writing. Unfortunately, both the "args" array passed to the Main() function, and the Environment class members (CommandLine and GetCommandLineArgs()) have aleady been (incorrectly) converted into Unicode, seemingly by tre...
1
1,101
d3.js svg drawing contour lines from (geo/topo)json
<p>I am looking for some guidance on how to create SVG image composed of paths based on contour line data coming from (geo/topo)JSON and render it with d3.js.</p> <p>This is an image of what I'd like to create essentially: <img src="https://i.stack.imgur.com/Iv4nQ.jpg" alt="Example of final product. (Note: the colors ...
1
1,449
Laravel - Missing argument 2 for UserController::edit()
<p>I'm using the framework Laravel.</p> <p>I have 2 tables (Users and Persons). When I want to edit the user and at the same time the person, I get the error message:</p> <blockquote> <p>Missing argument 2 for UserController::edit()</p> </blockquote> <p>Table Users</p> <pre><code>CREATE TABLE IF NOT EXISTS `festi...
1
1,997
Peer to peer data sharing using Wi-Fi direct
<p>I am developing an Android multiplayer game using <code>Wi-Fi direct</code>. Using Wi-Fi direct, I am able to establish connection between peer devices. Also the code is able to send the data from client device to server device. (According to Android documentation, the Wi-Fi direct uses client-server model)</p> <p...
1
1,676
How to pass JSF variable to jQuery
<p>Suppose i have JSF page </p> <pre><code> &lt;h:body&gt; &lt;h:form id="formID" prependId="false"&gt; &lt;h:outputText id="randomID" value="#{randomNumber.random}"/&gt; &lt;h:commandButton id="buttonID" value="Random" onclick=...
1
1,250
REACT-NATIVE Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined
<p>I'm having the following error &quot;Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the...
1
6,751
How can I use TCPDF to make 2x6 sheets of labels that include 2D barcodes WITHOUT using columns OR 3rd-party classes?
<p>For three weeks (I guess I'm that slows!) I've tried to use TCPDF's own examples as well as some suggestions found on this site to figure out how to do this using database records. Mr. Asuni has responded to some requests for help when others ask how to use 3rd party patches (classes) to get things going, only that ...
1
3,790
Capture Image From Camera and Select Image From Gallery of Android Phone Using Android Studio
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>package com.sourcey.materiallogindemo; import android.content.DialogInterface; import android.content.Intent; import android.databa...
1
2,766
Failed to start LSB: Enable AMQP service provided by RabbitMQ broker
<p>I am trying to start the rabbitmq server in centos 7</p> <pre><code>[root@localhost ~]# /sbin/service rabbitmq-server start Starting rabbitmq-server (via systemctl): Job for rabbitmq-server.service failed because the control process exited with error code. See "systemctl status rabbitmq-server.service" and "journa...
1
1,538
SyntaxError: Unexpected token `<` -- AngularJS Application is not working
<p>I am currently working Wcf service with MVC . I am trying to consume my wcf service by using AngularJS and MVC Framework.I am trying to do insert, update and delete using wcf with AngularJS and mvc . My wcf service is working nicely but when I run AngularJS Application in Google Chrome its does not display any data ...
1
8,414
HTML5 video - ashx handler - seek
<p>I'm trying to use an ashx handler as an HTML5 video source. I can achieve this, but I can not move forward further on the video that what has already buffered.</p> <p>I can see on the network tab using a standard MP4 source that seeking forward creates another request, but using the handler it does not.</p> <p>Som...
1
1,620
How to get individual error labels to show C# asp.net
<p>I am working on a contact page and would like some help please on how to display error labels at individual times when the textboxes are empty. I have used 3 textboxes. I am a new student in C# asp.net. I really appreciate your time and help. Thanks!</p> <pre><code> //if no or incorrect entries are entered panel wi...
1
1,884
ios9 self signed certificate and app transport security
<p>I've spent a while trying to get this working. I have an API that I'm connecting to that i'm trying to switch to SSL with self signed certificates. I have control on the server and app.</p> <p>I generated a self signed cert according to this:</p> <p><a href="https://kyup.com/tutorials/create-ssl-certificate-nginx/...
1
1,448
Implement directory uploads with jQuery File Upload and Rails
<p>I'm trying to implement directory uploads with jQuery File Upload plugin by Blueimp. Rails 4 is my backend, and for attachments, I'm using Carrierwave. </p> <p>The issue now is that, the jquery plugin is not able to recognize the folder that I'm uploading. I already have webkitdirectory parameter passed in the inpu...
1
1,691
Receiving base64 string in web api
<p>I am trying to receive a base64 string (which is an image) in my web api web service.</p> <p>The issue I am having is with the length of the string, is there a way I can set the limit of of incoming strings to allow for a string of a massive size? The string has already been encoded for url use. From what I can tel...
1
2,996
Boost asio with Qt
<p>I am trying to use <a href="http://www.boost.org/doc/libs/1_36_0/doc/html/boost_asio/example/http/client/async_client.cpp" rel="nofollow noreferrer">boost::asio async client example</a> with a simple Qt GUI like:</p> <p><a href="https://i.stack.imgur.com/xxq9X.png" rel="nofollow noreferrer"><img src="https://i.stac...
1
1,238
Soft actor critic with discrete action space
<p>I'm trying to implement the soft actor critic algorithm for discrete action space and I have trouble with the loss function.</p> <p>Here is the link from SAC with continuous action space: <a href="https://spinningup.openai.com/en/latest/algorithms/sac.html" rel="nofollow noreferrer">https://spinningup.openai.com/en/...
1
3,080
Torch code producing CUDA Runtime Error
<p>a friend of mine implemented a sparse version of torch.bmm that actually works, but when I try a test, I have a runtime error (that has nothing to do with this implementation), that I don't understand. I have seen a few topics about if but couldn't find a solution. Here is the code, and the error:</p> <pre><code>if...
1
1,163
How to implement pagination in recyclerview?
<p>I am performing pagination in recyclerView. My data is loading successfully and problem is how can I request to server for the next page. How i can perform pagination and how i can find page number which is being scrolled.</p> <p>My code is:</p> <pre><code>rvLatestProduct.addOnScrollListener(new RecyclerView.OnScr...
1
1,290
Spring @Autowired restTemplate is null
<p>I am new to Spring. I develop Service that Consuming RESTful service with certficate using Java</p> <p>Here is my Config class:</p> <pre><code>package configuration; import org.apache.http.client.HttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.ssl.SSLContextBuilder; import org.s...
1
1,721
Why doesn't pytest load conftest.py when running only a subset of tests?
<p>Here is my API test directory layout:</p> <pre><code>api_tests ├── conftest.py └── query └── me_test.py </code></pre> <p>Contents of conftest.py:</p> <pre class="lang-py prettyprint-override"><code>print(&quot;CONFTEST LOADED&quot;) </code></pre> <p>Contents of me_test.py:</p> <pre class="lang-py prettyprint-ove...
1
1,270
getIntent().getExtras() returns null Android
<p>I want to open a fragment when the app receive a notification for further processing. In my MainActivity.java, <code>getIntent().getExtras()</code> always return <code>null</code>.</p> <p><strong>MyFirebaseMessagingService.java</strong></p> <pre><code> private void sendNotification(String title, String messageBod...
1
1,302
How do I keep data in a generic list after postback
<p>I am trying to populate a <code>Nested Repeater</code> by databinding it to a <code>Generic List</code>.</p> <p>The user will be able to add / remove values from this <code>Generic List</code> at will.<br> All this is neatly wrapped in an <code>Ajax Update Panel</code>.</p> <p>I am now having a problem that when t...
1
1,743
Image upload multiple maximum of four images only [php]
<p>This is my code in uploading an image. It is working but only one image. I wanted to change it so that it will enable my users to upload maximum of 4 images. Could anyone guide me on this?</p> <pre><code>if(isset($_FILES['image'])){ $file_name = $_FILES['image']['name']; $file_size =$_FILES['image']['size']...
1
1,550
Getting javascript variable value while scraping with python
<p>I know this is asked before also, but I am a newbie in scraping and python. Please help me and it would be very much helpful in my learning path.</p> <p>I am scraping a news site using python with packages such as <strong>Beautiful Soup</strong> and etc.</p> <p>I am facing difficulty while getting the value of <co...
1
1,167
Sqoop list-databases requires --connection-manager
<p>I'm using Hortonworks Sandbox HDP 2.4 and I can't use the <code>list-databases</code> tool, although <code>import</code> is working.</p> <pre><code>sqoop list-databases --connect jdbc:mysql://&lt;ip&gt;:&lt;port&gt;/ --driver com.mysql.jdbc.Driver --username=myusername -P </code></pre> <p>This the result that I g...
1
3,450
NS2 Network Simulator using TCL - CBR over UDP
<p>I am working on a project and I am having problems getting my simulations to work. I have a total of 22 nodes, and when I set up my connections, I am not getting packets on certain links. TO be more specific, I have connectivity and successful packet delievery from node 4 to node 2 and any of node 2's subnodes. When...
1
3,016
How to create and use a generic class EntityTypeConfiguration<TEntity>
<h1>Code</h1> <p>I have two very simple interfaces in my application</p> <p><strong>Represents entities that are saved in the database</strong></p> <pre><code>public interface IEntity { int Id { get; set; } } </code></pre> <p><strong>Entities that have only the <code>Nome</code> field as required field to save ...
1
1,085
Android Camera two preview from single camera
<p>I want to build application android about camera two preview from a single camera <a href="http://i.stack.imgur.com/sQHtb.png" rel="nofollow">enter image description here</a></p> <p>I tried build app,I using SurfaceView in Android Studio but I have problem, <a href="http://i.stack.imgur.com/fkROB.png" rel="nofollow...
1
5,781
Using RelativeLayout inside ScrollView doesn't yield in scrolling
<p>I'm trying to get my relative layout to scroll. I added the scroll view as a parent but when I tilt the phone, or emulator to horizontal, it doesn't scroll.</p> <p>I've tried a few different solutions but none of them seem to work. Some include: <a href="https://stackoverflow.com/questions/7900842/no-scrolling-in-s...
1
2,054
UIToolbar with UIBarButtonItem LayoutConstraint issue
<p>I'm creating a UIToolbar with UIBarButtonItem in it programatically. I'm not using .xib or storyboard for this ViewController. Here's the code of how I created it. </p> <pre><code>NSMutableArray *items = [[NSMutableArray alloc] init]; UIBarButtonItem *buttonItem; buttonItem = [[UIBarButtonItem alloc ] initWithTitl...
1
1,444
Removing Docker Kubernetes k8s images from local machine
<p>I had a problem, maybe easy but I couldn't handle this. How to remove all k8s containers and images from local machine?</p> <pre><code>gcr.io/google_containers/k8s-dns-sidecar-amd64 Up 36 minutes k8s_sidecar_kube-dns-6fc954457d-mwgvb_kube-system_fd5ebaed-c63c-11e7-b3c8-28d24484a79b_116 gcr.io/google_c...
1
1,223
How to use RecycleView in kivy?
<p>Based on the code that is posted on kivy docs about Recycle View, how do I change the data? how to change the size of the selectable labels? and especially if I want to have more widget on the screen, how do set the position of the list to be in the bottom side of the screen?</p> <p>I've tried to change the positio...
1
1,170
Caught exception while loading file struts-default.xml
<p>I'm not that new to Java. I've done plenty of stuff with it before. But I'm migrating from PHP to Java Servlet/JSP (which I <em>am</em> new to) and I can't figure out this error to save my life. I installed Tomcat6 using Ubuntu 9.04's Synaptic Package Manager and it works like a charm. But when I put struts in my WE...
1
2,087
How can I get my ScrollViewer to scroll the view area?
<p>I have a <strong>Grid</strong> inside a <strong>ScrollViewer</strong> inside a <strong>Border</strong> inside a <strong>StackPanel</strong> inside a <strong>Window</strong>.</p> <p>The ScrollViewer puts a <strong>scrollbar</strong> on the right, but it is <strong>not scrollable</strong>.</p> <p><strong>How can I g...
1
1,480
Regular window screen capture using openGL
<p>I'm trying to my desktop image capture. (All images, including the desktop output to the monitor)</p> <p>It's easy using window API (BitBlt or CImageClass) and it's not the way I want.</p> <p>I want do it using opengl. so I found glReadPixel funtion and window TRANSPARENT.</p> <p>But it just read pixel own Window...
1
1,209
Rendering SurfaceTexture to Unity Texture2D
<p>I came up with simillar questions earlier, but they weren't good clarified and right now I would like to take an advice what's wrong I'm doing in my code.</p> <p>So what I'm trying to do is rendering SurfaceTexture from Android plugin to Unity Texture2D.</p> <h2>Unity code:</h2> <pre><code>public class AndroidHan...
1
8,240
Django + PostgreSQL trigger causes "violates foreign key constraint"
<p>In my Django... schema? I have a model structure for Products, their prices and a historic (kind of a log) of the prices the products went through. </p> <p>A bit like the following (simplified for this question):</p> <pre><code>class ProductPricing(models.Model): price = models.DecimalField(max_digits=8, decim...
1
1,481
Visual Studio Code Intellisense and includePath
<p>I'm using the latest version of Visual Studio Code with the C/C++ extension on Linux. I'm trying to figure out why it is having problems finding my include files.</p> <p>In one .c file it shows the following:</p> <pre><code>#include "tournament.h" #include "layout.h" #include "random.h" #include "paytable.h" #incl...
1
1,173
How to properly show and hide GTK window in python
<p>So I have the following code (python 2.7) that checks for a combination of keypresses and shows/hides a gtk window with a few gtk entry boxes. The show/hide works until the window locks up and stops responding, and the inner part of the window turns black. I have to kill the process and start it up again once that w...
1
1,327
How can I auto-indent XML nodes with XML::LibXML?
<p>I'm adding nodes to my XML document as part some in-house processing, but cannot get <a href="http://search.cpan.org/perldoc?XML%3a%3aLibXML" rel="nofollow"><code>XML::LibXML</code></a> to auto-indent the added nodes.</p> <p>I get output like the following:</p> <p>Here's what I'm currently getting with <code>$xml-...
1
1,378
Cardview half width of the screen
<p>This is my layout. I am putting in a GridView. I want two columns in GridView which fill the width of the screen. Not able to make CardView layout to fill half of the screen. I followed this <a href="https://stackoverflow.com/questions/9470790/button-half-width-of-screen/9470815?noredirect=1#comment51626486_9470815"...
1
1,407
Mysterious CSS Selectors in Chrome Profiles
<p>I am running my website through the "Collect CSS Selector Profile" feature in my Chrome Developer Tools. My response time is alright with the exception of a long selector at the very top of my document, <a href="http://danyuschick.com/:1" rel="nofollow">http://danyuschick.com/:1</a> according to the profiler.</p> ...
1
6,254
Stay on same page after a form submit using ajax
<p>I am doing a post upload using ajax, but as I make a call to addPost.php it dose not return back and show result on same page it redirects to addPost.php and shows the result on that page.</p> <p>As I tried alert in success method of ajax still it redirects to the another page. </p> <p>Why is this happening so? Fo...
1
10,528
No View Found for id for Fragment in custom DialogFragment
<p>I know there are a lot of similar questions out there, but I havn't foud anyone who fixes my problem so here we go.</p> <p>In one activity I have this code: </p> <pre><code>TMTutorial tutorial = new TMTutorial(); tutorial.show(getSupportFragmentManager(), "blalba"); </code></pre> <p>TMTutorial looks like this:</p...
1
2,418
TypeError: Cannot read property 'plugins' of undefined for cordovaLocalNotification plugin
<p>I am developing hybrid application by using ionic platform. I am implementing cordovalocalnotification features but it prompt out with cannot read property 'plugins' of undefined. The following is my code. Anyone can help me to solve this problem.</p> <p>index.html</p> <p> </p> <pre><code>&lt;head&gt; &lt;meta ...
1
1,852
ExpandableListView with a header in extended LinearLayout: NullPointerException
<p>I have defined a simple custom <code>View</code> by extending <code>LinearLayout</code>. The crux is that it contains an <code>ExpandableListView</code> with a header view added:</p> <pre><code>public class MyView extends LinearLayout { private View mHeaderView; private ExpandableListView mListView; @SuppressWarnin...
1
2,403
java.net.SocketException: Software caused connection abort: recv failed java mail
<p><strong>UPD*</strong> issue seemed to be behind Windows firewall and/or antivirus problem, blocking the cport connecting, cause on Ubuntu I can connect to that port with no problem. I will investigate the cause and let you know what was blocking it. Special thanks to user <strong>Perception</strong> for helping me o...
1
5,009
kCFStreamErrorDomainSSL -9802 error but it's HTTPS URL
<p>So I know the ATS stuff and how to edit the info.plist to allow HTTP. However, the URL is <a href="https://api.map.baidu.com/api?v=2" rel="nofollow">https://api.map.baidu.com/api?v=2</a>. 0&amp;ak=1XjLLEhZhQNUzd93EjU5nOGQ&amp;s=1, which is a HTTPS request, but I still get </p> <pre><code>NSURLSession/NSURLCon...
1
3,805
How to make POST method in WCF Rest service working when data is passed in it?
<p>I have a wcf rest Service when i used GET method it works fine(they was passed along with the url). But i need to use post method and when there is no data to pass in post method it works fine. But when some data is added then it returns Bad Request error in IE and In mozila and chrome it just returns Error in the a...
1
1,715
extjs4.0 Row grid editor multi select combo showing the keys instead of values when non selected
<p>![ I am using extjs 4 . and using RowEditing plug, added multi selection combo box , The combo box is showing the keys instead of the values , But when I select any row it is showing the values , After that when I do some changes to the data in any gievn row, Then the values start showing .</p> <p>Also I could not...
1
5,803
Entity Framework: The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value C#
<p>I have a class Announcment:</p> <pre><code>namespace WebApplication2.Models { public partial class Announcment { public int Id { get; set; } [DisplayName("Subject")] public String Subject { get; set; } [DataType(DataType.MultilineText)] [DisplayName("Content")] ...
1
5,199
Laravel - How to include External JS file (contains Ajax )
<p>I use ajax to post the value I selected. It works fine with the following code. And I want to separate the <strong>jvascript</strong> file from <strong>index.blade.php</strong>.</p> <h1><strong>web.php</strong></h1> <pre><code>Route::get('Homepage', function (){ return view('frontend.index'); }); Route::post(...
1
1,743
Python TCP socket send receive large delay
<p>I used python socket to make a server on my Raspberry Pi 3 (Raspbian) and a client on my laptop (Windows 10). The server stream images to the laptop at a rate of 10fps, and can reach 15fps if I push it. The problem is when I want the laptop to send back a command based on the image, the frame rate drop sharply to 3f...
1
3,174
JPA Entity Manager Factory injection fails (JPA 2, Eclipselink, J2EE 6)
<p>I am trying to get a small sample web app up and running but I have run into a problem injecting the Entity Manager Factory.</p> <p>My persistence.xml is as follows;</p> <pre><code>&lt;persistence version="2.0" xmlns=" http://java.sun.com/xml/ns/persistene" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-ins...
1
1,810
Getting Exception while trying to execute axis2 service client
<p>I am trying to create a sample axis2 ServiceClient. It is throwing below error</p> <pre><code>org.apache.axiom.om.OMException: No meta factory found for feature 'default'; this usually means that axiom-impl.jar is not in the classpath at org.apache.axiom.om.OMAbstractFactory.getMetaFactory(OMAbstractFactory.jav...
1
1,398
Hibernate doesn't use PostgreSQL sequence to generate primary key
<p>I have a Java Server Faces project using Hibernate to store data into a PostgreSQL database.</p> <p>The problem I'm having is that Hibernate doesn't take the existing sequence (fifo_id_seq) into consideration while saving the data into the db; it saves with the id = 0;</p> <p>The answer may be very obvious, as I'm...
1
2,436
After updating android studio 3.0 unable to build the project
<p>android.enableAapt2=false added at the bottom of gradle.properties<br> gradle.properties</p> <pre><code>http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true android.enableAapt2=false </code></pre> <p>build.gradle Updated the gradle file af...
1
1,606
c# System.OutOfMemoryException in mscorlib.dll
<p>I am using VS 2017. I am getting "OutOfMemory in mscorlib.dll" exception in my vsix project. I am using Roslyn in this project, below is my method to find Field Declaration and references. </p> <pre><code>public static async Task FindFieldDeclarationAndReferencesAsync(string solutionPath, List&lt;Violation&gt; viol...
1
1,511
'nodejs' is not recognized as an internal or external command
<p>I'm creating a Node.js application using Express. Normally, to run the application locally, I type in <code>node app.js</code>, and everything works fine. However, now I'm using a book to learn how to create express apps, and it asked me to create a bin/www file that has the following in it:</p> <pre><code>#!/usr/b...
1
1,096
Minikube Ingress shows 404
<p>I am following this tutorial: <a href="https://cloud.google.com/container-engine/docs/tutorials/http-balancer" rel="nofollow noreferrer">https://cloud.google.com/container-engine/docs/tutorials/http-balancer</a>, but running it inside Minikube with <code>yml</code> files for each steps:</p> <p><strong>Step 1: Deplo...
1
1,094
Java function needed for finding the longest duplicated substring in a string?
<p>Need java function to find the longest duplicate substring in a string </p> <p><code>For instance, if the input is “banana”,output should be "ana" and we have count the number of times it has appeared in this case it is 2.</code></p> <p>The solution is as below</p> <p>public class Test{<br> public static v...
1
1,243
PySpark to PMML - "Field label does not exist" error
<p>I am new to PySpark so this might be a basic question. I am trying to export <strong>PySpark</strong> code to <strong>PMML</strong> using <strong>JPMML-SparkML</strong> library. When running an example from <a href="https://github.com/jpmml/jpmml-sparkml-package" rel="nofollow noreferrer">JPMML-SparkML</a> website: ...
1
1,306
Browser doesn't recognize inclusion of external javascript/jquery file
<p>In my Dynamic Web Project (Eclipse), developed with the Spring MVC framework, I have the JSP page below, placed in the folder WEB-INF/jsp/ :</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"&gt; ...
1
2,180
Realm instances and multithreading
<p>I'm trying to code something to get offline some content that could be watched later. This content is made of jsons, images, vidéos and pdfs : </p> <pre><code>{ "elements": [ { "id":"3b4c4f3da8bf9d1527010c5242e037b7", "type":"media" }, ... ], "id":"58088318ef0b4832f6c0e70b", "content...
1
6,424
How to change particular index image in flatlist renderitem react native on conditional
<p>I am showing some Audio data in Flat-list. Flat-list, I am showing in main class, But, RenderItem calling in separate class. So, Once I tapped particular row item, I am playing audio file. But, I have to change pause to play image. But, When I tried to change it, All images are getting changes. Bydefault, I am showi...
1
1,274
Multiple sites using Django and mod_wsgi on Apache
<p>I'm currently using two Django applications (say <code>A</code> &amp; <code>B</code>) hosted on the same domain (but being served on different ports) through Apache. I believe my setup is correct, but I'm randomly getting 500s on both the sites. The 500 on <code>A</code> (say for example) occurs mostly after a reque...
1
1,787
Using triple des(3des) of decrypt in java,get error of"javax.crypto.IllegalBlockSizeException: last block incomplete in decryption"
<p>I use the code like <a href="https://stackoverflow.com/questions/20227/how-do-i-use-3des-encryption-decryption-in-java">3des-encryption-decryption-in-java</a>,but when I use decrypt it,it got a error like this </p> <pre><code>javax.crypto.IllegalBlockSizeException: last block incomplete in decryption 07-17 11:27:27...
1
1,045