title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
get data from server with node.js
<p>i want to do an ajax call to node.js with get method that the result of the ajax call will show in the same html page that i call the ajax function</p> <p>this is the html code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;title&gt;Sing-in Page&lt;/title&gt; &lt;link rel="styles...
0
1,054
Modify Regular Expression for "dd/MM/yyyy"
<p>I have the regular expression for "dd/MM/yyyy" which works fine, </p> <pre><code>"^([0]?[1-9]|[1][0-2])[./-]([0]?[1-9]|[1|2][0-9]|[3][0|1])[./-]([0-9]{4}|[0-9]{2})$" </code></pre> <p>but I want to modify this so it also accepts 00/MM/2014. My program interpret this as all the days in a specific month. For example...
0
1,142
BitmapFactory: Unable to decode stream: java.io.FileNotFoundException:open failed: EACCES (Permission denied) on Android Q
<p>I granted permissions but <code>BitmapFactory.decodeFile()</code> returns this error:</p> <pre><code>E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /storage/emulated/0/DCIM/Camera/IMG_20200130_165131.jpg: open failed: EACCES (Permission denied) </code></pre> <p>I want to take the last ima...
0
1,263
Failed to load ApplicationContext with @ContextConfiguration(classes={ ... })
<p>I am trying to run some spring test using Java and annotations configuration. I have two configuration classes in the test packages:</p> <pre><code>@Configuration @ComponentScan(basePackages = "com.mypackages") public class TestConfig { @Bean public MyService getMyService() { return new MyServiceIm...
0
9,271
Massive overfit during resnet50 transfer learning
<p>This is my first attempt at doing something with CNNs, so I am probably doing something very stupid - but can't figure out where I am wrong... </p> <p>The model seems to be learning fine, but the validation accuracy is not improving (ever - even after the first epoch), and validation loss is actually increasing wit...
0
2,379
maven surefire test failed after upgrade to JDK 8
<p>I have multi module projects. All my tests were passed under JDK 7. But when I upgraded to JDK 8, the maven surefire run twice (it run twices in JDK 7 as well). The first test passed but the second one failed.</p> <p>I have tried upgrade the the latest sure-fire but no luck.</p> <p>Does any one know how to solve t...
0
14,360
Factory Pattern without a Switch or If/Then
<p>I'm looking for a simple example of how to implement a factory class, but <em>without</em> the use of a Switch or an If-Then statement. All the examples I can find use one. For example, how could one modify this simple example (below) so that the actual factory does not depend on the Switch? It seems to me that t...
0
1,459
setting serial port interruption in linux
<p>I am trying to set the interruption for a serial port in ubuntu (in program written in C), but it does not work. I have checked that the serial communication works correctly without the interruption, so I may be setting something wrong. The code is the following:</p> <pre><code> #include &lt;stdio.h&gt; #inc...
0
1,273
Magento Custom Module Admin Permissions
<p>I have created a few custom modules for Magento and when I try to assign permissions to the module (check the checkbox) when I click save it unchecks the box.</p> <p>Anyone have any ideas? It sort of sounds like there is something off in my config.xml file so I will post it here just in case:</p> <pre><code>&lt;co...
0
2,181
how to remove all the childnodes of the specified xmlnode in C# 4.0?
<p>This is my xml.</p> <pre><code>&lt;Document&gt; &lt;page no="1"&gt; &lt;Paragraph no="1"&gt; &lt;Line&gt;line1&lt;/Line&gt; &lt;/Paragraph&gt; &lt;Paragraph no="2"&gt; &lt;Line&gt;line2&lt;/Line&gt; &lt;/Paragraph&gt; &lt;/page&gt; &lt;page no="2"&gt; &lt;Paragraph no="1"&gt; &lt;Line&gt;line1...
0
1,287
Mongoose save() not updating value in an array in database document
<p>I am trying to update a document in a collection (units) using GUI and after it gets updated I want to update the value (user.Units which is an array of Unit names) in collection (users). If the array length is just 1 element it gets updated and also shows up in database and everything works well, but when Array of...
0
1,803
Uncaught ReferenceError: AFMA_getSdkConstants is not defined
<p>I'm trying to add an AdMob ad to my android application but whenever I'm opening the activity that is supposed to display the ad I get this error:</p> <pre><code>I/Ads(11448): adRequestUrlHtml: &lt;html&gt;&lt;head&gt;&lt;script src="http://media.admob.com/sdk-core-v40.js"&gt;&lt;/script&gt;&lt;script&gt;AFMA_getSd...
0
1,098
Saving an image from ImageView into internal storage
<p>I have created an ImageView and I can see the preview of the camera and load the captured image into the ImageView and I wanted to store the image into a directory in my internal memory. I have referred many posts and tried but I couldn't find my image in my internal memory.</p> <p>This is the code I have used:</p>...
0
1,775
Javafx, get the object referenced by a TableCell
<p>I have the following Callback listening on the selected Cell of a TableView:</p> <pre><code> Callback&lt;TableColumn&lt;MyFTPFile,String&gt;, TableCell&lt;MyFTPFile,String&gt;&gt; cellFactory = new Callback&lt;TableColumn&lt;MyFTPFile,String&gt;, TableCell&lt;MyFTPFile,String&gt;&gt;() { ...
0
1,028
Angularjs - 500 (Internal Server Error) on $http Post
<p>I am new to Ionic and angular. I am building a sample with ionic framework using angular.js. I want to call WebApi through $http post method. I checked this(<a href="https://github.com/driftyco/ionic-proxy-example" rel="nofollow">ionic-proxy-example</a>) solution and I am trying to implement the same using my api. W...
0
1,029
The endpoint reference (EPR) for the Operation not found
<p>I started learning Web Services. I wrote my first piece of code from the example that was given in the book. But when i run it, it does not behanve the way its supposed to! I see the wsdl file generated and see the error: </p> <p>My WSDL file is:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;ws...
0
3,268
Access to the path Denied when uploading excel file
<p>When uploading an excel file I am receiving this error, can anyone help me?</p> <blockquote> <p>Access to the path 'C:\Data\IronElements\Upload\AUMData\20101202 031815.xlsx' is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack tr...
0
1,396
Package Microsoft.EntityFrameworkCore.Sqlite 5.0.0-rc.1.20451.13 is not compatible with net50 (.NETFramework,Version=v5.0) / win7-x86
<p>I want to update my packages but I got some errors like this:</p> <p><strong>The error is:</strong></p> <blockquote> <p>Error NU1202 Package Microsoft.EntityFrameworkCore.Sqlite 5.0.0-rc.1.20451.13 is not compatible with net50 (.NETFramework,Version=v5.0) / win7-x86. Package Microsoft.EntityFrameworkCore.Sqlite 5...
0
1,180
Jquery Check parent checkboxes in nested ul li
<p>I have a script that will check and uncheck all children checkboxes in a nested list. I am now trying to get it so I can check a low level checkbox and it will check all the parents only back up to the highest level. <a href="http://jsfiddle.net/3y3Pb/" rel="noreferrer">Here is a JSFiddle</a></p> <pre><code>&lt;ul ...
0
1,177
Tensorflow OOM on GPU
<p>i'm training some Music Data on a LSTM-RNN in Tensorflow and encountered some Problem with GPU-Memory-Allocation which i don't understand: I encounter an OOM when there actually seems to be just about enough VRAM still available. Some background: I'm working on Ubuntu Gnome 16.04, using a GTX1060 6GB, Intel Xeon E...
0
8,266
implementing pyqtgraph for live data graphing
<p>I am trying to get a live plot of data as it is being collected by an instrument using pyqtgraph.</p> <p>The data collection is handled by the main process this is then passed over a connection to a subprocess that plots it. I am just trying to pass the new data and have it update when the new data is passed.</p> ...
0
1,155
hibernate annotation- inheritance with @MappedSuperclass - values are not being set to base class fields- strange error
<p>I was following <a href="http://ocpsoft.org/java/hibernate-use-a-base-class-to-map-common-fields/" rel="nofollow">Hibernate: Use a Base Class to Map Common Fields</a> and <a href="http://openjpa.apache.org/builds/1.0.2/apache-openjpa-1.0.2/docs/manual/jpa_overview_mapping_inher.html" rel="nofollow">openjpa inher...
0
1,255
Vue - Loop through an array of objects, and highlight the selected item on click
<p>I have an array of objects which holds data, which I output to the DOM using map. Each item in the list, has a @click event listener. When you click on one of the items, I want it to be highlighted by way of adding a css class, for example ‘hover’. So basically it should work like a menu system. When you click on an...
0
2,743
NestedScrollview won't start from top
<p>I have a Recyclerview in a NestedScrollview.. everything is working fine except one thig. I have total three view in NestedScrollview First two are LinearLayout then Recyclerview. when i run my app the Activity don't show top two layout it starts from top of the Recyclerview.</p> <p>How its show my layout:</p> <p>...
0
5,930
Gray out the Background Making only Popup Visible
<p>I want to have a popup where all the background is grayed out but I am not sure how to do it.</p> <p>I found this on codepen (<a href="http://bit.ly/1NDe103" rel="nofollow">http://codepen.io/adventuresinmissions/pen/nrhHF</a>) that does this (grays out the background when popup is opened). What makes it do that and...
0
3,050
Why does Spark fail with "Failed to get broadcast_0_piece0 of broadcast_0" in local mode?
<p>I'm running this snippet to sort an RDD of points, ordering the RDD and taking the K-nearest points from a given point:</p> <pre><code>def getKNN(sparkContext:SparkContext, k:Int, point2:Array[Double], pointsRDD:RDD[Array[Double]]): RDD[Array[Double]] = { val tuplePointDistanceRDD:RDD[(Double, Array[Double])] =...
0
4,702
Youtube API PHP json decode
<p>I'm trying to search youtube and grab the videos video ID and title.</p> <p>In the bellow example I am searching for "youtube": </p> <pre><code>&lt;?php $url="http://gdata.youtube.com/feeds/api/videos?q='youtube'&amp;format=5&amp;max-results=2&amp;v=2&amp;alt=jsonc"; $json = file_get_contents($url,0,null...
0
5,950
Typescript async/await not working
<p>I've a problem about async/await on typescript with target es2017. Below is my code :</p> <p>my route.ts :</p> <pre><code>method: 'POST', config: { auth: { strategy: 'token', } }, path: '/users', handler: (request, reply) {...
0
1,419
Codeigniter insert array into database
<p>I am currently making a registration form where in you could register individually or by many I need a way how to make the multiple register work i cant add the input into db i get an array to string conversion error i still dont have the model for this</p> <p>my code is controller</p> <pre><code>public function r...
0
1,448
ViewPager and fragments — what's the right way to store fragment's state?
<p>Fragments seem to be very nice for separation of UI logic into some modules. But along with <code>ViewPager</code> its lifecycle is still misty to me. So Guru thoughts are badly needed! </p> <h3>Edit</h3> <p>See dumb solution below ;-)</p> <h2>Scope</h2> <p>Main activity has a <code>ViewPager</code> with fragmen...
0
2,272
Implementing Swipe action on ViewFlipper with multiple GridViews
<p>I have the following code to listen to Swipe action to navigate between GridViews in my ViewFlipper. However, it detects the Swipe inconsistently. I added the Gesture Listener to every GridView and also on every item in the GridView. Is there anything else I'm missing?</p> <p>Full code is below:</p> <pre><code>pub...
0
4,038
Find table name in all objects of all databases
<p>I have a system with multiple databases and client applications. All databases are at one SQL Server instance. They have been developed by different people at different time. So if some error occur it is pritty hard to find in which procedure or trigger the data was modified.</p> <p>Now I use this script, which I f...
0
1,065
How to share image URL to WhatsApp in Android?
<p>I need to share an image to WhatsApp in my app. I have the image URL. For sharing to WhatsApp, I am using the following code.</p> <pre><code>String image_url = "http://images.cartradeexchange.com//img//800//vehicle//Honda_Brio_562672_5995_6_1438153637072.jpg"; URI uri = null; try { uri = new URI(image_url.toSt...
0
1,482
Error com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException
<p>I have a spring application using hibernate. I am trying to insert user object to the database table. But I am getting following error.</p> <pre><code>Hibernate: insert into USER (CONTACT_NUMBER, EMAIL, FIRST_NAME, LAST_NAME) values (?, ?, ?, ?) Nov 08, 2013 7:23:03 PM org.apache.catalina.core.StandardWrapperValve ...
0
5,076
Repository Pattern - How to understand it and how does it work with "complex" entities?
<p>I'm having a hard time understanding the Repository Pattern.</p> <p>There are a lot of opinions on that topic like in <a href="http://www.codeproject.com/Articles/526874/Repositorypluspattern-cplusdoneplusright">Repository pattern done right</a> but also other stuff like <a href="http://ayende.com/blog/3955/reposit...
0
1,684
Angularjs GET http request to REST server returns 500 (Internal Server Error)
<p>I have a <a href="https://github.com/daniegarcia254/WebEng2014/tree/developer/553939_Lab2_REST/todo-rest-server" rel="nofollow">RESTful Web Service</a> that acts as a repository of ToDo tasks.</p> <p>On the other hand I have a <a href="https://github.com/daniegarcia254/WebEng2014/tree/developer/553939_Lab2_REST/tod...
0
1,546
jQuery - get all divs inside a div with class ".container"
<p><strong>Scenario:</strong></p> <p>I got a menu containing links:</p> <pre><code>Main Menu Item -------------- Sub: Show Grid &gt; SubSub: &lt;a&gt;Show #first&lt;/a&gt; &lt;a&gt;Show #second&lt;/a&gt; &lt;a&gt;Show #third&lt;/a&gt; </code></pre> <p>Now i need to f...
0
1,567
using domain name in localhost
<p>i have problem to using domain name in localhost<br> i'm using <code>windows 8.1 64 bit</code> and my xampp in <code>drive F</code></p> <p>i'm already edit <code>httpd.conf</code> in <code>F:\xampp\apache\conf</code> to load vhost</p> <pre><code># Virtual hosts Include conf/extra/httpd-vhosts.conf </code></pre> <...
0
1,337
How to run a PHP program from command prompt on a Windows Machine?
<p>I'm a <strong>PHP Developer</strong> by profession.</p> <p>I'm using a <strong>Lenovo Ideapad laptop</strong> that runs on <strong>Windows 10 Home Single Language 64-bit Operating System</strong></p> <p>I've also installed <strong>XAMPP Control Panel v3.2.2</strong> at location <strong>"C:\xampp"</strong> to execu...
0
1,274
Angular 6 - Auth token interceptor not adding headers
<p>Using Angular 6, I have tried many different approaches over the last two days, with the latest riffing off of this post: <a href="https://stackoverflow.com/a/47401544">https://stackoverflow.com/a/47401544</a>. However, the header is still not being set on requests.</p> <pre><code>import {Inject, Injectable} from ...
0
1,368
How do I force a repaint in Java using Swing JPanel?
<p>Why won't my image repaint for a simple animation? I call repaint() from two different methods and one causes repaint but the other doesn't. The method that does force the repaint is generated from an event listener. The one that doesn't is a timed animation thread. I know the animation thread is running correct...
0
1,730
Spring MVC and JUnit: Failed to load ApplicationContext
<p>In order to test my DAO and automatically autowire my objects, I created the following test class in JUnit:</p> <pre><code>@RunWith( SpringJUnit4ClassRunner.class ) @ContextConfiguration(locations={"/spring-servlet.xml"}) public class MyTest { // Other stuff here } </code></pre> <p>After running it, I get the...
0
2,682
A null value cannot be assigned to a primitive type error (Spring/Hibernate)
<p>I have 3 tables in my database - Booking, Restaurant and RestaurantTable. Right now I am trying to create a new booking and one of the steps there is adding a table. When I try to add this table the following error comes up:</p> <pre><code> org.springframework.core.convert.ConversionFailedException: Failed to conv...
0
1,503
Phonegap Android LocalFileSystem is not defined
<p>I have a problem for accessing Android File System for storage purpose in my phonegap application. I've searched and found lots of not-my-situation solutions!</p> <p>I know about the necessity of deviceready to be fired and checked and it got fired. So the phonegap.js is loaded perfectly!</p> <p>I think I requeste...
0
2,232
Table Variable In a table Valued function
<p>I am getting an error when trying to get this table valued function up. I have an error when I try to modify it. It is</p> <blockquote> <p>Incorrect syntax near the keyword 'Declare'.</p> </blockquote> <p>However when I use this outside of the function it all works great. So I was just wondering is there something I...
0
4,688
trying to fix java Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
<p>We have a gui that we use to set teams, and we assign 2 drivers to each team, plus 2 engines, 1 mechanic and 1 aerodinamic plus 1 strategiest. In our gui we set them all and we initialize the value for each of the above. Our GUI is some sort of racing simulation and it is supposed to return the winner.</p> <p>Howev...
0
3,107
Jest coverage ignore
<p>I'm trying to ignore a couple of files from my code coverage output. On reading the docs <a href="https://facebook.github.io/jest/docs/configuration.html#coveragepathignorepatterns-array-string" rel="noreferrer">coveragePathIgnorePatterns</a> it looks like I can ignore folders.</p> <p>I'm trying to ignore <strong>...
0
1,661
Multiple Entity Manager issue in Spring when using more than one datasource
<p>I have two entity managers in my <code>applicationContext.xml</code> which corresponds to two different databases. I can easily query <code>database1</code> with <code>entityManager1</code>, but when I try to access <code>database2</code> with <code>entityManager2</code>, I am not getting any results. I am using Spr...
0
3,489
How to access JSON data in a twig template?
<p>I'm using Symfony2 and making a php curl request to an api. I'm looking to make sure the results are being returned in the correct form: as a <code>json</code> <strong>string</strong> (not a php object or something else). The returned <code>json</code> string is consumed by renderAPIResults() that uses twig to "rend...
0
3,335
bash ffmpeg command not found
<p>I have a CentOS machine on which I want to install ffmpeg. I tried </p> <pre><code>yum install ffmpeg </code></pre> <p>but unable to install and showing errors on the console</p> <pre><code>Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop) Requires: libtheoradec.so.1()(64bit) Error: Packa...
0
1,453
Excluding directories for Doxygen
<p>I want Doxygen to ignore, bypass, not search the following directories of my project: </p> <pre><code>*/.svn/* */docs/* */Properties/* */bin/* </code></pre> <p>According to the <a href="http://www.doxygen.nl/manual/faq.html" rel="noreferrer">Doxygen FAQ</a>: </p> <pre><code>How can I exclude all test directorie...
0
1,801
OpenGL/glut/stdc++ build errors
<p>I'm using Ubuntu and tried using synaptic to install everything that had the word "GLUT" in it and also SDL and opengl . But still a simple program fails to compile . It shows this :</p> <pre> opengl1.cpp:(.text+0xe): undefined reference to `glClear' opengl1.cpp:(.text+0x1a): undefined reference to `glBegin' opengl...
0
1,307
How to use headless chrome with capybara and selenium
<p>Chrome version: 59.0.3071.104</p> <p>Using Cucumber, Capybara, Selenium to implement automation testing with Headless Chrome.</p> <blockquote> <p>features/support/env.rb</p> </blockquote> <pre><code>require 'rubygems' require 'capybara/cucumber' Capybara.register_driver :selenium_chrome do |app| Capybara::Se...
0
1,028
ListFragment with Custom Adapter
<p>I have setup a <code>listfragment</code> in my project. but it seems my fragment cant get it right with my adapter. its because of <code>Context context</code> in <code>MyListAdapter</code>. if i click to correct it. it changes into <code>MenuFragment menuFragment</code>. But after that changes, <code>MyListAdapter<...
0
1,236
Flex CheckBox in Datagrid
<pre> In the followin flex Code : Also viewable at : http://www.cse.epicenterlabs.com/checkBoxDg/checkBoxDg.html 1. Add a row in datagrid by clicking on "AddRow" 2. Click on "CheckDg" to see the values of all the checkboxes - it shows "checkBox57" or "checkBox64" or some similar string 3. Now, "select" the checkB...
0
1,594
URL authorization failed for the request
<p>I am in the process of moving some sites over to a new windows 2003 installation running IIS6. However I am running into problems with forms authentication. The sites in question run fine on the old box which is the same OS and IIS version. </p> <p>When I try to login to the website I get a event log "URL authoriza...
0
1,028
Release of ASP.NET core App: The command "npm install" exited with code 9009
<p>I have a ASP.NET Core solution with a React frontend. I now have a problem I cannot release the code using the normal release window inside Visual Studio. I publish to a web app inside Azure web apps, and it works perfectly for all my other solutions built the same way.</p> <p>The code works perfectly locally, and ...
0
1,210
How does one return html from an AngularJS function?
<p>I'm brand new creating AngularJS style code. I'm attempting to recreate an existing site in AngularJS format.</p> <p>I finally figured out how to make an app/controller in an external file and give the controller functions. I can then have those functions return variables, particularly strings, to fill in informa...
0
1,112
VBA to get the href value
<p>I am writing macro to extract the href value from a website, example here is to extract the value: '/listedco/listconews/SEHK/2015/0429/LTN201504291355_C.pdf' from the html code below. The href is one of the attributes of the html tag 'a', I have add the code getElementbyTagName'a' but it did not work, my question i...
0
1,398
error: GLES/gl.h: No such file or directory
<p>I am getting this the following error when I am trying to use OpenGL in JNI</p> <pre><code>Compile++ thumb : itv &lt;= native.cpp C:/workspace/InternetTV_OpenGL/jni/native.cpp:1:50: warning: extra tokens at end of #include directive C:/workspace/InternetTV_OpenGL/jni/native.cpp:3:21: error: GLES/gl.h: No such fi ...
0
2,318
BottomNavigationView hides when scrolling up instead of down
<p>The new <code>BottomNavigationView</code> from support library v25.0.0 is supposed to hide when scrolling down, in order to see all the items from a list. However, in my testing scenario, the view hides when scrolling up. Any ideas what can cause this reverse behavior?</p> <p>The <code>inner_fragment</code> is set ...
0
1,442
Dictionary Matching / Spell Check Program
<p>Please help me with a spellcheck program in C. The majority of the coding are complete (I think...). I'm really stuck because I'm not sure why the program wouldn't compile. Admittedly, I'm still an amateur coder, would you also provide a few suggestions on some of the bad coding habits that I have in the code? Thank...
0
2,359
How to convert a do while loop to a while loop
<p><strong>How do I convert my do-while loop to a while loop?</strong></p> <pre><code>int numAttempts = 0; do { System.out.println("Do you want to convert to Peso or Yen?"); pesoOrYen = readKeyboard.nextLine(); if(pesoOrYen.equalsIgnoreCase("Peso")||pesoOrYen.equalsIgnoreCase("Yen")) { notPes...
0
1,734
Android How to call Fragment from my Main Activity
<p>i am very new to android development.</p> <p>in my case i have one main activity and one fragment created.Main activity as two buttons.</p> <p>when i click on button, my fragment should load .how can i achieve that?</p> <p>Mainactivity .XML </p> <pre><code>&lt;Button android:layout_width="wrap_content"...
0
1,275
Adding checkboxes to PHP POST email form
<p>I'm trying to build a form for wordpress. I've used plugins in the past but I need maximum control for some specific styling. I'm not very good with PHP yet, so am struggling trying to add checkboxes to the script.. I've removed my attempts and left the checkboxes in the html, but not in the PHP - can someone advise...
0
1,680
Eslint jest/globals environment key unknown
<p>I have a custom eslint-config that has several plugins for various packages, including jest. I have the main set to an index which just extends other files.</p> <p>Long story I have a jest config file. That looks like.</p> <pre><code>module.exports = { plugins: ['jest'], rules: { 'jest/no-disabled-...
0
1,091
Javascript calling a class function
<p>I'm trying to call a class function:</p> <pre><code>// Gantt chart object function ganttChart(gContainerID) { this.isDebugMode = true; // Is this chart in debug mode this.gContainer = document.getElementById(gContainerID); // The container the chart is built inside ...
0
1,050
Lookup table in MySQL
<p>I'm doing my first work in PHP/MySQL &amp; I need help. I have one master table:</p> <pre class="lang-sql prettyprint-override"><code>CREATE TABLE `m4l_movies` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `Title` varchar(250) NOT NULL, `Rating` int(11) NOT NULL, `Genre` varchar(250) NOT NULL, `Actors...
0
2,080
PrimeFaces Dialog + appendToBody=true not working
<p>I'm using PF 3.5 and JSF Mojarra 2.1.</p> <p>I have a dialog which I want to use appendToBody=true. This usually results in "unpredictable behavior" though.</p> <p>Basically what the dialog does is, when I choose an entry (a persn entity) from a datatable, it gives me filled up input boxes which I can edit, thus e...
0
1,889
Notepad++ validating XML against local DTD
<p>I have an XML file that I'm trying to validate against a DTD (in the same local folder as the XML). The XML checks out as well-formed, but every attempt to validate against the DTD in notepad++ leads to an "unable to load the DTD PresidentsDTD.dtd" error. Any idea what I need to do to get this working?</p> <p>XML f...
0
2,354
No unique bean of type [] is defined: expected single matching bean but found 2: [dbImpl, DbImpl]
<p>Hi I am new to Spring: I have a problem related with the configuration of my project;</p> <p>this is my servlet-context.xml:</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans:beans xmlns="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan...
0
2,019
How to prevent "The following object is masked from ‘package:...’:..." trouble/warning totally when loading a package?
<p>When I load a package I created, I get the following warning:</p> <blockquote> <p>"The following object is masked from ‘package:utils’:combn"</p> </blockquote> <p>even though I used combinat::combn in function definitions in .R files of "R" folder in R's working directory.</p> <p>Isn't there any way to get rid ...
0
2,049
Binding a Backbone Model to a Marionette ItemView - blocking .fetch()?
<p>This is a 2 part question. 1) Is there a better way to render a model to a view asynchronously? I'm currently making the ajax request using the <code>fetch</code> method in the model (though I'm calling it explicitly upon initilization), <em>then</em> rendering the templated view using an application event, <code>ve...
0
2,033
ReactJS: unexpected token '<'
<p>Hello I tried to search in other questions but none of mentioned solutions I tried did not work for me.</p> <p>When using command:</p> <blockquote> <p>npm start </p> </blockquote> <p>I have an error: </p> <blockquote> <p>ERROR in ./src/index.js Module build failed (from ./node_modules/babel-loader/lib/inde...
0
2,236
Uploading Pdf to server using Retrofit 2
<p>I am trying to upload Pdf files to server using <strong>Retrofit 2.0</strong> and store their path to my MySQL database. I am successful in storing the path but the pdf that is supposed to be stored in my home directory is corrupted. </p> <p><strong>upload.php</strong></p> <pre><code>&lt;?php require "init.php";...
0
4,880
ruby-debug19 on ruby-1.9.3-preview1
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/9442200/rails-3-1-and-ruby-1-9-3p125-ruby-debug19-still-crashes-with-symbol-not-found">Rails 3.1 and Ruby 1.9.3p125: ruby-debug19 still crashes with &ldquo;Symbol not found: _ruby_threadptr_data_type&rdquo;</a> </...
0
2,152
Nginx error FastCGI sent in stderr: "Access to the script [folder] has been denied (see security.limit_extensions)"
<p>I am trying to configure my webserver using Nginx and php-fpm<br> I have successfully configured before in my local computer and dev server, but not now in AWS.<br> The only difference is I installed Nginx from a source in production server</p> <p>It gives an error like these in my /var/log/nginx/error.log </p> <p...
0
1,702
JavaFX FXML communication between Application and Controller classes
<p>I am trying to get and destroy an external process I've created via ProcessBuilder in my FXML application close, but it's not working. This is based on the helpful advice <a href="https://stackoverflow.com/a/12322123/492404">Sergey Grinev gave me here</a>.</p> <p>I have tried running with/without the "// myControl...
0
2,580
How to fix error: Cannot register 2 metrics with the same name: /tensorflow/api/keras/optimizers
<p>When I am trying to run a Python code for deep learning utilizing the TensorFlow library, I am getting the following error:</p> <pre><code>2021-10-24 10:07:13.619481: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found...
0
1,298
Passing strings between activities in android
<p>I have searched quite a few places but i haven't got up with any good solution that worked yet, and i really need help! I am making an application that needs to pass a longitude and latitude string from one activity to another. How can i do this??? Take a look at my code here: The LocationActivity.java needs to pass...
0
1,987
org.apache.tiles.util.TilesIOException: JSPException including path '/login.jsp'
<p>I m new to tiles and strut2. I am not able to understand that when I use the HTML tag in login.jsp page then it works fine but at the same time if I code in struts tag in login.jsp then it gives an error. why this is happening I am not able to understand. The following code and error are given below ..kindly help me...
0
3,432
Paypal PHP not working. No response received from Sandbox; only Connection: close
<p>I've been at it for 24 hours now and am about to pull my hair out. I've checked all over the Web and within Stackoverflow and can find nothing that helps. I've even checked previous posts such as <a href="https://stackoverflow.com/questions/8302028/not-receiving-a-response-from-paypal-ipn-sandbox">Not receiving a re...
0
8,340
Docker-compose up exited with code 1 but successful docker-compose build
<p>When trying to docker-compose up I get errors from the frontend and backend where they exit with code 1. docker ps shows that the postgres container is still running but the frontend and backend still exit. Using npm start, there is no errors. I don't know if it this helps, but my files do not copy from my src folde...
0
5,069
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/content/LocalBroadcastManager only on Build APK
<p>I have searched a lot here and on Google and found no answer that solved my problem. When i run my app from instant run, it works perfectly. When i generate my release APK, it doesn't open and show this error only on Lollipop builds (5.0 and 5.1, works fine on 6.0>):</p> <pre><code>08-15 11:31:47.689 2605-2605/br.c...
0
9,493
Nested weights are bad for performance in my XML code
<p>I want to display an organized grid. So I use LinearLayout and Layout Weight option, every thing works perfectly, but I don't understand how to avoid this warning in the Button A and the Button C:</p> <pre><code>Nested weights are bad for performance </code></pre> <p>And this is my XML code :</p> <pre><code>&lt;?...
0
1,160
Required Multiple beans of same type in Spring
<p>A request before you mark it as duplicate. I have gone through the forum and couldn't find the solution for the problem anywhere.</p> <p>I am writing a code using Spring 3.2 and everything is purely annotation based. The code receives XML files which are derived form different XSD files.</p> <p>So we can say, there ...
0
1,050
MotionEvent.ACTION_UP not called
<p>Consider the following scheme below (for sake of better understanding of my problem). <img src="https://i.stack.imgur.com/VmKEk.png" alt="enter image description here"></p> <p>As you can see, I am considering a list view surrounded by padding. Now, If a user presses a listview item, as the action I have provided it...
0
2,990
Could not autowire. No beans of ... type found
<p>can you help me solve why i can't autowire a class?? class UserDaoImpl:</p> <pre><code>@Repository public class UserDaoImpl implements UserDao { @Autowired private SessionFactory sessionFactory; @Override public void addUser(User user) { sessionFactory.getCurrentSession().save(user); }...
0
2,298
RAM drive for compiling - is there such a thing?
<p><s><a href="https://stackoverflow.com/questions/354160/what-do-you-do-while-your-codes-compiling#354176">An answer</a></s> <strong>(see below)</strong> to one of the questions right here on Stack&nbsp;Overflow gave me an idea for a great little piece of software that could be invaluable to coders everywhere.</p> <p...
0
1,160
WCF REST Service JSON Post data
<p>Looking for some guidance on a wcf 4 rest service which is based on the WCF REST Template 40(CS) extension in VS2010. I've spent the last couple of days trying to get this bugger to work, reviewing other posts, and while I've gotten close, I can't seem to cross the finish line. After much frustration, it is finall...
0
1,062
How to crop an image from AVCapture to a rect seen on the display
<p>This is driving me crazy because I can't get it to work. I have the following scenario:</p> <p>I'm using an <code>AVCaptureSession</code> and an <code>AVCaptureVideoPreviewLayer</code> to create my own camera interface. The interface shows a rectangle. Below is the <code>AVCaptureVideoPreviewLayer</code> that fills...
0
2,242
Calling camera from an activity, capturing an image and uploading to a server
<p>In my app, I have a button1 which calls camera, and after capturing the image, it must be saved to the device gallery. When I click on button2, it must open the gallery, and ask to select a picture. When selected, it must be shown on the imageView below these buttons.</p> <p>Here is my code:</p> <pre><code>package...
0
1,561
VB.NET Renaming File and Retagging / Edit Image MetaData / Meta Tags
<p><strong>Clarifiration:</strong></p> <p><em>How do I Edit and Save Image EXIF / Metadata / FileInfo without using an external DLL?</em></p> <p><strong>Project:</strong></p> <p>I'm building an app for personal use to rename, retag, and organize the apocalyptic quantity of images I host on my personal website. As I ...
0
2,110
Removing blank entries from a Jasper report
<p>I have created a report within the jrxml. I have specified to only print the details of each value if one of my fields is populated using the tag <code>&lt;printWhenExpression&gt;</code> with a value like so:</p> <pre><code>&lt;textField&gt; &lt;reportElement x="670" y="4" width="105" height="20" isRemo...
0
5,328
java.util.ConcurrentModificationException arises
<p>May Be it can be a duplicate question, I'm sorry for that. But my problem is not solving.</p> <p>Below code gives me this exception (java.util.ConcurrentModificationException ) when execution reaches for 2nd time in foreach loop. Even i removed the arraylist object using iterator.</p> <pre><code>@RequestMapping("e...
0
1,267
Two ways to send email via SmtpClient asynchronously, different results
<p>Simple concept here. This is for a site being built using MVC 3 and Entity Framework 4. After a user registers on the site, an email is sent to their email address. I first implemented this using SmtpClient.Send() and it worked fine. Then I got the bright idea to try sending the email asynchronously. I'm experiencin...
0
1,097
How to load JSON data to use it with select2 plugin
<p>I want to use select2 plugin for my project. I followed <strong><a href="http://select2.github.io/examples.html">this</a></strong> example, but it doesn't work for me.</p> <p><strong>JSON output</strong> :</p> <pre><code>[ {"ime":"BioPlex TM"}, {"ime":"Aegis sym agrilla"}, {"ime":"Aegis sym irriga"}, ...
0
1,363
Connection is not defined in cordova network information plugin
<p>I have followed this article:</p> <p><a href="http://www.joshmorony.com/monitoring-online-and-offline-states-in-an-ionic-application/" rel="nofollow noreferrer">to get network information of the device</a> in ionic app for android.</p> <p>It works fine on browser but when I install the compiled apk in android phon...
0
2,230
High chart width issue
<pre><code>{ colors: ['red','#009966'], chart: { height: 150, width: 350, type: 'bar', backgroundColor: '#efefef', marginLeft:150 }, title: { text: 'Workgroup Ticket in SLA', style: { color: 'black', fontWeight: ...
0
1,406
How to keep DialogFragment positive/negative buttons above soft keyboard
<p>I am using a DialogFragment. I want the positive and negative buttons to remain above the keyboard when the user interacts with an edit text like in the example pics below from a screen in the Gmail tablet application.</p> <p><img src="https://i.stack.imgur.com/VFEob.png" alt="without soft keyboard"></p> <p><img s...
0
1,684