title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
showing download progress while downloading a file using PHP and jquery
<p>I am developing a download manager using PHP and jquery.</p> <p>Requested a script that will download a file and also show the download progress.</p> <p>I tried the following, but it not works</p> <p>Jquery</p> <pre><code>function downloadFile(){ var fileNameDownloading =&quot;somefile.mp3&quot; var oReq = n...
0
1,106
PRESTASHOP NGINX + REWRITE RULES
<p>I've being searching for a good solution for this combination and after following these:</p> <ol> <li><a href="http://www.phamviet.net/2012/06/03/prestashop-rewrite-url-on-nginx/" rel="nofollow noreferrer">http://www.phamviet.net/2012/06/03/prestashop-rewrite-url-on-nginx/</a></li> <li><a href="http://www.nginxtips...
0
2,260
XSLT condition to check if node exists
<p>I have below sample XML in which I want to check if the node exist.</p> <p>Sample XML is</p> <pre><code>&lt;document&gt; &lt;item&gt; &lt;ID&gt;1000909090&lt;/ID&gt; &lt;flex&gt; &lt;attrGroupMany name="pageinfo"&gt; &lt;row&gt; &lt;attr name="pagelength"&gt;10&lt;/attr...
0
1,787
Cannot Instantiate class error - Selenium WebDriver
<p>I am facing this 'Cannot insantiate class' error on running one of my test cases in selenium webdriver using java.</p> <p>Below is the class of the functionality of the test,</p> <pre><code>package Pages; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openq...
0
2,402
android - How to mux audio file and video file?
<p>i have a 3gp file that is recorded from the microphone and a mp4 video file. i want to mux audio file and video file in to a mp4 file and save it. i searched a lot but didn't find any thing helpful for using MediaMuxer api of android. <a href="http://developer.android.com/reference/android/media/MediaMuxer.html" rel...
0
1,581
Redraw/refresh Itemizedoverlay? (android/google maps api)
<p>I am making a GPS tracker using google maps API and displaying the users current position on a map using ItemizedOverylay. As the users position changes regularly, I've set up a CountDownTimer to delete the current Itemizedoverlay and add a new one at the new position every 5 seconds (there is no way of changing an ...
0
4,439
Want to add spacing between buttons
<p>I have a simple task to add space between buttons in a dialog box like in the example code below obtained from <a href="http://bootboxjs.com/examples.html" rel="noreferrer">http://bootboxjs.com/examples.html</a>. Just imagine that there is more than 1 button is this example. Like save, delete, cancel, confirm.</p> ...
0
1,466
Deactivate a Gem - "you have already activated rake 0.9.3.beta.1, but my Gemfile requires rake 0.9.2"
<p>I'm trying to run a migration but I keep getting the error message that is:</p> <pre><code>rake aborted! Undefined method prerequisite for nil:NilClass. </code></pre> <p>It seems that somehow I activated a gem called <code>rake 0.9.3.beta.1</code> - however I have since changed the gem <code>bundle install</code> ...
0
2,898
How are date and datetime supposed to be serialized SOAP (xml) messages
<p>We are working on a building a java client with a third party SOAP Webservice, that is I have not access or control off server side code. We are just provided with the WSDL description file of the service. We are using Axis 1 (version 1.4 ). </p> <p>We have run into following issue related to date vs datetime se...
0
1,222
Puppet: Passing parameters through classes
<p>This is a follow on to my earlier question about <a href="https://stackoverflow.com/questions/21151902/puppet-stopping-service-on-individual-nodes/21153390">parameterized classes</a>. Following on that example a little further, I want to be able to pass running or stopped into the service, but when I add the servic...
0
1,374
Error:exception during working with external system
<p>I am trying to build android project in Android studio. While doing gradle sync, I am getting below error.</p> <p><a href="https://i.stack.imgur.com/e4SrX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e4SrX.png" alt="enter image description here" /></a></p> <p>with below Error logs.</p> <pre><co...
0
1,452
use Kestrel in .NET Core worker project
<p>I created a new .NET Core worker project with the template provided by Visual Studio. I want to listen for incoming TCP messages and HTTP requests. I'm following <a href="https://github.com/davidfowl/MultiProtocolAspNetCore" rel="nofollow noreferrer">David Fowler's &quot;Multi-protocol Server with ASP.NET Core and K...
0
1,038
Property or method "$v" is not defined using Vuelidate
<p><strong>Error:</strong></p> <blockquote> <p>[Vue warn]: Property or method &quot;$v&quot; is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: <a href="https://v2.vuejs.org/v...
0
1,233
Converting a string to LPCWSTR for CreateFile() to address a serial port
<p>I seem to be having a bit of a TEXT / UNICODE problem when using the windows CreateFile function for addressing a serial port. Can someone please help point out my error?</p> <p>I'm writing a Win32 console application in VC++ using VS 2008.</p> <p>I can create a handle to address the serial port like this:</p> <...
0
1,225
django errno 104 Connection reset by peer
<p>I am trying to run my django server on an Ubuntu instance on AWS EC2. I am using gunicorn to run the server like this :</p> <p><code>gunicorn --workers 4 --bind 127.0.0.1:8000 woc.wsgi:application --name woc-server --log-level=info --worker-class=tornado --timeout=90 --graceful-timeout=10</code></p> <p>When I make...
0
1,031
Pod has unbound PersistentVolumeClaims but volume claims is bounded
<p>I want to create a statefulset elasticsearch in kubernetes on virtualbox. I'm not using cloud provider so i create two persistent volume localy for my two replicas of my statefulset :</p> <p>pv0:</p> <pre><code>kind: PersistentVolume apiVersion: v1 metadata: name: pv-elk-0 namespace: elk labels: type: lo...
0
1,267
Deploying WebSite builds to Azure from VSTS Release Management
<p>I'm kicking the tires on the preview for the Visual Studio Team Services new Release Management system. My scenario is a classic website (ASP.NET 4.5) with a Git repo hosted in VSTS. The build definition is successful as seen here:</p> <p><a href="https://i.stack.imgur.com/MIwNS.png"><img src="https://i.stack.imgur...
0
1,027
Symfony2: class 'Doctrine\Common\Collections\ArrayCollection' was not found in the chain configured namespaces
<p>Error occurs when attempting to persist a one-to-many relationship. In particular, a client may have multiple household members; a given household member is associated with one and only one client. [I am new to Symfony so errors are expected!] Your guidance gratefully accepted.</p> <p>N.B. Alternate controller s...
0
1,536
Every time button cause full post back, even it is in update panel
<p>In my code every DropDownList is inside an Update Panel and they're not postbacking. For each button click full postback occurs, but my buttons are in Update Panel. I tried using the asynpostback trigger, in that case server side message is not displayed. I want that message also.</p> <p>My code is:</p> <pre><code...
0
5,235
java.lang.InternalError: Can't connect to X11 window server for JVisualVM profiling session
<p>I have an Ubuntu server VM (<code>myapp01</code>) and have a Java application deployed there. The app has been acting wonky and I would like to profile it with JVisualVM. To do this I need to install X-Windows on my Windows 7 host, and then get the Ubuntu VM to export its X11 connection to my host when I tell it to ...
0
1,300
Ajax - How refresh <DIV> after submit
<p>How can I refresh just part of the page ("DIV") after my application releases a submit? I'm use JQuery with plugin ajaxForm. I set my target with "divResult", but the page repeat your content inside the "divResult". Sources:</p> <pre><code> &lt;script&gt; $(document).ready(function() { ...
0
2,799
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index in C# asp.Net
<p>I am implementing Grid View in my application...When i try to delete a record from the Grid View it throws this error:</p> <p><strong>Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index</strong></p> <p>This is my Server side Code:</p> <pre><code>protected v...
0
1,097
Error: Cause: compileSdkVersion is not specified
<p>I have problem with project in github <a href="https://github.com/joaopedronardari/OpenCV-AndroidSamples" rel="nofollow noreferrer">https://github.com/joaopedronardari/OpenCV-AndroidSamples</a> I clone in my android studio, and error. I don't know that's project maybe expired or what. but it is uploaded 3 years ago....
0
1,622
Cannot read property 'injector' of null jasmine angular 2
<p>I'm getting this error when running a jasmine spec in angular 2:</p> <blockquote> <p>Cannot read property 'injector' of null jasmine angular 2</p> </blockquote> <p>stack trace:</p> <pre><code>TypeError: Cannot read property 'injector' of null at TestBed._createCompilerAndModule (http://localhost:3002/node_m...
0
1,348
failed to execute 'put' on 'idbobjectstore' evaluating the object store's key path did not yield a value
<p>A chrome based APP which I am supporting gives us this error. I tried to find out more about the error but was unsuccessful. Can someone kindly explain me on what could be the cause of this.</p> <p>The Error is as below Image</p> <p><a href="https://i.stack.imgur.com/NZ9LY.png" rel="noreferrer"><img src="https://i...
0
1,908
Angular How to filter array data by searching in input
<p>How to filter an array object in input text - angular I'm trying to make an search bar to filter where the user can search the location/description which I name it "sensor".</p> <h3>roomlist.component.ts</h3> <pre><code> validateForm: FormGroup; rowData: templogRecord[] = []; option: any = []; onLoad() { ...
0
3,242
`java` command is not found from this Python process. Please ensure Java is installed and PATH is set for `java`
<p>I don't know how to fix this error when I'm trying to run the following code: </p> <pre><code>df = wrapper.read_pdf(r'C:\End_to_End\1902\PN\Scenario1_AllCorrectMin\EPR.pdf') </code></pre> <p>Log:</p> <pre><code>FileNotFoundError Traceback (most recent call last) ~\AppData\Local\Continuu...
0
1,329
UICollection View - Segue - did select specific cell , LOG
<p>I am starting to use a UICOllectionview to load a custom made photo album, the album loads just fine, and the data is coming from my server (SQL-JSON-NSARRAY-NSDictionary) and been populated in the cell's just fine, However now I would like it when the user selects that cell to load a new UIVIewController with that ...
0
2,254
Error with GLUT compile in ubuntu
<p>I try to compile some "hello world" glut application:</p> <pre><code>#include &lt;stdlib.h&gt; #include &lt;GL/gl.h&gt; #include &lt;GL/glu.h&gt; #include &lt;GL/glut.h&gt; GLint Width = 512, Height = 512; const int CubeSize = 200; void Display(void) { int left, right, top, bottom; left = (Width - C...
0
1,587
Load .yml file into hashmaps using snakeyaml (import junit library)
<p>I am trying to load opencv's .yml file into arrayLists mean, projection and labels. I ve create those three arraylists and I am trying to parse into them the elements from the .yml file. I ve found <a href="https://code.google.com/p/snakeyaml/wiki/Documentation" rel="noreferrer">snakeYAML documentation </a>. However...
0
2,535
Airflow on_failure_callback
<p>I have an Airflow DAG with two tasks:</p> <ul> <li>read_csv</li> <li>process_file</li> </ul> <p>They work fine on their own. I <strong>purposely</strong> created a typo in a pandas Dataframe to learn how <code>on_failure_callback</code> works and to see if it is being triggered. It seems likes from the log that it d...
0
1,511
RecyclerView: scrollToPosition not working
<p>I have a simple project displaying user text messages. I am currently not able to scroll the RecyclerView to the last received text message. <br/> My recyclerView is inside a very simple activity using the Coordinator layout: <br/></p> <pre><code>&lt;android.support.design.widget.CoordinatorLayout xmlns:android="ht...
0
1,988
Gunicorn not starting throwing gunicorn.service: Failed with result 'exit-code'. error
<p>I'm trying a deploy simple Django application on Digital Ocean by following this [link][1] I follow every work step by step and successfully run that project via python manage.py runserver where it's not throwing any error but when I try to implement it with gunicorn its throw following error</p> <blockquote> <p>gun...
0
1,269
Form submitted twice, due to :remote=>true
<p>My form submitted twice, after double checked, it was cause by ':remote=>true'. I removed it, my project works well. Who can show me why? And how to use ':remote=>true'?</p> <p>My ruby code:</p> <pre><code>&lt;%= form_tag(admin_product_group_product_scopes_path(@product_group), :remote =&gt; true, :id =&gt; 'new_p...
0
1,243
Grant Privileges to an user (remotely root logged) in MySQL
<p>I have this:</p> <pre><code>mysql&gt; SELECT CURRENT_USER(); +----------------+ | CURRENT_USER() | +----------------+ | root@% | +----------------+ 1 row in set (0.00 sec) mysql&gt; SELECT USER(); +------------------+ | USER() | +------------------+ | root@CQ2404LA-PC | +------------------+ 1 row...
0
1,362
jquery ajax readystate 0 responsetext status 0 statustext error
<p>I am getting the following error: <code>jquery ajax readystate 0 responsetext status 0 statustext error</code> when giving it: <code>url(http://www.tutorialspoint.com/prototype/prototype_ajax_response.htm)</code>, however it's working fine when I give it <code>url(localhost:""/embparse_page)</code> on my localhost....
0
1,070
Click anywhere to close side navbar javascript
<p>I am using below snippet within bootstrap to display a sidebar in the navigation bar.</p> <p>I am able to close the navbar by clicking on the X button in the sidebar. How can I change my closeNav javascript to be able to close the sidebar by clicking anywhere on the page well as the close button using javascript on...
0
1,087
how to declare output array in verilog?
<p>I am trying to ADD two array and want output in array in verilog code. But error is occured. which is ERROR:HDLCompiler:1335: Port sum must not be declared to be an array in verilog code . can anyone tell me how to declare output array in verilog code. Thanks.</p> <pre><code>module array(clk,sum,reset); ...
0
1,026
No operations allowed after connection closed MYSQL
<p>Basically I have:</p> <pre><code>String query = "SELECT * FROM table WHERE UNIQUEID=? AND DIR IS NOT NULL AND NAME IS NOT NULL AND PAGETYPE IS NOT NULL"; DBConnect Database = new DBConnect(); Connection con = null; PreparedStatement ps = null; ResultSet rs=null; try { con = Database.getcon(); ps = con.prepa...
0
2,086
Is it possible to refresh partial frequently using Ajax?
<p>In background, I want it to reload and shows the number how many unread messages are there.<br> I want that without refreshing page. I mean using ajax. </p> <p>If I had this in menu, how can I refresh only this section every 30 secs?</p> <pre><code>&lt;li&gt;&lt;%= link_to sanitize('&lt;i class="icon-envelope"&g...
0
1,175
How can I put my form inside another form and use one submit button?
<pre><code> &lt;form action="&lt;?php $self ?&gt;" method="post"&gt; &lt;h2&gt;LundaBlogg&lt;/h2&gt; &lt;div class="fname"&gt;&lt;label for="name"&gt;&lt;p&gt;Namn:&lt;/p&gt;&lt;/label&gt;&lt;input name="name" type="text" cols="20" onkeyup="EnforceMaximumLength(this,12)"/&gt;&lt;/div&gt; ...
0
1,281
Chart.js: Bar Chart Click Events
<p>I've just started working with Chart.js, and I am getting very frustrated very quickly. I have my stacked bar chart working, but I can't get the click "events" to work.</p> <p>I have found a <a href="https://github.com/chartjs/Chart.js/issues/577#issuecomment-55897221">comment on GitHub by <code>nnnick</code></a> f...
0
1,396
Android custom ArrayAdapter getView method called multiple times - resetting dynamic TextView value
<p>The getView method in my custom ArrayAdapter is getting called multiple times, which I assume it is meant to. Problem is, I have a quantity TextView which is dynamically set but when you scroll and the box goes off screen the value disappears. I am not sure what I am doing wrong and Google is not proving to be much ...
0
2,445
creating a datagridview form in c#
<p>I`m new to c# and windows form applications. Right now, I want to create a Datagridview within my form, whose rows I want to fill with the properties of a business object. I followed the example from this msdn page: <a href="http://msdn.microsoft.com/en-us/library/y0wfd4yz.aspx" rel="nofollow">How to: Bind Objects t...
0
2,432
getting all months between 2 dates
<p>I created a function that returns an array containing each month, starting from a supplied carbon date and ending on the current date.</p> <p>Although the function is doing what it is supposed to do, it looks hideous. Clearly my programming skills arent yet what they're supposed to be. Surely there must be a better...
0
1,492
Reading from .data file into Java- how do I store the information in an array of arrays?
<p>I have the following Java class, which I'm using to read a .data file:</p> <pre><code>import java.io.*; import java.util.Scanner; public class ReadFile { static File file; String[] columns = new String[]{"personID", "lastName", "firstName", "street", "city"}; String[] data = new String[100]; String filename = "D:\...
0
1,344
Laravel 4, how to I create seed data to tables with relationships?
<p>I have created a database with two tables, "goals" and "partgoals". The practial use is to make a savings goal (money) and have milestones along the way (partgoals). I want the partgoals obviously be linked to a specific goal. The relationships are created but I run into trouble when trying to create my seed data.</...
0
2,267
Guice JPA - "This connection has been closed." error
<p>After DB dropps an idle connection or DB is down and back up I'm receiving the following error in my webapp:</p> <pre><code>javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: could not inspect JDBC autocommit mode at org.hibernate.ejb.AbstractEntityManagerImpl.convert(Abstr...
0
1,370
Spring Boot YML and StandAlone Tomcat 8 Server
<p>I have the following directory structure/config file:</p> <pre><code>src/main/resource/config: application.yml application-dev.yml application-sit.yml </code></pre> <p>Note according to the "<strong>Bootiful Configuration</strong>" <a href="https://spring.io/blog/2015/01/13/configuring-it-all-out-or-12-factor-a...
0
3,677
TypeError: Cannot read property 'handle' of undefined --- if (fn.handle && fn.set) mount_app = fn
<p>I would appreciate some help with this please. Not certain exactly sure what to this means as this is my first time working with node and express. I set up express to use with node, and tried to follow the information on the site <a href="http://nodejs.org/api/modules.html" rel="nofollow">Express.js</a> . Would appr...
0
1,760
'SEVERE: SAAJ0009: Message send failed error' while sending a message
<pre><code>Feb 8, 2011 11:56:49 AM com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPC onnection post SEVERE: SAAJ0009: Message send failed com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedA ctionException: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Message s end failed ...
0
2,340
How do I add a footer row in a WPF datagrid?
<p>How Do I Add a footer row in WPF datagrid? I had to add a row in a WPF datagrid for the sum of each column, I don't want to use any dll or telerik and some things like that only use Microsoft components to do this. I'm trying to do it this way:</p> <pre class="lang-xaml prettyprint-override"><code>&lt;Style TargetTy...
0
5,207
Simple webservice with node-soap
<p>I am trying to implement a simple web service using SOAP using Node Js and node-soap, but the client side seems to have problems using the server.</p> <pre><code>assert.js:92 throw new assert.AssertionError({ ^ AssertionError: invalid message definition for document style binding </code></pre> <p>My wsdl...
0
2,343
Print results in MySQL format with Python
<p>What is the easiest way to print the result from MySQL query in the same way MySQL print them in the console using Python? For example I would like to get something like that:</p> <pre><code>+---------------------+-----------+---------+ | font | documents | domains | +---------------------+----------...
0
1,107
Adding the ZeroMQ PHP extension to XAMPP on Windows 10 and PHP7
<p>I am having issues adding the ZeroMQ PHP extension to XAMPP. </p> <p>Setup: Windows 10, PHP7, XAMPP (7.0.9)</p> <p><strong>Steps I already took:</strong></p> <ol> <li><p>Added PHP (<code>D:\xampp7\php</code>) and PHP extensions (<code>D:\xampp7\php\ext</code>) directories to system variable (PATH)</p></li> <li><p...
0
1,268
Docker - Failed to connect to localhost port 4000: Connection refused
<p>Hi I'm very new to Docker, I'm trying to get familiar with Docker by following the tutorial on official site. Now I get stuck at part 2 of the tutorial (where you can check up the link here => <a href="https://docs.docker.com/get-started/part2/#run-the-app" rel="noreferrer">https://docs.docker.com/get-started/part2/...
0
1,196
Reactjs : Adding element to array object in Json
<p>I have just started with reactjs and working on form component(formsy).I am trying to add and element to the existing array element but I am not able to do so. below is what I have tried and what I have got so far.</p> <p>JSON Object - </p> <pre><code>{ "details": { "someInnerObj": "v3", "innerObj...
0
1,683
Google API - request for token from Oauth2 returns "invalid_request"
<p>I am trying to make an app using Google's calendar API. I'm following the directions <a href="https://developers.google.com/accounts/docs/OAuth2WebServer">here</a>. I can make the request to get the authorization code, but I can not seem to form a valid request to get an access token. I keep getting the response ...
0
1,206
Angular2 Error: There is no directive with "exportAs" set to "ngForm"
<p>i'm on the RC4 and i'm getting the error <strong>There is no directive with "exportAs" set to "ngForm"</strong> because of my template :</p> <pre><code>&lt;div class="form-group"&gt; &lt;label for="actionType"&gt;Action Type&lt;/label&gt; &lt;select ngControl="actionType" ===&gt; ...
0
1,249
adding dropdown menu in alert dialog box in flutter
<p>I'm having UI rendering issues when I attempt to add a drop down menu with a date and time picker in an alert dialog box in my flutter application. I've been trying to troubleshoot this for quite some time now but to no avail. This is the output that I am getting: </p> <p><a href="https://i.stack.imgur.com/WUEN4.pn...
0
4,499
NHibernate mapping - one-to-one (or one-to-zero)
<p>NHibernatians!</p> <p>I have a table [dbo].[Wibble] and another table [dbo].[WibbleExtended].</p> <p>[Wibble] is the main table and [WibbleExtended] is an optional table where some other fields are stored. There are far fewer entries in the [WibbleExtended] table than the main [Wibble] table. I think this was do...
0
1,089
JavaFX: Apply text color to TableCell using custom style sheet?
<p>JavaFX: <strong>How can I apply text color to a TableCell using a custom style sheet?</strong></p> <p>It works fine, when I use <code>setTextFill()</code> in my CellFactory directly, but I want to apply custom style using an external CSS file. I could prove that my CSS class is applied, since the font becomes bold....
0
1,660
WPF datagrid pasting
<p>I'm having trouble pasting from a csv into the wpf datagrid - I have followed the suggestions here</p> <p><a href="https://docs.microsoft.com/en-us/archive/blogs/vinsibal/pasting-content-to-new-rows-on-the-wpf-datagrid" rel="nofollow noreferrer">Link</a></p> <p>and the code exectues with no problem - however, it see...
0
1,221
Spring Boot app deployed to Glassfish is giving strange results
<p>As mentioned <a href="https://spring.io/blog/2014/03/07/deploying-spring-boot-applications#comment-1317477696" rel="noreferrer">here</a>, I am having a heck of a time getting my small Spring-Boot project to deploy "correctly" to Glassfish. It runs fine using the embedded Tomcat, but once I try and move it into my o...
0
1,440
error C2220: warning treated as error - no 'object' file generated
<p>I have below class</p> <pre><code>class Cdata12Mnt { public: char IOBname[ID1_IOB_PIOTSUP-ID1_IOB_TOP][BOADNAM_MAX + 4]; char ExIOBname[ID1_MAX_INF-ID1_EXIOB_U1TOP][BOADNAM_MAX + 4]; char cflpath[256]; char basetext[256]; UINT database[ID1_MAX_INF]; int State; public: char SelectPath[25...
0
2,404
Error While deploying in Oracle weblogic 11g
<p>During deployment of my application in Oracle weblogic 11g Messages</p> <pre><code>Unable to access the selected application. Exception in AppMerge flows' progression Exception in AppMerge flows' progression All tags must be contained within a single element All tags must be contained within a single element </cod...
0
5,724
Installing Python-2.7 on Ubuntu 10.4
<p>I can't seem to install zlib properly, I installed Python from source on Ubuntu10.4 </p> <p>'######## edit #####################<br> bobince and Luper helped.<br> Make sure you install these packages and then recompile Python:<br> sudo aptitude install zlib1g-dev libreadline6-dev libdb4.8-dev libncurses5-dev<br> '...
0
1,348
What cause org.hibernate.PropertyAccessException: Exception occurred inside setter
<p>What cause this exception, I can't manage to find out.</p> <pre><code>Request processing failed; nested exception is javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: Exception occurred inside setter of my.Class </code></pre> <p>Root cause:</p> <pre><code>javax.persistence.Persistence...
0
5,985
WPF MVVM command canexecute enable/disable button
<p>I want to enable RibbonButton when textbox property text isn't null. Disable RibbonButton when textbox property text is null. I want to use CanExecute method in ICommand for it. How can I do it?</p> <p><strong>View:</strong></p> <pre><code> &lt;Custom:RibbonButton LargeImageSource="..\Share...
0
1,688
PHP foreach loop using one entry twice
<p>I'm just experimenting a little with PHP and PDO working with a MySQL database and I'm a little stumped as to why after getting the results, storing them correctly in a multi-dimensional array and looping through them it outputs one of the array data twice.</p> <p>Essentially here's the query to grab the data:</p> ...
0
2,064
i can't solve maven building error failure
<p>I get a error when I use maven to build my project.so please help! thank you for your help</p> <blockquote> <p>Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2.1:assembly (make-assembly) on project newstart-app-ithelp: Execution make-assembly of goal org.apache.maven.plugins:maven...
0
4,703
task.Wait throwing an exception
<p>Largely as a follow-up to this question <a href="https://stackoverflow.com/questions/4380732/test-driven-asynch-tasks">test driven asynch tasks</a> I have come up with some code that works if I don't have the task wait, but fails if I do.</p> <p>Can anyone explain why?</p> <p><strong>Exception:</strong></p> <p>I ...
0
1,887
Using the same controller on different elements to refer to the same object
<p>I figured if I slapped <code>ng-controller="GeneralInfoCtrl"</code> on multiple elements in my DOM they would share the same <code>$scope</code> (or least two-way binding isn't working).</p> <p>The reason I want to do this is because I have different read-only views with associated modal dialogs in very different p...
0
1,234
No embedded stylesheet instruction for file: error using logback
<p>I have the following <code>logback.xml</code> configuration: </p> <pre class="lang-xml prettyprint-override"><code>&lt;configuration&gt; &lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"&gt; &lt;!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncode...
0
1,190
ngModel for textarea not working in angular 2
<p>I am trying to print json object in textarea using <code>ngModel</code>.</p> <p>I have done following:</p> <pre><code>&lt;textarea style="background-color:black;color:white;" [(ngModel)]='rapidPage' rows="30" cols="120"&gt; &lt;/textarea&gt; </code></pre> <p>I want to load the json ob...
0
1,191
Symfony ArrayCollection vs PersistentCollection
<p>As I understood when you query database by repository you get PersistentCollection and when your working with your entities you get ArrayCollection.</p> <p>so consider I have one to many self referencing relation for my user entity.</p> <p>and in my user entity I have a setChildren method which get ArrayCollection...
0
6,605
Android "No content provider found or permission revoke" with android 4
<p>I have an android application that works perfectly on android 2-2 and 2-3. But when i try to install the application on android 4-0 or 4-2-2 i twice get the following error:</p> <p>No content provider found for permission revoke: file:///data/local/tmp/myapp.apk</p> <p>I found out that others had a similar problem...
0
1,152
Ansible provisioning ERROR! Using a SSH password instead of a key is not possible
<p>I would like to provision with my three nodes from the last one by using Ansible.</p> <p>My host machine is Windows 10.</p> <p>My Vagrantfile looks like:</p> <pre class="lang-ruby prettyprint-override"><code>Vagrant.configure("2") do |config| (1..3).each do |index| config.vm.define "node#{index}" do |node|...
0
1,092
Calculate the accuracy every epoch in PyTorch
<p>I am working on a Neural Network problem, to classify data as 1 or 0. I am using Binary cross entropy loss to do this. The loss is fine, however, the accuracy is very low and isn't improving. I am assuming I did a mistake in the accuracy calculation. After every epoch, I am calculating the correct predictions after ...
0
2,287
How to fix "Failed to obtain JDBC Connection" datasource error in my java application
<p>I have a little training project running under Java Spring MVC and using MySQL on WAMP Server), it was working but i cloned it and had to reinstall database (restored from a dump) and Wamp64 also, but now my java application cannot connect and i get different errors.</p> <p>In IntelliJ IDEA when i test the connecti...
0
2,928
How to handle errors in fetch() responses with Redux Thunk?
<p>I'm making API requests using isomorphic fetch, and using Redux to handle my app's state.</p> <p>I want to handle both internet connection loss errors, and API errors, by firing off Redux actions.</p> <p>I have the following (work-in-progress / bad) code, but can't figure out the correct way to fire the Redux acti...
0
1,299
Jquery: Add class to every second visible element
<p>I'm trying to create a dynamic portfolio gallery where you can hide show items by clicking categories. Everything works apart from adding a class to elements hidden/showing when categories are clicked.</p> <p>I currently have:</p> <pre><code>$(document).ready(function() { $('ul.filter a').click(function() { $(t...
0
4,194
how to get length of json encoded array in javascript?
<p>I have a json encoded array like this:</p> <pre><code>{ "ar0":"{\"start\":{\"lat\":22.9939202,\"lng\":72.50009499999999},\"end\":{\"lat\":23.0394491,\"lng\":72.51248850000002},\"waypoints\":[[23.0316834,72.4779436]]}", "ar1":"{\"start\":{\"lat\":22.9999061,\"lng\":72.65318300000001},\"end\":{\"lat\":23.0420584...
0
1,028
org.apache.camel.NoSuchBeanException: No bean could be found in the registry for:
<p>I have the following route definition:</p> <pre><code>@Component public class CamelRoutes extends RouteBuilder { @Override public void configure() throws Exception { from("seda:second") .bean("helloWorld?method=smth") .process(exchange -&gt; ...
0
5,366
convert maven pom to gradle build
<p>I am converting one of my maven project into gradle. For doing this I am runngin following command where pom.xml is located </p> <pre><code>gradle init --type pom </code></pre> <p>But it is giving me java.lang.NullPointerException</p> <pre><code> FAILURE: Build failed with an exception. * What went wrong: Execu...
0
4,668
Content Security Policy directive: “frame-ancestors” missing but there?
<p>I am working on a nodejs electron app, in my index.html I have a "Content-Security-Policy" that looks like this </p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Security-Policy" content=" default-src 'self' https://*.mydomain.tld; script-src ...
0
1,458
Extract Exchange 2007 Public Calendar Appointments using Exchange Web Services API
<p>We have a public calendar for our company set up in an Exchange 2007 Public Folder. I am able to retrieve my personal calendar appointments for the current day using the code below. I have searched high and low online and I cannot find one example of someone retrieving calendar information from a Public Folder cal...
0
1,595
Golang XML attribute and value
<p>I can't seem to figure out why this isn't working</p> <pre><code> type HostProperties struct { XMLName xml.Name `xml:HostProperties"` ...
0
2,576
Error running pod install - Automatically assigning platform `iOS` with version `8.0` on target `Runner`
<p>Hello I am not able to solve this problem with Cocoapods anyone can help me is the first time I am using this import- <strong>import 'package:flutter_vlc_player/flutter_vlc_player.Dart';</strong> and not what might be wrong. ...
0
1,833
Call a javafx fxml controller method from another class to update a tableview
<p>I am trying to update a javafx tableview defined in my fxml controller by calling a particular method FXMLDocumentController.onAddSystemMessage() from another application utility class method GlobalConfig.addSystemMessage(). </p> <p>Here is my main Application class where i load the fxml:</p> <pre><code>public cla...
0
2,246
Using Log4J 1.*, how can I write two packages to two separate files?
<p>I have the following two packages:</p> <p>com.mycorp.project.first<br> com.mycorp.project.second</p> <p>I'd like to configure Log4J (SLF4J) to write the logs from one package to one file, and from the other package to a second file. I do not want them to be mixed in together. </p> <p>To be clear, this is one proj...
0
1,321
How to implement OnScrollListener to a listview??
<p>i am getting 500 records from server..i want to display 10 items in a listview and when listview reaches end i need to load another 10 and so on.. I have seen many examples in the net but i am unable to resolve it Pls help me.</p> <p>Here is my code:</p> <pre><code>public void onCreate(Bundle savedInstanceState) {...
0
2,056
Queuing Actions in Redux
<p>I've currently got a situation whereby I need Redux Actions to be run consecutively. I've taken a look at various middlewares, such a redux-promise, which seem to be fine <em>if you know what the successive actions are at the point of the root (for lack of a better term) action being triggered</em>.</p> <p>Essentia...
0
1,462
How to decrypt md5 passwords in php with substr?
<p>I am sharing my 2 file's code.for insert username and passwords and to retrieve data. My scenario is something different. if username : <strong>abc</strong> and password: <strong>123456789</strong></p> <p><strong>on login screen user have to enter only 3 digits from his password.But that will be random numbers fr...
0
1,728
How to show text over image?
<p>I have to show two line text as attached image .</p> <p><a href="https://i.stack.imgur.com/JvwnD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JvwnD.jpg" alt="enter image description here"></a></p> <p>In this image I have to show text "Hotel Seawoods, Mahalaxmi 20% Cashback" over image .</p> ...
0
4,600
Maven Build error "Expected root element project but found html"
<p>I am new to maven. I am trying to build a project given to me. But I keep getting the following error. I have deleted the .m2 directory multiple times with no luck.</p> <p>I read through a few post suggestions the ISP was sending HTML file instead of HTTP code.</p> <p>Here is a log from the run.</p> <pre><code>Apach...
0
2,160
How to remove unwanted spaces at the right of CheckBox?
<p>I am working on a custom list view. I want to show a <code>CheckBox</code> at the custom view. There is no text for the <code>CheckBox</code>. I found it always have some spaces at the right of the <code>CheckBox</code>.</p> <p>Here is my layout xml file:</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quo...
0
1,041
How to upgrade SQLite database in Android?
<p>In the first time I have created one Table <code>DEPTS</code>. After that I want to create another two tables <code>FEEDS</code> and <code>ARTICLES</code>.</p> <p>But I see that the commends for creating new tables never executed, why?</p> <p>Here is my code:</p> <pre><code>package com.android.database; // ... i...
0
4,082
Facebook not able to scrape my url
<p>I have the HTML structure for my page as given below. I have added all the meta og tags, but still facebook is not able to scrape any info from my site. </p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"&gt; &lt;html xmlns="http://www....
0
1,317
Node Sass does not yet support Windows 64-bit
<p>I am running protractor UI automation project and try to run test with <code>yarn test</code> and received following build error</p> <p><code>Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime</code></p> <p>I am on Windows 10 (64). below are...
0
4,754