title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to create a zip file and download it?
<p>I am creating a zip file and downloading it. I am able to download all file files with out any error. But the files in the zip are placing in nested folders according to the files real path like C>Users>workspace>.metadata>.plugins>org.eclipse.wst.server.core>tmp0>wtpwebapps>finaldebrief while I am trying to zip 'fi...
0
1,254
Eclipse Make Error 127
<p>this is my first time using Eclipse, and my first time programming in a linux environment. So I might end up posting some semi-usless information, but I'm just trying to give what ever details I can.</p> <p><strong>The Issue:</strong> I'm trying to build a project, and I'm getting the following errors and warnings....
0
1,717
Creating an Objective-C++ Static Library in Xcode
<p>So I've developed an engine for the iPhone with which I'd like to build a couple different games. Rather than copy and paste the files for the engine inside of each game's project directory, I'd a way to link to the engine from each game, so if I need to make a change to it I only have to do so once. After reeding...
0
1,244
Laravel error: SQLSTATE[42S02]: Base table or view not found
<p>The full error: </p> <pre><code>SQLSTATE[42S02]: Base table or view not found: 1146 Table 'quotesapp.admin' doesn't exist (SQL: select count(*) as aggregate from `admin` where `username` = Admin) </code></pre> <p>I know the error is the mismatch between the name as it appears in the error log and how it's defined ...
0
1,069
Delete line in TXT file but keep everything else
<p>Hey all i am trying to figure out a way to delete something inside a text file but keep everything around it.</p> <p>An example of this would be:</p> <pre><code>SDfmifgn349234024jn4tnge0b04tnEFGm34tmn34t0egonkerglnk 318erg4nergpERGhmboergn4t34tmg054 fg94t34tskmsdglnEGgjr894ERG94mrg34tSDFS$45352ty GGreerkg0gm4m5055...
0
1,136
Alert Service in angular 2
<p>Below is how i am implementing alert services in my tutorial application but it is not working. What could be the problem please? None of the alert messages both on the login page and the registration page is working</p> <p><strong>login component</strong></p> <pre><code>login(){ this.authenticateLoginService....
0
1,121
gradle sync failed caused: java.lang.NullPointerException
<p>Today i stared my Android Studio and this error pop up, yesterday everything was fine... really don't know what could go wrong, so i tried reinstall android studio, Android SDK build tools are installed, android SDK tools 25.2.2 also</p> <p>help</p> <p>from module app</p> <pre><code>apply plugin: 'com.android.app...
0
2,439
Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given... what I do wrong?
<p>I try make php login but I get this error: <code>Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given,</code> what I do wrong?</p> <p>register.php</p> <pre><code>&lt;!doctype html&gt; &lt;html lang&quot;fi&quot;&gt; &lt;head&gt; &lt;link rel=&quot;icon&quot; type='image/png' href='images/logo.p...
0
1,197
Android ListView's setOnItemClickListener from PopupWindow not called
<p>I'm trying to show a ListView from a PopupWindow. but when I'm try to call ListView's setOnItemClickListener nothing to haapen. Here It Java file</p> <p><strong>PopupWindowActivity.java</strong></p> <pre><code>public class PopupWindowActivity extends Activity { String[] data = { "DATA 1", "DATA 2", "DATA 3", "...
0
1,418
The instance of the entity type cannot be tracked because another instance with the keyvalue is being tracked
<p>I am basically trying to implement CRUD using EntityFrameWork core and .Net core 3.1. I have an issue with my update operation where I am not able update the context with the modified value. I am using postman to initiate the request.</p> <p>As you can see in the code below, I am trying to check if that customer exi...
0
1,297
How to customize Collabnet Subversion Edge repository access rules to forbid users from deleting files(no-delete)
<p>Some developers in my team has gone mad...they sometime delete a file. I've been assigned to stop them from doing that. So far I tried following(Google is my best friend)</p> <p>Under "Repository Access Rules" I've </p> <pre class="lang-perl prettyprint-override"><code>######################SVN Groups#############...
0
1,285
No X509TrustManager implementation available htmlunit
<p>For some reason my code with everything imported correctly, using Htmlunit causes an error.</p> <pre><code>package htmlunittesting; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlAnchor; import com.gargoylesoftware.htmlunit.html.HtmlDivision; import com.gargoylesoftwa...
0
1,307
How do I create a reactive plot using ggplot in Shiny application
<p>I have spent several hours trying to figure out how to generate a bar plot using ggplot2 for a shiny app I want to create. The ui works fine, however; the server function generates an empty plot. </p> <p>The issue is with renderPlot function. I believe I must not be passing the reactive values properly to the aes_s...
0
1,424
Handshake exception in java webservice client
<p>i am trying to implement a webclient for a secure https connection. I imported the server certificates and added it to java keystore. but when i try to run the client i got the following exceptions:--</p> <pre><code>Oct 18, 2013 3:25:25 PM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging WARNING: Interce...
0
2,139
Archive Page for Custom Post Type
<p>I have created a custom post type called news and added certain news. Now i want to display it in archive page. I have added the 'has_archive' => 'true' in the functions file. My archive page code is: </p> <pre><code>&lt;?php $args = array('post_type' =&gt; 'news', 'post_status' =&g...
0
1,422
ANR caused by Input dispatching timed out - while trying to get my public IP address
<p>I get the following complete error message: Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 2. Wait queue head age: 9379.7ms.)</p> <p>See below the code + traces. It s...
0
5,802
.NET MVC 3 Adding attributes to SelectListItem in C#
<p>So I'm trying to stylize the tag in a dropdown. My MVC helper is set up kind of like this but the real thing pulls from the DB, so the data is not hard coded.</p> <pre><code>@{ List&lt;string&gt; ListOfText = new List&lt;string&gt; { "FirstThing","SecondThing","ThirdThing"}; List&lt;string&gt; ListOfValue ...
0
1,110
JSF 2.0 Update a primefaces dialog not working the first time
<p>I have a simple form that asks the user to input a text. Then when the user clicks the link, a dialog is showed with the value entered by the user. The first issue I have is that the dialog does not show.</p> <p>The other issue concerns the update. When the form is displayed for the first time, the HTML code is cor...
0
1,664
client and server cannot communicate, because they do not possess a common algorithm - SSLStream
<p>There are lot of similar questions already answered and none of the answers help my current scenario.</p> <p>In the windows service we have TCPL SSL stream and client connecting to the stream.</p> <p>I have created a .NET Client and am able to access the server successfully with Strict TLS 1.2 using IIS Crypto.</p...
0
1,242
Spring Boot Webflux/Netty - Detect closed connection
<p>I've been working with spring-boot <code>2.0.0.RC1</code> using the webflux starter (<code>spring-boot-starter-webflux</code>). I created a simple controller that returns a infinite flux. I would like that the Publisher only does its work if there is a client (Subscriber). Let's say I have a controller like this one...
0
1,099
Expires and CDNS - YSlow Problems
<p><em>Let me first mention that I have done some digging but can't seem to find a proper answer to what I'll looking for.</em></p> <p>I'm working on a site where I am using a few external resources:</p> <ul> <li>Google Analytics (//www.google-analytics.com/analytics.js)</li> <li>Latest jQuery version (<a href="http:...
0
1,173
InputText inside Primefaces dataTable is not refreshed
<p>I need to have inputTexts inside primefaces datatable when form is in editable mode. </p> <p>Everything works properly except form cleaning with immediate="true" (without form validation). Then primefaces datatable behaves unpredictable. After filling in datatable with new data - it still stores old values.</p> <p...
0
1,414
How to Disable Row in Antd Table
<p>so I worked on a project using react js with umi js and antd as additional dependencies,</p> <p>I had a problem when I got the task to disable each row in the antd table,</p> <p>I tried to read the documentation antd but got nothing,</p> <p>is it possible that you can do that? or there is another possible way to ...
0
5,807
how to set value of FormControl inside FormArray
<p>I have a project using Angular 5 at the moment and I am new to this angular concept.</p> <p>I have a component where user can choose which module they want to use ... module has interface like: </p> <pre><code>export interface ModuleComponent{ id: number; moduleName: string; level: number; parentId...
0
3,101
Should it matter if I use bootstrap.js or all the 14 separate .js -files? Trying to build affix behaviour
<p>When I download Bootstrap, it includes bootstrap.js and bootstrap.min.js -files. I can use them and jQuery.js to make the navbar collapse for example just fine. </p> <p>But when I look at the source from any site in bootstrap website, it always has these separate .js files:</p> <pre><code> &lt;!-- Le javascript ==...
0
1,126
unable to call bootstrap modal window using javascript in chrome (works in firefox)
<p>I have included the sample code from twitter-bootstrap for a modal window. If I click on the button it opens up the modal window. However if I try to show the modal window through javascript I get the following error - </p> <pre><code>$("#myModal").modal("show") TypeError: Object [object Object] has no method 'mod...
0
3,783
Detecting MMS messages on Android
<p>I was searching through the internet for this topic and couldn't find any satisfying answer... I'm trying to detect MMS messages (incoming at least for start). And I've decided to go through the way of detecting changes in the contents. I've downloaded Android codes and made sure that I'm using correct content provi...
0
2,443
Delete row from table and use bootstrap modal as confirmation
<p>I'm looking to delete a row from a table of users in my codeigniter framework project.</p> <p>I want to click the delete button, and have a modal window popup asking the user, if they are sure to delete the record, and upon clicking yes I would like to display another one confirming that it is complete.</p> <p>I'm...
0
1,666
How to get additional user attributes from LDAP in Spring Security?
<p>I'm currently trying to develop a Spring Boot application whose purpose it will be to manage user entries in our LDAP directory.</p> <p>LDAP login already works; so does the lookup of groups a user is member of.</p> <p>Additionally, I'd like to populate the Spring Security <code>Principal</code> object with some m...
0
1,317
Spring 3 and JUnit 4 (autowiring)
<p>I am new to Spring MVC and JUnit. Basically I want to autowire the service class and this class should be loaded in spring context.</p> <p>Service</p> <pre> @Service public class FundService { @Autowired FundDAO fundDAO; /** * @return */ public List get...
0
2,360
c:when and c:if don't work
<p>I can access my variable stored in a backing bean from my JSF2 page, so things like</p> <pre><code>&lt;h:outputText value="#{myBean.myValue}"/&gt; </code></pre> <p>work, and the value (which is an <strong>int</strong> btw.) prints okay. However, when trying to use this value in conditional expressions within c:if ...
0
2,201
how to set camera Image orientation?
<p>In my application I have added feature of image uploading,It works fine with all the Images except camera image,whenever I browse camera image from gallery and portrait image rotate in 90 degree..following is my snippet code..can anyone help me?I followed so many tutorials but all of them work well in kikat..but whe...
0
1,065
React-native insert a value from render array to new array
<p>What I'm trying to do is insert a value from the old array that I have render to the new array.</p> <p>For now it can render the data that I want perfectly but when I push it into new array it become [id : undefined]</p> <p>How do call ticketId that I render from the ListView to save into myState array?</p> <pre>...
0
1,457
Datagridview cell value change update database
<p>I have retrieved data from Mysql database into a DataGridView1. Let us suppose I am in Row 0. When I change the contents of Row 0, Cell 1 and press enter key or a button, the Update query should modify that row, but I am unable to modify the value of the cell. The cell maintains its previous value when i reload data...
0
2,191
java.sql.SQLException: ORA-00936: missing expression
<p>Below I am creating table.</p> <pre><code> public static final String CREATE_SQL = "CREATE TABLE " +DATABASE_TABLE + "(ID number(10,0), " + " CGUID VARCHAR(255), " + " PGUID VARCHAR(255), " + " SGUID VARCHAR(255), " + " USERID VARCHAR(255), " + " ULOC VARCHAR(25...
0
1,777
Nginx + php-fpm: 504 timeout error - upstream timed out (110: Connection timed out)
<p>Is the first time we set up Nginx and PHP-FPM. A week back we were using Apache to serve a webpage, but we have decided to try out the Nginx combination and we are facing several problems.</p> <p>We have a Virtual Machine running Ubuntu 14.04 LTS Trusty. Among other utilities, the machine is running Nginx with PHP-...
0
3,047
Strange Oracle XMLType.getClobVal() result
<p>I use Oracle 11g (on Red Hat). I have simple regular table with XMLType column:</p> <pre><code>CREATE TABLE PROJECTS ( PROJECT_ID NUMBER(*, 0) NOT NULL, PROJECT SYS.XMLTYPE, ); </code></pre> <p>Using Oracle SQL Developer (on Windows) I do:</p> <pre><code>select T1.PROJECT P1 from PROJECTS T1 where PROJECT_ID ...
0
1,529
Hibernate and @JoinFormula: org.hibernate.mapping.Formula cannot be cast to org.hibernate.mapping.Column
<p>I'm trying to write a hibernate adapter for an old database schema. This schema does not have a dedicated id column, but uses about three other columns to join data.</p> <p>On some tables, I need to use coalesce. This is what I came up with so far:</p> <p>About the definition: </p> <ul> <li>A car can have element...
0
2,398
@Transactional on @Async methods in Spring
<p>I have a scenario where I call three <code>@Transactional @Async</code> methods. Everything works fine except all three methods have their own transaction context. I want to execute them in calling method's transaction context.</p> <p>My Calling method is like this:</p> <pre><code> @Transactional public void exec...
0
1,060
This Row Already Belongs To This Table
<p>I get an error 'this row already belongs to this table' from the following code:</p> <pre><code>public static DataTable AddNewAllocations(string pCaseNo, ref DataTable pTable) { try { string sqlText = "SELECT UserID FROM tblUsers;"; aSqlQuery aQ = new aSqlQuery(sqlText, "...
0
1,243
jQuery error - Cannot call methods on tabs prior to initialization
<p>I updated to the latest version of jQuery and I see this error. </p> <p><strong>Error:</strong></p> <blockquote> <p>Uncaught Error: cannot call methods on tabs prior to initialization; attempted to call method '<code>div.panes &gt; div</code>' </p> </blockquote> <p><strong>Complete Snippet:</strong></p> <p><st...
0
1,382
System.Text.Json Deserialize nested object from API call - Data is wrapped in parent JSON property
<p> I have an API JSON response that wraps the data content in a <code>data</code> property, which looks like this:</p> <pre class="lang-cs prettyprint-override"><code>{ "data":{ "email":"admin@example.com", "mobile":"+1555555123", "id":4, "first_name":"Merchant", "last_name":"Vendor...
0
1,790
Pip - Could not install packages due to an EnvironmentError
<p>I was installing pandas in pip using <code>sudo pip install pandas</code> and this huge error happened.</p> <pre><code>Could not install packages due to an EnvironmentError: [('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/dateutil/parser.pyc', '/private/tmp/pip-uninstall-n5twe_/System/...
0
2,815
Graphql - How to perform where clause
<p>I am new to graphql and I am struggling with a query. I want to return a user by their email address</p> <p>I have a type defined call V1User and it has the following fields id, email, password, role</p> <p>What needs to change in this query to return a user based on email?</p> <pre><code> query GetAllV1User {...
0
1,027
java.lang.ClassNotFoundException: javax.ws.rs.MessageProcessingException
<p>I am deploying a war to Tomcat 7.0.57. This code uses Jersey 2.x Client to communicate with a Rest endpoint and exposes its own Rest endpoints using CXF (AKA the war's endpoint). </p> <p>When I hit one of the war's endpoints, the code seems to work and returns a response without issue from the server's perspectiv...
0
1,691
XML Return from an Oracle Stored Procedure
<p>Unfortunately most of my DB experience has been with MSSQL which tends to hold your hand a lot more than Oracle. What I'm trying to do is fairly trivial in tSQL, however, pl/sql is giving me a headache.</p> <p>I have the following procedure:</p> <pre><code> CREATE OR REPLACE PROCEDURE USPX_GetUserbyID (USERID U...
0
1,375
how can I clear growing heap?
<p>I have a project which works as a presentation of ImageViews with animation of them by clicking. It is realized as a ViewFlipper with go_in and go_out animation. Each ImageView is featured in XML for each slide of presentation. App is made for tabs with Android 3.0 and higher. Size of heap grows with each switching ...
0
1,152
Hadoop FileSystem closed exception when doing BufferedReader.close()
<p>From within the Reduce setup method,I am trying to close a <code>BufferedReader</code> object and getting a <code>FileSystem</code> closed exception. It does not happen all the time. This is the piece of code I used to create the <code>BufferedReader</code>.</p> <pre><code> String fileName = &lt;some HDFS file p...
0
1,078
JPA Custom Query with multiple Inner Joins
<p>I am new to spring boot and need help on custom JPA Query with multiple Inner Joins. Basically I need to convert the following SQL query into JPA Query: </p> <pre><code>SELECT count(uc.certifications_groups) FROM firms f INNER JOIN firms_users_map fum on fum.firm_realm_id = f.firm_realm_id INNER JOIN us...
0
1,336
Change TextureView Size at Runtime
<p>I am working on streaming a mp4 to a textureView for a app i am currently working on. i have the TextureView displaying the video however i need to resize it to match the screen size on rotation. After much trial and error it seems that the problem is that the TextureView cannot be made larger than the containing vi...
0
1,143
HTML5 audio is not playing in my React app in localhost
<p>I'm making an mp3 player with React.js and the HTML5 web audio javascript API. I've just been learning React for two weeks so I'm just getting used to the structure and setup (with components etc) however have several years experience with JavaScript.</p> <p>I had the mp3 player working when using React within the ...
0
2,562
org.json.JSONException: End of input at character 0
<p>I have been stuck on this for a while. Simply cannot figure out whats wrong. A pair of fresh eyes would be very helpful. I keep on getting the org.json.JSONException: End of input at character 0 of and cannot figure it out.</p> <p>My JSONParser</p> <pre><code> public JSONObject makeHttpRequest(String url, String m...
0
5,305
How Can I Test a .catch Promise Return in AngularJS using Jasmine?
<p>I'm fairly new to Javascript and just learning AngularJS but I've gotten most of my test cases to work with some great examples I've found. Unfortunately I can't seem to find anything to help me test my current case. </p> <p>I'm testing a Controller using a mocked Service whose method returns a promise. I would ...
0
2,253
JPA connection closed with EntityManager
<p>Please excuse the possible improper formatting of this post as I have never posted here before. I have a Spring MVC web service running that calls into several DAO's that use JPA/hibernate to interact with a SQL Server database. The connection to the database seems to get closed after the web service has been runn...
0
4,312
Spring: Returning empty HTTP Responses with ResponseEntity<Void> doesn't work
<p>We are implementing a REST API with Spring (4.1.1.). For certain HTTP requests, we would like to return a head with no body as a response. However, using <code>ResponseEntity&lt;Void&gt;</code> doesn't seem to work. When called with a <code>MockMvc</code> test, a 406 (Not acceptable) is returned. Using <code>Respons...
0
1,681
A gap added in Gmail, inside a html signature from outlook
<p>I've created an html signature I need to use in Outlook. Following recommendations, I've used a table layout, given all images and even td's, tr's and the table itself specific height and width, 0 padding and margin, and even tried adding those in both css and in the old-fashion way on the actual tags.<br> In outloo...
0
3,838
Problems with SO_BINDTODEVICE Linux socket option
<p>I have a PC with two network cards. One (<code>eth0</code>) is for LAN/internet and the other for UDP communication with one microcontroller device. The microcontroller has an IP (192.168.7.2) and a MAC address. The second pc network adapter (<code>eth1</code>) has 192.168.7.1.</p> <p>The microcontroller has a very...
0
2,804
Detecting and adjusting for negative zero
<p>I have some code that has been port from Java to C++</p> <pre><code>// since this point is a vector from (0,0,0), we can just take the // dot product and compare double r = point.dot(normal); return (r&gt;=0.0); </code></pre> <p>But in C++ <code>r</code> can be either <code>+0.0</code> or <code>-0.0</code>, when <...
0
1,106
Transforming an xml to another xml with STaX takes a lot of time
<p>I'm using the following code to transform a big xml stream to another stream:</p> <pre><code> import java.io.ByteArrayInputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.io.Writer; import javax.xml.stream.XMLEventReader; import javax.xml.st...
0
1,964
OpenMP : Parallel QuickSort
<p>I try to use OpenMP to parallelize QuickSort in partition part and QuickSort part. My C code is as follows:</p> <pre><code>#include &quot;stdlib.h&quot; #include &quot;stdio.h&quot; #include &quot;omp.h&quot; // parallel partition int ParPartition(int *a, int p, int r) { int b[r-p]; int key = *(a+r); // use...
0
1,314
Unexpected keyword argument 'ragged' in Keras
<p>Trying to run a trained keras model with the following python code:</p> <pre class="lang-py prettyprint-override"><code>from keras.preprocessing.image import img_to_array from keras.models import load_model from imutils.video import VideoStream from threading import Thread import numpy as np import imutils import ...
0
1,935
tomcat-maven-plugin using Tomcat 7 - tomcat:deploy works, tomcat:undeploy doesn't
<p>I have a working configuration for tomcat:deploy, but when I come to undeploy the WAR, I get the following error which has left me foxed:</p> <pre><code>[INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com:DocBookScratchProject:war:0.1.0.BUIL...
0
12,436
void Start() not being called
<p>I'm making a game in Unity 4.3 with 2D mode. But for some reason the <code>void Start()</code> function isn't being called on the start of the scene. I even attached a <code>Debug.Log("Hello");</code> to the start function but it doesn't even do that so I know that the <code>Start()</code> function isn't being calle...
0
1,245
NPM install fails with node-gyp
<p>We are having problems running <strong>"npm install"</strong> on our project. A certain file cannot be found :</p> <pre><code>fatal error C1083: Cannot open include file: 'windows.h' </code></pre> <p>It appears to be coming from the <strong>node-gyp</strong> module : </p> <blockquote> <p>c:\Program Files\node...
0
1,738
Selecting value from dropdown using Python + Selenium
<p>Please help me with selecting a value from the dropdown. I was able to login to the website but unable to select a value from the dropdown list after logging in. I had tried few solutions/suggestions found online, but couldn't get that to work. Please see below for the code and error with HTML.</p> <p>HTML:</p> <p...
0
1,309
upgrading from MVC4 to MVC5
<p>I have made that dreadful error of upgrading from MVC4 to MVC5 pre-release by updating the razor, and mvc webpage in my references I have <code>System.Web.Mvc</code>, <code>System.Web.Webpages</code>, <code>System.Web.Webpages.Razor</code> and <code>System.Web.Razor</code> as version v4.0.30319, when I run my applic...
0
1,714
JPA persist entities with one to many relation
<p>Config</p> <ul> <li>EcliplseLink 2.3.2</li> <li>JPA 2.0</li> <li>The entities are auto created from the db schema from netbeans with <em>Entity Classes from Database...</em> wizard.</li> <li>The controller classes are auto created from netbeans with <em>JPA Controller Classes from Entity Classes...</em> wizard</li>...
0
2,060
error in C using malloc : corrupted size vs prev_size
<p>I found an answer for python but I didn't understand it.</p> <p>The code is a modified merge sort. It is working fine for a small number of inputs I checked upto 10. But when I run it through an online judge, when number of inputs were high (500) it gave me this error:</p> <pre><code>Error in 'a.out': corrupted si...
0
1,374
Reading CLOB column is slow
<p>Hopefully someone can shed a little light on an issue that I'm currently having with an Oracle DB - I'm sure it's something simple!!</p> <p>I've managed to recreate this in a sample, so here is the DB structure:</p> <pre><code>CREATE TABLE MyTable( ixMyTable NUMBER, clobData CLOB ) / CREATE OR REPLACE PAC...
0
1,138
Unit testing AngularJS controller with $httpBackend
<p>For the life of me I can't get $httpBackend to work on a controller that does an $http get request. I've tried for hours now =)</p> <p>I've reduced this to the simplest form I can below. The test passes if I </p> <ul> <li>comment out the $http.get() request in the controller</li> <li>comment out the "httpMock.fl...
0
1,034
How to print properly HTML table do PDF using jspdf.js?
<p>here is what i am trying to achieve, i trying to print a html table that included HTML table inside too loop my detail (i have header and detail) data. But when i use jspdf.js to print my HTML table, the table in the pdf is broken, is not look like the HTML, the looping table inside the main table is messy, look lik...
0
2,568
Segmentation fault and MPI
<p>In my program I need to do some matrix multiplication using MPI. When I run my program, I get the following error:</p> <pre><code>===================================================================================== = BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES = EXIT CODE: 139 = CLEANING UP REMAININ...
0
2,055
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first
<p>I am creating an app in <code>play 2.2.1</code> and trying to add email facility to it.For that I have added dependency in my build.sbt file.But getting an exception explained below</p> <p>my code</p> <pre><code> String smtpHost = Play.application().configuration().getString("smtp.host"); Integer sm...
0
1,836
Excel VBA query external .aspx page and retrieve data
<p>I've been struggling with this for about a day. Basically, I want to write an excel macro to loop through a list in excel, query a webpage and retrieve some data. Ideally I just want to retrieve the data I need so I can place it in an adjacent cell, but I'd do whatever it takes at this point.</p> <p>The page is ASP....
0
1,308
How do I inject a logger into a field in the sample spring boot application?
<p>What I want is to make spring autowire a logger. So, in other words, I want to have this working:</p> <pre><code>import javax.servlet.http.HttpServletResponse; import org.slf4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springf...
0
1,746
bootstrap & navbar collapse don't work react (create-react-app)
<p>I'm trying to use: bootstrap 4 navbar and it wouldn't collapse on react. <a href="https://getbootstrap.com/docs/4.0/components/navbar/#supported-content" rel="noreferrer">https://getbootstrap.com/docs/4.0/components/navbar/#supported-content</a></p> <p>could someone explain why? I'm assuming this could be because w...
0
1,212
React native card (native base) onPress doesn't work
<p>I want to display cards with news from a JSON file. Getting the JSON works fine, but I want to add a onPress event, so I can click the card and navigate to the article.</p> <p>My card view:</p> <pre><code>&lt;Card&gt; &lt;CardItem button onPress={this._OnButtonPress(news.id)}&gt; &lt;Left&gt; &lt;Body&...
0
2,073
How to validate phone number in django?
<p>I'm currently using phonenumbers package as a validation method to my django's UserCreationForm for its phone number field. In my current code I am using a get method to retrieve the phone number from its field and then do the validation. If the entered number does not exists, a form error is supposed to pop up and ...
0
1,025
React component run error.Uncaught Error: Minified React error #31
<p>I am trying to return some <code>html</code> label when write <code>render</code> in my component. Code like this: </p> <pre><code> import React, {Component} from 'react'; import Request from 'react-http-request'; class NameForm extends React.Component { constructor() { super(); this.state = {value: '', r...
0
1,932
org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type:
<p>I have multipart file in the first place and I want to send it to camel pipeline and save this file with original name.</p> <p>my code:</p> <pre><code>@Autowired ProducerTemplate producerTemplate; ... producerTemplate.sendBody("seda:rest_upload", multipartFile); </code></pre> <p>on another side I have:</p> ...
0
3,399
requestParameters returning "Invalid mapping expression specified: true"
<p>I'm configuring a lambda function's API gateway integration with the <a href="https://github.com/serverless/serverless" rel="nofollow noreferrer" title="Serverless Framework">Serverless Framework</a> version 0.4.2.</p> <p>My problem is with defining an endpoint's request parameters. The <a href="http://docs.aws.amaz...
0
1,076
CSS: table {width:100%; display:block;} not working in Firefox
<p>I have an html table within a div of a specific size. I want the table to apply margin collapse and be 100% wide. Here is my code. It renders how I want it to in IE8 and incorrectly in Firefox. Firefox may be doing the spec correctly, but whatever. How do I fix my css to work in both browsers?</p> <pre><code>&lt;!D...
0
1,064
How to give spacing between rating bar stars android?
<p>Hi I am using custom rating bar with custom images. I need to provide space between stars. When I increase minimum height and maximum height, star image remains same.</p> <pre><code> &lt;RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="match_parent" android:layout_height="wrap_c...
0
1,331
Spring MVC suddenly class Not found DispatcherServlet
<p>my WebApp was working and everything was fine until i tried to implement some fileupload. But it didnt worked so i just returned everything to the previous state. But since then its not working. My Stacktrace:</p> <pre><code>Feb 11, 2014 4:11:35 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR ba...
0
5,661
Autowiring in Quartz multiple Jobs with Spring Boot not working
<p>I'm try to use quartz scheduler in spring. I get below exception when configuring multiple jobs </p> <blockquote> <p>Parameter 0 of method jobTrigger in Job2 required a bean of type 'org.quartz.JobDetail' that could not be found.</p> </blockquote> <p>quartz - v2.3, Spring - v4.2.x</p> <p>Config Class</p> <pre...
0
1,550
java.lang.ClassNotFoundException: org.springframework.beans.factory.access.BeanFactoryReference
<p>After a long search and no answer to my case, here I am. Trying to deploy a "Struts 2 + Maven + Spring" WAR project into Wildfly 11, using Eclipse Oxigen's default to all.</p> <p>The stack is as it follows:</p> <pre><code>15:04:27,325 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0027: Sta...
0
3,661
Android BluetoothGatt - status 133 - register callback
<p>First of all I read <a href="https://stackoverflow.com/questions/20069507/solved-gatt-callback-fails-to-register">SOLVED: GATT callback fails to register</a> and took the steps suggested in that post to solve this issue with no success. The recommended fix in there if you haven't read it is to make all BLE calls fro...
0
2,312
how do i get my JSON into android listview?
<p>I'm a new programmer and I'm making an app which can get data from MYSQL to php and then display on android. I've been trying to find a solution but none of the tutorials I've seen so far seems to work for me, I've only managed to get one object from json into a single textview. But what I really need is to get data...
0
1,234
MATLAB to Python Code conversion (NumPy, SciPy, MatplotLib?)
<p>I'm trying to convert the following code to Python from MATLAB for an EEG Project (partly because Python's slightly cheaper!)</p> <p>Hopefully someone can point me in the right direction: I've started to alter it but got bogged down: Particularly trying to find equivalent functions. </p> <p>Tried scipy.org (NumPy_...
0
1,634
C++ - How to use a vector of reference_wrapper
<p>I'm trying to refactor part of a pathfinding algorithm I had that used pointers to not use pointers. Unfortunately I'm not that knowledgable about references. I get the error: <code>Invalid operands to binary expression ('std::__1::reference_wrapper&lt;Tile&gt;' and 'const std::__1::reference_wrapper&lt;Tile&gt;')</...
0
2,246
Using putSerializable in Android
<p>Is putSerializable broken?</p> <p>When I pass null with putSerializable the FillSummary.class starts as it should. If I however pass the a TestSerial object than Android force closes.</p> <p>What do I have to do to get a custom object transfered via a Bundle? </p> <pre><code>public class TestSerial implements Ser...
0
2,199
Wiremock error: Request was not matched as there were no stubs registered
<pre><code>@ClassRule public static WireMockRule wireMockRule = new WireMockRule(9898); @Test public void createXmlFile() { stubFor(get(urlPathEqualTo("/data/racing/")) .willReturn(aResponse() .withBody(loadJSONFile("unibet-demo-input.json")))); } </code...
0
1,270
How do I automatically scale images in flutter to fit every resolution without overflow and scrolling?
<p>I'm new and my English is pretty bad. Please answer easy to understand... I already tried using the AspectRatio Widget but it, combined with a Center widget, moved my buttons in the center. Apart from that it worked but the buttons really need to stick to the side. This is my code so far:</p> <pre><code>import 'pack...
0
3,162
Google Chrome Javascript issue in getting user audio - The AudioContext was not allowed to start
<p>I have this Javascript code which I am using to capture audio input from user when they click on a microphone button. This code works in Mozila Firefox but when I am using it in Google Chrome it does not work and shows this warning/error in console - <code>The AudioContext was not allowed to start. It must be resume...
0
2,943
Android - Constraint Layout inside another Constraint Layout background not showing
<p>I'm working on an Android activity in which I want to have a header, and the content below the header. I want to have background image that is streched just on the content, but not on the header.</p> <p><a href="https://i.stack.imgur.com/aBaQ8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/aBaQ8.png" alt...
0
2,830
Spring Security with Spring Boot: Mix Basic Authentication with JWT token authentication
<p>I am trying to get Spring Security's basic authentication to work side by side with JWT token authentication with no success. I have implemented basic authentication for my web console and JWT to secure a number of API endpoints. Here's my config:</p> <pre><code>@EnableGlobalMethodSecurity(prePostEnabled = true) pu...
0
1,183
Spring MVC 404 error
<p>I'm going crazy and can't understand what the problem is:</p> <p>I have the following structure: </p> <pre><code>SpringMVC +WebContent -web-inf -web.xml -springMVC-servlet.xml -index.jsp -security -login.jsp </code></pre> <p>web.xml</p> <pre><code>&lt;display-name&...
0
1,771
Python Pandas replace NaN in one column with value from corresponding row of second column
<p>I am working with this Pandas DataFrame in Python.</p> <pre><code>File heat Farheit Temp_Rating 1 YesQ 75 N/A 1 NoR 115 N/A 1 YesA 63 N/A 1 NoT 83 41 1 NoY 100 80 1 YesZ 56 1...
0
1,242
Qsort Comparison Function
<p>I am a beginner to C and I am trying to understand the comparison function needed for the qsort function.</p> <h2>Part One: Syntax</h2> <p>A simple suggested use is this (I have included some main() code to print the results as well):</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; int values[]...
0
1,049
Add json data to existing array
<p>I have 2 json files,services.json and services_show.json.At page load am fetching the data from services.json and it working properly.On a button click,i need to fetch the contents from service_show.json and append to the services array but it does not work.</p> <pre><code>var beautyApp = angular.module('findbeauty...
0
1,100