title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Thread Programming in C++/CLR
<p>I am really struggling with Thread programming in Visual C++/CLR. I have searched a lot and found lots of material on the internet including the official resources however i am still confused. There are very few resources for C++/CLR. Most of them are for C# or old style C++. I try to run this simple code. I choose ...
0
1,189
Java RMI cannot bind server
<p>I'm working on Java RMI application, and having problem binding a server to the registry. I'm working on eclipse using rmi plugin, and everything worked fine before I had to format my pc. Also, I'm sure the code is ok since it's the one given to me as a solution, so there must be something wrong with my configuratio...
0
1,935
Why does my Android service get restarted when the process is killed, even though I used START_NOT_STICKY?
<p>My app uses a pattern where I start a service with <a href="http://developer.android.com/reference/android/content/Context.html#startService%28android.content.Intent%29" rel="noreferrer">Context#startService()</a> as well as bind to it with <a href="http://developer.android.com/reference/android/content/Context.html...
0
1,260
how to make junit test run methods in order
<p>guys! I have a new question for you. I'm adding some data to cache using different cache managers and I'm facing the problem with it. I'm doing it using junit and spring. When I run the test, the test methods are executed randomly, but I need them to be executed in order. How to do it?? Here is some code and a provi...
0
1,159
Using Unity3D's IPointerDownHandler approach, but with "the whole screen"
<p>In Unity say you need to detect finger touch (finger drawing) on something in the scene.</p> <p>The only way to do this <strong>in modern Unity, is very simple</strong>:</p> <hr> <p><strong>Step 1</strong>. Put a collider on that object. ("The ground" or whatever it may be.) <sup>1</sup></p> <p><strong>Step 2.</...
0
1,557
How to use jasper-reports with spring MVC?
<p>I want to generate a report using jasper-reports and i can't figure what information should contain the controller, because when i a create the report i am using as data source the result set of a query. </p> <p>reports.jsp</p> <pre><code>&lt;%@ include file="/WEB-INF/template/taglibs.jsp"%&gt; &lt;div class="cont...
0
3,936
How do I show a label beyond a certain zoom level in Leaflet?
<p>I'm pretty new to the Leaflet library, and to JavaScript in general, and I'm stuck trying to figure out how to show/hide a leaflet Label based on the zoom level (and the markers are in a 'cluster' layer). </p> <p>The markers are all loaded via AJAX callback and then I bind the popup and label using the <code>onEach...
0
1,073
Spring MVC @RequestMapping not working
<p>I have a strange scenario in which my controller is not invoked unless I map the dispatcher servlet to /* in web.xml. I have defined a controller with a RequestMapping:</p> <pre><code>@Controller public class UserController { @RequestMapping(value = "/rest/users", method = RequestMethod.GET) public Model...
0
1,114
MVC 3 client side validation, model binding decimal value and culture (different decimal separator)
<p>I am trying to have my client side validation (model binding) to support different cultures, and I found an interesting blog on the subject on which I am trying to implement.</p> <p><a href="http://haacked.com/archive/2011/03/19/fixing-binding-to-decimals.aspx" rel="noreferrer">http://haacked.com/archive/2011/03/19...
0
2,149
C free() invalid next size (normal)
<p>I'm fairly new to C and I can't seem to figure out what seems to be a pretty simple pointer problem. My program adds line numbers to a file. It reads in the file line by line and then adds a line number to the beginning of each line. It works fine on each file individually as you can see below:</p> <pre><code>soc...
0
2,672
Visual Studio Code [eslint] Delete 'CR' [prettier/prettier] on windows
<p><a href="https://i.stack.imgur.com/OeH4N.png" rel="noreferrer">Eslint error in vscode terminal</a></p> <p>Getting ESLint error of CR - even if I have the git pull code with windows line endings.</p> <p>This occurs on Visual Studio Code with EsLint plugin (1.7.0) This did not occur until I recently update my git to...
0
2,968
How to do validation with mat-checkbox?
<p>I would like to know how to check if the checkbox was selected, if it was not selected, an error message will appear for the user. I managed to put the error message but not to able to use it along with the rest of the form. can you help me? Here's what I have to do.</p> <pre><code>&lt;mat-checkbox class="hcs-full-...
0
1,036
Yii2 Form in Modal Window
<p>I would like to understand the basics of how to work with form from Modal window in Yii2? This is my current understanding and I will be grateful if someone can explain me what I missed. So, I have a ListView with records. Each record contains a button. The button opens a Modal with a Form inside:</p> <pre><code>ec...
0
1,830
How to set timeout on event onChange
<p>I have a gallery that show images, and i have a search textbox Im Trying to use Timeout on Input event to prevent the api call on every letter im typing : I try to handle the event with doSearch function onChange: but now I cant write anything on the textbox and it cause many errors Attached to this session the app ...
0
1,237
error "remote error: tls: bad certificate", ServerName ""
<p>I am start etcd(3.3.13) member using this command:</p> <pre><code>/usr/local/bin/etcd \ --name infra2 \ --cert-file=/etc/kubernetes/ssl/kubernetes.pem \ --key-file=/etc/kubernetes/ssl/kubernetes-key.pem \ --peer-cert-file=/etc/kubernetes/ssl/kubernetes.pem \ --peer-key-file=/etc/kubernetes/ssl/kubernetes-...
0
1,422
Zeppelin throws java.lang.OutOfMemoryError: Java heap space
<p>I am trying to use Zeppelin with the following code:</p> <pre class="lang-scala prettyprint-override"><code>val dataText = sc.parallelize(IOUtils.toString(new URL("http://XXX.XX.XXX.121:8090/my_data.txt"),Charset.forName("utf8")).split("\n")) case class Data(id: string, time: long, value1: Double, value2: int, mo...
0
1,605
Expansion File (Android): "Download failed because the resources could not be found"
<p>I am facing a problem with an expansion file process, I do not know what the problem is. I hope if someone could help.</p> <p>I have followed the steps by Google; yet I cannot assure I have done it correctly 100%.</p> <pre><code>/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apac...
0
13,026
TableLayoutPanel rows & columns at runtime
<p>im trying to build a usercontrol which contains a tablelayoutpanel. in this panel i need to dynamically add 3 columns with each having different a width and 5 rows which all shell have the same height (20% of the tablelayoutpanel's height).</p> <p>column1 should have an absolute width of 20, column2 depending a wid...
0
1,246
PHP 'Years' array
<p>I am trying to create an array for years which i will use in the DOB year piece of a form I am building. Currently, I know there are two ways to handle the issue but I don't really care for either:</p> <h2>1) Range:</h2> <p>I know I can create a year array using the following</p> <pre><code>&lt;?php $year =...
0
1,932
What happens when there's insufficient memory to throw an OutOfMemoryError?
<p>I am aware that every object requires heap memory and every primitive/reference on the stack requires stack memory.</p> <p>When I attempt to create an object on the heap and there's insufficient memory to do so, the JVM creates an <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/OutOfMemoryError.html">ja...
0
1,342
How to show JRBeanCollectionDataSource data with help of Table component?
<p>I need to show JRBeanCollectionDataSource data in Table component (JasperReports). </p> <p>Here is my template, ShowPerson.jrxml file:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
4,246
Django ERROR: Invalid HTTP_HOST header: u'/run/myprojectname/gunicorn.sock:'
<p><em>I know that there are a lot of questions like this on SO, but none of them appear to answer my particular issue.</em></p> <p>I understand that Django's <code>ALLOWED_HOSTS</code> value is blocking any requests to port <code>80</code> at my IP that do not come with the appropriate <code>Host:</code> value, and t...
0
1,932
Change Images on Custom CheckBox in WPF
<p>All I have created the following custom <code>CheckBox</code> which uses images instead of a <code>CheckBox</code>. This works well however, I want to be able to change the images as required. Ideally I would like to use application resources <code>Properties.Resources.SomeImage16</code> (a .png file). The XAML is <...
0
1,261
fixed page, content scrolling behind header
<p>I am working on a website. I have most of the page fixed, except I want the table in the middle to scroll with the main scrollbar. Then I have an image in the background that I want to partially show through. I have it mostly working. The only part I cannot figure out is how to get the table content to go behind...
0
3,886
Undefined method `instance' for Capistrano::Configuration:Class
<p>I am trying to get Capistrano up and running for the first time in a rails app. I have a linux server running Ubuntu 12.04, nginx, unicorn and rails, however, I seem to be running into a few issues. I am also using Capistrano 3.0.0, rails 3.2.14, bundler 1.4.0 &amp; ruby 1.9.3p448 using RVM. </p> <p>I only have a p...
0
1,330
pg_upgrade on Windows cannot write to log file pg_upgrade_internal.log
<p>I'm trying to run pg_upgrade on Windows 2008R2, but I'm getting the error:</p> <blockquote> <p>cannot write to log file pg_upgrade_internal.log Failure, exiting</p> </blockquote> <p>I saw a similar question for Linux at <a href="https://stackoverflow.com/questions/23216734/cannot-write-to-log-file-pg-upgrade-int...
0
1,133
Catchable Fatal Error: Argument 1 passed to Doctrine\Common\Collections\ArrayCollection::__construct() must be of the type array, object given
<p>I'm learning Symfony 2 and I got the following error when I submit a form: </p> <blockquote> <p>Catchable Fatal Error: Argument 1 passed to Doctrine\Common\Collections\ArrayCollection::__construct() must be of the type array, object given, called in C:\xampp\htdocs\ppe2\vendor\doctrine\orm\lib\Doctrine\ORM\UnitOf...
0
3,144
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]
<p>Am deploying an application repair-service on Apache Tomcat server using Eclipse, but the issue seems that the application is not getting copied in the webapps folder i.e its not getting published.</p> <p>HTTPConnectionManager class is already present in the jar in build path.</p> <pre><code>Sep 09, 2013 1:24:46 P...
0
1,327
How to replace a part of a string in an xml file?
<p>I have an xml file with something like this:</p> <pre><code>&lt;Verbiage&gt; The whiskers plots are based on the responses of incarcerated &lt;Choice&gt; &lt;Juvenile&gt; juveniles who have committed sexual offenses. &lt;/Juvenile&gt; &lt;Adult&gt; adult sexual offenders. &l...
0
3,148
SQLite error code = 1
<p>I'm trying to insert some data into my SQLite database. But I keeo receiving an error code 1 saying that my column does not exist. Can someone help me please, Below is my code:</p> <pre><code>08-17 13:12:46.473: I/Database(13328): sqlite returned: error code = 1, msg = table login has no column named uid 08-17 13:1...
0
2,529
$(...).tabs is not a function jQuery UI 1.10.4
<p>Getting this error $(..).tabs not a function.</p> <p>here are my imports</p> <p><code>&lt;link rel="stylesheet" href="css/jquery-ui-1.10.4.css" type="text/css"&gt;&lt;/link&gt; &lt;script type="text/javascript" src="js/jquery-2.1.1.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="js/jquery-ui-...
0
1,118
maven-surefire-report-plugin 2.8 error: org.apache.maven.doxia.siterenderer.sink.SiteRendererSink.unknown
<p>My project started to fail during the execution of <code>mvn site:site</code> since I updated the maven-surefire-report-plugin to version 2.8, which was just <a href="http://www.mail-archive.com/users@maven.apache.org/msg117227.html" rel="nofollow noreferrer">released a week or so ago</a>.</p> <p>Here is the except...
0
1,945
aplay / alsaplayer - sound not working for normal user
<p>I cannot use alsa as a normal user (resulting in me not having sound in chromium).</p> <p>I am guessing it has something to do with permissions. Adding myself to group audio didn't help.</p> <pre><code>[zarac@towelie ~]$ grep audio /etc/group audio:x:92:mpd,zarac </code></pre> <p>Testing sound as normal user:</p>...
0
1,273
Multilevel (up to 3 level) Vertical Menu with bootstrap/Jquery
<p>I am trying to create a navigation menu which is vertical and up to 3-level navigation and last level is toggable menu (when u click on last level menu,a set of submenu appears below that).A sample structure of the menu structure is similar to this</p> <p><img src="https://i.stack.imgur.com/HWUrk.png" alt="enter im...
0
4,221
How to catch all errors for ExoPlayer?
<p>I implemented ExoPlayer as player for my application. But I can´t find out how to catch all ExoPlayer errors to avoid app crash. I added following listener, but it doesn´t catch all errors.</p> <p>I have to use DRM and it sometimes crash on some problem with it, but I can´t set listener before, because player is NUL...
0
3,391
How to get WPF ContentControl content to stretch?
<p>I'm using a <code>ContentControl</code> to render various <code>UserControl</code> derivations dynamically. I can't for the life of me figure out how to get the content to stretch when I resize the parent <code>Window</code>. I've found many references like <a href="https://stackoverflow.com/questions/6767613/wpf-...
0
1,469
What does the `Target Platform Version` mean for a VS C++ project?
<h2>BACKGROUND</h2> <p>As I understand it, in a C++ project:</p> <ul> <li>Project Properties =&gt; Configuration Properties =&gt; General =&gt; <em>Platform Toolset</em> <ul> <li>Tells the compiler which SDK to physically compile against.</li> <li>For example: v140 will tell Visual Studio 2015 to use the latest and gre...
0
1,233
Installing NumPy with pip fails on Ubuntu
<p>When I try:</p> <pre><code>$ sudo pip install numpy </code></pre> <p>on my Ubuntu 12.04 server, I get:</p> <pre><code>------------------------------------------------------------ /usr/local/bin/pip run on Tue Dec 10 18:25:54 2013 Downloading/unpacking numpy Getting page https://pypi.python.org/simple/numpy/ ...
0
9,076
Cannot get on http://localhost:3000/
<p>I am using gulp.The tasks are getting run creating required folders. But I get Cannot GET/ error when run in browser.I have attached the image of my project structure and also the output in command line<a href="https://i.stack.imgur.com/T91GY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T91GY.p...
0
1,088
Couldn't expand RemoteViews
<p>I try to create a custom notification but getting the following exception:</p> <pre><code>FATAL EXCEPTION: main android.app.RemoteServiceException: Bad notification posted from package com.my.app: Couldn't expand RemoteViews for: StatusBarNotification(pkg=com.my.app user=UserHandle{0} id=1 tag=null score=0: Notific...
0
1,055
React useRef hook causing "Cannot read property '0' of undefined" error
<p>I'm trying to create a reference using the <code>useRef</code> hook for each items within an array of `data by doing the following:</p> <pre><code>const markerRef = useRef(data.posts.map(React.createRef)) </code></pre> <p>Now, <code>data</code> is fetched externally through GraphQL and it takes time to arrive, the...
0
1,824
Dynamically render view in a partial with Rails and jQuery
<p>In my app, I have a user profile page that has three tabs and a blank div below it. There is a default tab that is white and two other tabs that are darker and "unselected".</p> <p>I want to make it so that the content in the div below renders a partial based on which tab is selected.</p> <p>I already have it work...
0
1,091
Problem with NTFRS - Missing Sysvol and Netlogon on a 2003 Server
<p>This is a problem that is affecting me. Although this description wasn´t written by me (seen at www.experts-exchange.com (1), one of the kind of sites stackoverflow was created because of) it applies 95% to the problem I´m having. Next time I won´t follow MS advice, The domain was working until I tried the suggested...
0
2,695
Eclipse: Could not open the editor: No editor descriptor for id org.eclipse.jdt.ui.CompilationUnitEditor
<p>When I updated Eclipse using "Help -> Check for Updates" I got a problem. </p> <p>If I try to start Eclipse, Eclipse opens but show a error message like this:</p> <pre><code> Could not open the editor: No editor descriptor for id org.eclipse.jdt.ui.CompilationUnitEditor </code></pre> <p>And inside "Details" o...
0
1,927
Error: AppModule is not an NgModule
<p>I updated version 2.4.1 recently.</p> <pre><code>"@angular/common": "~2.4.1", "@angular/compiler": "~2.4.1", "@angular/compiler-cli": "^2.4.1", "@angular/core": "~2.4.1", "@angular/forms": "~2.4.1", "@angular/http": "~2.4.1", "@angular/platform-browser": "~2.4.1", "@angular/platform-browser-dynamic": "~2.4.1", "@an...
0
4,589
PHP : How to put and pass variable in modal URL
<p>So, I have a button to give a direct link to modal in same page.</p> <p>this is the button and url</p> <pre><code>&lt;a data-toggle="modal" href="main_user.php?user_id=&lt;?php echo $user['user_id']; ?&gt;#myModal" class="btn btn-warning"&gt; </code></pre> <p>( I try to echo the <code>$user_id</code> on b...
0
1,573
How to calculate subtotal and grand total in javascript?
<p><strong>What I need</strong> I want to sum all to amount as the images but I can't do it </p> <p><strong>As below code how can to total all amount after quantity multiple with unitPrice?</strong></p> <p><strong>Here is Html element</strong></p> <pre><code> &lt;html&gt; &lt;form&gt; &lt;div&gt; Quanti...
0
2,116
WCF logging, set max file size?
<p>Im using Microsoft Service Configuration Editor to setup diagnostics(WCF logging) and I can´t find any way to set the max file size?</p> <p>I have found the MaxSizeOfMessageToLog but that do nothing about the file size?</p> <p><strong>Edit 1:</strong> According to this : <a href="http://msdn.microsoft.com/en-us/li...
0
1,034
redirect to another page after submitting a form
<p>How can I redirect to another page after submitting a form? What code is needed to add my code?? This is my code simple.js</p> <pre><code>import React from 'react'; import { Field, reduxForm } from 'redux-form'; const SimpleForm = props =&gt; { const { handleSubmit, pristine, reset, submitting } = props; retu...
0
2,898
WebGL Unavailable, GPU Process unable to boot
<p>I'm running Chrome 54.0.2840.87 on Windows 10. I have two GPUs: an Intel(R) HD Graphics 520, and a AMD Radeon R5 M335.</p> <p>Up until a couple of weeks ago, WebGL was running just fine in chrome. Now, after not having changed any settings anywhere, WebGL is no longer available.</p> <p>When trying to run a chrome ...
0
2,750
how to get id of selected item in autocompletetextview in android
<p>I am retrieving values from server for autocompletetextview, I am getting the list of user names along with their user ids, now what I want is when i select any username from list I want to get user id of that username.</p> <p>Please have look at my code:</p> <p><strong>SearchFriendsAdapter.java</strong></p> <pre...
0
2,684
The module has not been deployed [netbeans+glassfish]
<p>i am developping a project base on J2EE EJB JSF, database is MYsql, the project works very well last week. but today, it can't be deployed when i run it. here are some exception:</p> <pre><code> Initial deploying ECOM to C:\Users\John624\Documents\NetBeansProjects\PromoCoupon\ECOM\dist\gfdeploy\ECOM Completed ini...
0
8,013
How do I find out how macPorts stole my port:80?
<p>I had MAMP installed (and working fine) then I tried to install mongoDB through macPorts. macports then began installing a bunch of dependencies. after that, <a href="http://localhost" rel="noreferrer">http://localhost</a> started giving an "It Works!" screen. after rebooting to see if it might fix it, I found that ...
0
1,255
IFrame OnReadyStateChange function
<p>I have an asp.webforms application and on page a i have a hidden div with progressbar and iframe. To iframe i try loaded form from another application on same domain.</p> <pre><code>&lt;div id="pagePreview" style="display: none;"&gt; &lt;div class="progressBarWrapper" id="waitDialog" style="opacity:1;fi...
0
1,366
Django File Upload
<p>Here is the code in views:</p> <pre><code>def index(request): if request.method == 'POST': a=request.POST # logging.debug(a["title"]) # logging.debug(a["file"]) #form = UploadFileForm() form = UploadFileForm(request.POST, request.FILES) #handle_uploaded_file(request...
0
2,134
How come jobParameters cannot be found in ItemProcessor using annotations?
<p>I am having issues using the job parameters in my item processor. At this time, the code is basically setup like: <a href="https://stackoverflow.com/questions/31737209/how-to-get-job-parameteres-in-to-item-processor-using-spring-batch-annotation">How to get Job parameteres in to item processor using spring Batch ann...
0
7,526
How do I make Firefox reload page when back button is pressed?
<p>I have tried every combination and permutation of meta tags that are supposed to stop a page from being cached, but Firefox STILL caches the page! <strong>I just need the URL to reload when a user presses the back button.</strong> Works fine in IE8.</p> <p>I have tried all of these...</p> <pre><code>&lt;meta htt...
0
1,520
Error:java.lang.NullPointerException (no error message)
<p>This question have asked for several times and I follow those questions and tried to solve the problem. The project was successfully build and running I shut down my computer few hours ago. This problem is making me mad please help.</p> <p>Message:</p> <pre><code> Information:Gradle tasks [:app:generateDebugSource...
0
1,049
org.hibernate.exception.DataException: Could not execute JDBC batch update
<pre><code>AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.hibernate.exception.DataException: Could not execute JDBC batch update faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:XXX org.hibernate.except...
0
1,110
jQuery Ajax does not update the result inside the div
<p>This question might be basic for most of the people out here, but I'm really fed up of not getting the desired o/p. I want to make AJAX calls when an item from the list(id = vzlabs_data) is being clicked and its respective data should be updated inside the table(id = table_data). </p> <p>Currently, I'm ab...
0
2,484
Parse error: syntax error, unexpected end of file
<p>Its working at first but when I re-edit it since it looks messy, the result is now error, can somebody please help me. </p> <p>I think i already closed the braces and scripts, i dont know what's wrong with it.</p> <pre><code>&lt;?php session_start(); require("functions.php"); if(!isset($_GET['id'])&amp;&amp;isset(...
0
5,283
error C2143: syntax error : missing ';' before '*'
<p>I'm not new to C++ but I am used to running a g++ compiler vs Microsoft's VS C++. I understand what this error should mean. It should mean that I'm missing a ';' on the line before or in the class Polygon. I can't seem to find anything wrong. g++ compiles the code without error. It seems like the Polygon Class isn't...
0
10,411
How to create a ODBC connection to SQL Server?
<p>I try to use Access to call a stored procedure in SQL Server. But have trouble to build the ODBC connection, I do not know am I missing something? Or just need do some set in sql site? </p> <p>I have a screen like this:</p> <p><img src="https://i.stack.imgur.com/X0Ptq.jpg" alt="enter image description here"> </...
0
1,114
An exception of type 'System.InvalidOperationException' occurred in EntityFramework.dll but was not handled in user code, C#
<p>Im trying to work with databases and Entity-framework.</p> <p>Here Is my Database:</p> <p><a href="https://i.stack.imgur.com/8LfWi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8LfWi.png" alt="Database"></a></p> <p>I have the following file that creates an context:</p> <pre><code>namespace S...
0
2,997
Play Store having new version of the app, but not showing update
<p>I have my app installed in my cell with version 1.0.5 ( Version code 9)</p> <p>In Google Play Store, I can see my app with version 1.0.7 ( Version code 11 ), but it doesn't show me the button update ( it is showing me the button "Open")</p> <p>Is it something I have to include in my app???</p> <p>Is it a bug in P...
0
2,560
Can't resolve all parameters for Router: (?, ?, ?, ?, ?, ?, ?) in Angular RC 5 when unit testing
<p>I just upgraded to Angular RC 5 and now all component that uses 'ROUTER_DIRECTIVES' fails with 'Can't resolve all parameters for Router: (?, ?, ?, ?, ?, ?, ?)' when I try to unit test the component. </p> <pre><code>import { inject, addProviders } from '@angular/core/testing'; import { ComponentFixture, TestComponen...
0
1,033
Having Troubles with UnixODBC, FreeTDS, and PyODBC
<p>I am having great difficulty getting all three of these to work together in harmony. I guess I'll list all the various configurations, along with the test code to see if a pair of fresh eyes can realize my stupidity.</p> <p>I'm running 12.04 Ubuntu Server and I'm trying to connect to a MSSQL Server 2008 and end up ...
0
1,384
Error Using Drive Mount with Google Colab
<p>I had been working on Colab using:</p> <pre class="lang-py prettyprint-override"><code>from google.colab import drive .mount('/content/gdrive') </code></pre> <p>with no problems, until today.</p> <p>I don't know why this error was raised:</p> <pre class="lang-py prettyprint-override"><code>Go to this URL in a brow...
0
2,674
jQuery logical operator not working as expected
<p>I have below code which is not working.</p> <pre><code>var book_id = $('#indexBookSearch'); var tag_id = $('#indexTagSearch'); if((book_id.val() == "") || (tag_id.val() == "")) { $('#userMessages').html('&lt;div class="alert alert-info"&gt;'+ '&lt;button type="button" class="close" data-dismiss="alert...
0
1,294
Can't click anything after i open my Bootstrap modal
<p>sorry for the basic question, I'm working on MVC ASP.NET and I'm trying to add a bootstrap modal in my navbar, I run the code, i can see the button i can touch on it, but after it open, the screen is unclickable i have to f5 to click anywhere again, it's the first time i use modals from bootstrap, and search all aro...
0
1,778
How To Add a jFreeChart to a jPanel in a jFrame?
<p>I've looked at lots of questions/answers that are similar and found one which is <a href="https://stackoverflow.com/questions/20297961/how-to-add-chartpanel-in-jpanel-inside-a-jframe">exactly the same</a>, but I have not managed to get my program to work. The output is a blank JFrame, it should output a JFrame with ...
0
1,375
Why are KD-trees so damn slow for nearest neighbor search in point sets?
<p>I am using CGAL's (the latest) KD-tree implementation for searching nearest neighbors in point sets. And also Wikipedia and other resources seem to suggest that KD-trees are the way to go. But somehow they are too slow and Wiki also suggests their worst-case time of O(n), which is far from ideal.</p> <p>[BEGIN-EDIT...
0
2,278
OnScreen keyboard opens automatically when Activity starts
<p>When my Activity with a <code>ScrollView</code> layout and <code>EditText</code>s starts, the <code>EditText</code>s get focus and the Android OnScreen keyboard opens.</p> <p>How I can avoid that?</p> <p>When I was using <code>LinearLayout</code> and <code>RelativeLayout</code> without the <code>ScrollView</code> ...
0
2,975
Dynamically adding rows to datatable using ajax with pagination and sorting
<p>I am trying to achieve <a href="https://almsaeedstudio.com/themes/AdminLTE/pages/tables/data.html" rel="nofollow noreferrer">https://almsaeedstudio.com/themes/AdminLTE/pages/tables/data.html</a> - "Data Table With Full Features"</p> <p>When I added tbody statically, pagination and sorting works fine but when I add ...
0
3,738
@ModelAttribute controller spring-mvc mocking
<p>I want to test a controller which is using <code>@ModelAttribute</code> for one of its method arguments.</p> <pre><code>public String processSaveAction(@ModelAttribute("exampleEntity") ExampleEntity exampleEntity) </code></pre> <p><code>@ModelAttribute</code> method <code>getExampleEntity</code> is using <code>@Re...
0
1,272
Import Classes Into Java Files
<p>I am currently learning to develop in Java and am interested in creating Java classes that other users can import into their program and use. Yes, I know my example class is simple and stupid but I want to learn the concept and start making more complex classes that people can import into their projects.</p> <p>I c...
0
1,455
java.net.UnknownHostException: Unable to resolve host "<url>": No address associated with hostname and End of input at character 0 of
<p>I've created an app that loads a question from my web services, and it works fine. But, sometimes it crashes and I do not get the reason why this is happening, especially because I have also given it the required permissions. It works fine, but at random, it crashes and gives me this report.</p> <pre><code>private ...
0
3,463
Is it fine if first response is private with AppCache (Symfony2)?
<p>I'm trying to use http caching. In my controller I'm setting a response as follows: </p> <pre><code>$response-&gt;setPublic(); $response-&gt;setMaxAge(120); $response-&gt;setSharedMaxAge(120); $response-&gt;setLastModified($lastModifiedAt); </code></pre> <p><strong>dev mode</strong></p> <p>In dev environment firs...
0
1,578
mat-table angular 6 not showing any data despite having the dataSource
<p>I want to show a list through Angular material design's data table mat-table. Here is my component:</p> <pre><code>import { LeaveapplicationService } from './../../services/leaveapplication.service'; import { leaveapplication } from './../../models/leaveapplication'; import { Component, OnInit, ViewChild, Input } f...
0
1,900
jquery .prop('disabled', true) not working
<p>I am attempting to toggle <code>disabled = true|false</code> on a <code>&lt;input type="text"&gt;</code>, using a checkbox. I am able to get the value of the input, but I cannot set the input to disabled.</p> <p>my jquery/js code</p> <pre><code>&lt;script&gt; $(function () { $('.date').datepicker(); $('bod...
0
1,559
apache zeppelin is started but there is connection error in localhost:8080
<p>after successfully build apache zepellin on Ubuntu 14, I start zeppelin and it says successfully started but when I go to localhost:8080 Firefox shows unable to connect error like it didn't started but when I check Zeppelin status from terminal it says running and also I just copied config files templates so the co...
0
2,395
No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
<p>I am getting this exception when I call a DAO method which uses <code>SessionFactory.getCurrentSession()</code>. The DAO class is annotated with <code>@Transactional</code> and I also have <code>&lt;tx:annotation-driven/&gt;</code> declared in the application context configuration file.</p> <p>I can call my DAO me...
0
6,341
yii2 how to run console controller function
<p>I'm stuck. I'm trying to run some function from the command shell. I'm using the HelloController from the basic project. When I run <code>php yii hello</code> it's working good and the index function is running but if I try to run different function like <code>php yii hello/create</code> I'm getting this error -</p>...
0
1,165
Angular 5 Unit testing throwing error for "components should create " test case
<p>I am trying Angular 5 unit testing for the first time. While I already created the app then decided to run testing in it. But I am getting these errors: </p> <pre><code>AppComponent should create the app AppComponent should have as title 'app' AppComponent should render title in a h1 tag GalleryComponent should cre...
0
1,192
How to use JMS Appender?
<p>Inmy research about JMS Appenders I've found <a href="http://activemq.apache.org/how-do-i-use-log4j-jms-appender-with-activemq.html" rel="nofollow">turorial1</a> and <a href="http://code.google.com/p/log4j-jms-sample/wiki/ConfigurationGuide" rel="nofollow">tutorial2</a> . I've tried to follow them, but I couldn't ru...
0
1,268
Replace Unicode character "�" with a space
<p>I'm a doing an massive uploading of information from a .csv file and I need replace this character non ASCII &quot;�&quot; for a normal space, &quot; &quot;.</p> <p>The character &quot;�&quot; corresponds to &quot;\uFFFD&quot; for C, C++, and Java, which it seems that it is called <a href="https://www.utf8-chart...
0
1,928
Active Index of tabview not getting updated automatically
<p>Active Index is not getting updated automatically. ReaD in a few posts that by placing the tabView on a form it works. Or by including <code>&lt;p:ajax event="tabChange"/&gt;</code> in the tabview it works. But nothing seems to work</p> <p><strong>xhtml</strong></p> <p><strong>Sample 1 : automatic updates</strong>...
0
1,527
missing required architecture armv7
<p>i use xcode with libsqlite3.dylib for sqlite , but when i compile to device the following error arise :</p> <pre><code>Ld /Users/user1319/Library/Developer/Xcode/DerivedData/Directory-app normal armv7 cd /Users/user1319/Desktop/app/app setenv IPHONEOS_DEPLOYMENT_TARGET 5.0 setenv PATH "/Developer/Appli...
0
2,647
Laravel custom pivot usage (Extends Model or Extends Pivot)
<p>I am really stuck using a custom model for my pivot, and don't understand why can we make a custom model for it if we can't use it as a model. I've seen many answers and articles, and all chose to extend Pivot or Model, but real life usage is never taken into account and never go any further than giving it a "named"...
1
1,798
Angular2 Animation on Load and Page Transition
<p>Currently trying to implement some animations into my Angular2 site using ng2's built in <code>animations</code> component. So far I've been working through the Angular 2 <code>Developer Guide - Animations</code> provided in the documentation. With that though I've run into a few questions I was hoping the SO commun...
1
1,090
Problems using foreach parallelization
<p>I'm trying to compare parallelization options. Specifically, I'm comparing the standard <code>SNOW</code> and <code>mulitcore</code> implementations to those using <code>doSNOW</code> or <code>doMC</code> and <code>foreach</code>. As a sample problem, I'm illustrating the central limit theorem by computing the means...
1
1,242
WatiN hangs on "about:blank" for multiple concurrent IE8 instances
<p>I’m trying to test several web sites using the latest version of WatiN.</p> <p>If a try to run several tests simultaneously, WatiN will eventually throw an exception “<strong>Timeout while Internet Explorer busy</strong>”. This occurs because Internet Explorer eventually gets “stuck” trying to connect to “<strong>a...
1
2,466
Typescript error when using React useContext and useReducer
<p>I'm new to Typescript and I'm getting the following error on my variable <code>state</code> in using <code>useContext</code> and <code>useReducer</code> hooks:</p> <blockquote> <p>Type '{ state: {}; dispatch: Dispatch; }' is not assignable to type '{ latlng: null; searchTerm: null; bookingId: null; myPin: null;...
1
1,256
IE10 css Hover not working with touch devices
<p>Hi i have a simple css hover menu on my page but it does not seem to work on IE10 when using a touch device.</p> <p>Is there any solution to this problem?</p> <p>Sample: <a href="http://jsfiddle.net/Z8Q8T/" rel="nofollow">http://jsfiddle.net/Z8Q8T/</a></p> <p>Html:</p> <pre><code>&lt;ul class="Menu"&gt; &lt;li...
1
1,468
Out parameters in stored procedures (oracle database)
<p>I used stored proceture in the Oracle. How can I use out parameteres of the SP in C# code?</p> <p>I use the following code for it:</p> <p>OracleSP</p> <pre><code>PROCEDURE TABMPWORKREQUEST_INS(INTWORKREQUEST_ IN NUMBER, VCWORKREQUESTNUMBER_ OUT VARCHAR2, INTREQUESTEDBY_ IN NUMBER, INTWORKTYPE_ IN NUMBER,INTACTIO...
1
5,802
Changes using Winspool.drv in Windows 7 64 bit from Windows XP 32 bit
<p>I have some C# code (VS2010;fx2) which is used to carry out printer functions. This code works fine in Windows XP environment. Changing to Windows 7, it no longer works correctly.</p> <p>The first different behaviour is that the GetPrinterNames() method now only returns local printers. As you can see, the flags are...
1
1,724
How to: PHP SoapClient example incorporating WSSE Header
<p>I have a WSDL file. Using SOAP UI, I was able to generate the SOAP request message...</p> <p><strong>Request SOAP message:</strong></p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"&gt; &lt;SOAP-ENV:Header&gt; &lt;wsse...
1
1,172
Overwrite csv file on s3 fails in pyspark
<p>When I load data into pyspark dataframe from s3 bucket then make some manipulations (join, union) and then I try to overwrite the same path <strong>('data/csv/')</strong> I read before. I'm getting this error:</p> <pre><code>py4j.protocol.Py4JJavaError: An error occurred while calling o4635.save. : org.apache.spark...
1
1,732
Is there a benefit in using old style `object` instead of `class` in Delphi?
<p>In Delphi <strong>sane</strong> people use a <code>class</code> to define objects.<br> In Turbo Pascal for Windows we used <code>object</code> and today you can still use <code>object</code> to create an object. </p> <p>The difference is that a <code>object</code> lives on the stack and a <code>class</code> lives ...
1
1,033
Digital Personna SDK Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on
<p>i was using Digital persona SDK for this exercise when i try to close the form it throws</p> <blockquote> <p>Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on</p> </blockquote> <p>this code was used to login </p> <pre><code>SqlConnection dataBaseConnectio...
1
2,169