title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
ACCESS_FINE_LOCATION permission error emulator only
<p>I'm having a weird error while using the emulator ONLY. I found one question that has the same issue 9 months ago with no answers at all...</p> <p>I'm using google play services locations to get locations in my app and I'm sure of my manifest permissions and everything works perfectly on my phone, the problem occur...
0
1,423
Spring Boot Data JPA - Modifying update query - Refresh persistence context
<p>I'm working with Spring Boot 1.3.0.M4 and a MySQL database.</p> <p>I have a problem when using modifying queries, the EntityManager contains outdated entities after the query has executed.</p> <h3>Original JPA Repository:</h3> <pre class="lang-java prettyprint-override"><code>public interface EmailRepository exte...
0
1,047
Saving multiple records with a single form in Rails 4
<p>I have a model called <code>Family</code>, which <code>belongs_to :user</code> I want to enable the user to add multiple family members in a single form, which is in <code>/views/families/new.html.erb</code></p> <ul> <li>So the user sees a form for creating 3 family members for one user_id</li> <li>Enters data into ...
0
1,288
Get the frequency of an audio file in every 1/4 seconds in android
<p>I have a sound file (.3gp) and its about ~1 min. I would like to get the frequency of this sound file in every 1/4 seconds. My idea is to receive samples in every 1/4 seconds from the audio file and using FFT I might get the frequency values. Is there any way to do this?</p> <p>Actually I would split the sound fil...
0
1,863
Sending text messages programmatically in android
<p>OK. I am sending text messages through my app. After a text message is sent, it sends a status update to a server. This portion works okay, but the problem I am running into is twofold. I am not sure if they are related, but I assume that they are.</p> <p>My app has the ability to send a single text to multiple ...
0
1,084
PHP Building Recursive Array from List
<p>I am returning a list of pages and their parent pages from a MySQL database and putting all results into an array as follows where every result is an array which includes the parent, name and id of the forum (the key of array pages is also the same as page id). </p> <p>For the sake of the model and the applicaiton,...
0
1,206
Visual Studio Code: Could not find the preLaunchTask 'build'?
<p>I have created a new .NET Core application with the command:</p> <pre><code>dotnet new console -o test </code></pre> <p>When I try to run it in the Visual Studio Code debugger, I get:</p> <pre><code>Could not find the preLaunchTask 'build'? </code></pre> <p>Visual Studio Code generated these files for me:</p> <...
0
1,552
Linux - serial port read returning EAGAIN
<p>I am having some trouble reading some data from a serial port I opened the following way. I've used this instance of code plenty of times and all worked fine, but now, for some reason that I cant figure out, I am completely unable to read anything from the serial port.</p> <p>I am able to write and all is correctly ...
0
1,205
Convert NSTimInterval to Integer Swift
<p>I need to convert a variable of type NSTimeInterval, which I know is a Double, to an Integer. I have already tried the solutions here: <a href="https://stackoverflow.com/questions/11121459/how-to-convert-nstimeinterval-to-int">How to convert NSTimeInterval to int?</a> , with no success. Can anyone give any suggestio...
0
1,116
Checkbox Preference and Checking if its enabled or disable
<p>Im having issues with the below code on making a checkbox preference, That by default is checked. My first activity is a simple splash screen, and simply before show my imageview thread i want to check if the checkbox has been disable if so then i want to intent directly to the main activity and by default i show my...
0
1,316
Bootstrap Datetime picker z-index
<p>I am using <a href="https://eonasdan.github.io/bootstrap-datetimepicker/" rel="noreferrer">bootstrap date time picker</a>. Its working fine with the date and time selection. But the problem is the visibility. If I put it outside any sort of container the modal is visible. But If I try to put it as a td inside a tabl...
0
4,985
EOFError in python
<p>I got an EOFError at line 87 of the following code:</p> <pre><code>import random def printDice(diceList): upperLine=" _____ _____ _____ _____ _____" line1="|" line2="|" line3="|" lowerLine=" ----- ----- ----- ----- -----" for i in range(len(diceList)): if...
0
1,869
How to Create a table with data from JSON output in Python
<p>I am very new to Python, so i trying to create a Data frame from my JSON OUTPUT</p> <p>My json output looks like as shown below</p> <pre><code>{ "tags":[ { "stats":{ "rawCount":9 }, "name":"Temperature1", "results":[ { "attributes":{ ...
0
1,387
Setting provider value in FutureBuilder
<p>I have a widget that makes a request to an api which returns a map. What I would like to do is not make the same request every time the widget is loaded and save the list to <code>appState.myList</code>. But. when I do this <code>appState.myList = snapshot.data;</code> in the <code>FutureBuilder</code>, I get the fo...
0
1,369
Finding the neighbors of 2D array
<p>I've a 2D grid of 75rows by 75 cols, I draw symbols of 2 colors (red and blue) on users clicks, it works fine but I'm stuck on a major problem I want to find the neighbor of those symbols: Example when the user click on a cell, it prints a symbol (oval) now I want that click also checks in its neighbors if the cell ...
0
4,575
Rails - Devise / User registration route / POST
<p>I'm stuck a bit with the following problem: I use Devise in Rails, when I open the sign up form and submit it with new the data for the new user, no new user is created in the sqlite-db. I think it's because the POST-route for /register is not properly set:</p> <pre><code>rake routes: root ...
0
3,029
SQLiteException: no such column: basal (code 1)
<p>I'm working with databases and I have the following DataBaseHandling class:</p> <pre><code>public class DatabaseHandler extends SQLiteOpenHelper { // All Static variables // Database Version private static final int DATABASE_VERSION = 4; // Database Name private static final String DATABASE_MEASURES = "measuresDa...
0
2,768
InstanceAlreadyExistsException coming from kafka consumer
<p>I am working with Kafka and trying to setup consumer group by follwing this <a href="https://www.confluent.io/blog/tutorial-getting-started-with-the-new-apache-kafka-0-9-consumer-client/" rel="noreferrer">article</a>. The only difference is I have created my own abstract class, handler to make design simpler.</p> <...
0
2,359
Getting TreeViewItem for the selected item in a TreeView
<p>I have a TreeView that is bound to a dataset which is having parent child relation. How i will get seleted TreeViewItem from the TreeView? Please help me. My code is below.</p> <p>xaml:-</p> <pre><code>&lt;TreeView Name="tvPersonal" Background="Transparent" ItemsSource="{Binding RootNodes}" SelectedItemChanged=...
0
1,028
Form validation before Submit
<p>I have the following form that needs to feed into the database but I would like it to be validated before it can be saved into the database :</p> <pre><code>&lt;form name="add_walkin_patient_form" class="add_walkin_patient_form" id="add_walkin_patient_form" autocomplete="off" &gt; &lt;div class...
0
2,167
Android: AlertDialog with custom view and rounded corners
<p>I'm trying to build an <code>AlertDialog</code> with a custom <code>view</code> (no title or footer) and rounded corners. I've seen a lot of posts about how to do that and I tried a lot of things, but I can't build it like I want to.</p> <p>This is my goal:</p> <p><img src="https://i.stack.imgur.com/myv0s.png" alt...
0
1,515
How to Dynamically create textboxes using ASP.NET and then save their values in Database?
<p>I am creating a survey site. I want to add the textboxes dynamically and then get their values in the database.</p> <p>Now let's say I select 4 textboxes from the dropdown to be there dynamically.</p> <p><strong>Code on the Selection on dropdown :</strong></p> <pre><code> protected void NumDropDown_SelectedI...
0
2,811
Unable to resolve dependency - Laravel
<p>Illuminate\Contracts\Container\BindingResolutionException Unable to resolve dependency [Parameter #0 [ $customerId ]] in class App\Jobs\BudgetFetch</p> <pre><code>namespace App\Http\Controllers; use App\Jobs\BudgetFetch; use Google\Ads\GoogleAds\Lib\OAuth2TokenBuilder; use Google\Ads\GoogleAds\Lib\V3\GoogleAdsClien...
0
1,490
Class does not define a no-argument constructor. If you are using ProGuard, make sure these constructors are not stripped
<p>I am trying to create a chat app on android studio. my app has no build errors and i can start the app. However, when i use <code>listOfMessage.setAdapter(adapter);</code> my app is crashing. it does start the app though, after i would say 1-2 secs it is crashing the app. on <code>logcat</code>, i am getting <code>C...
0
3,631
Laravel 5 access to ajax Post Data
<p>I'm trying to receive data from a form through AJAX on Laravel 5.</p> <p>JavaScript code:</p> <pre><code>event.preventDefault(); // Disable normal behaviour of the element (Form) var formData = { form: $("#newCustomerForm").serialize() // Transmit all input data of the form serialized } console.log(f...
0
1,093
failed: Connection reset by peer
<p>I have been using apache cassandra 3.0.11</p> <ul> <li>Datastax driver: 3.1.3</li> <li>Netty version: 4.1.6.Final</li> </ul> <p>We get the frequent below error in the database side:</p> <pre><code>INFO [SharedPool-Worker-2] 2017-09-11 01:39:31,738 Message.java:615 - Unexpected exception during request; channel =...
0
1,283
How to implement drawer menu open from right side
<p>I have created created one navigation drawer following <a href="http://www.android4devs.com/2015/06/navigation-view-material-design-support.html" rel="nofollow">this tutorial</a></p> <p>But what I need is , I need the same drawer menu open from right side . Anyone know how to achieve this?</p> <p>Following is my x...
0
1,121
How to use Angular 2's FormBuilder between multiple components
<p>I am trying to use FormBuilder in a page I have in Ionic 2. </p> <p>First, here is my environment details: Running on Windows 10, and running <em>ionic --version</em> gives me <em>2.0.0-beta.35</em></p> <p>Here is part of my <strong>package.json</strong> file:</p> <pre><code>... "@angular/common": "2.0.0-rc.3", "...
0
2,420
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined - Java Based Configuration
<p>Trying to resolve <code>org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined</code> in Java based configuration.</p> <p>web.xml</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta...
0
2,692
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary
<p>Currently I'm inline of writing a code that will be listening to a directory. when the directory is updated with .apk file, I'll send a mail with this .apk file to a gmail account. I'm using Jnotify and JAVA Mail in my program.</p> <p>The Error I'm getting is,</p> <pre><code>javax.mail.MessagingException: IOExcept...
0
1,143
Interstitial Admob ads: "IllegalStateException: Only fullscreen activities can request orientation"
<h2>Background</h2> <p>I have an app with Admob SDK used in it, to show Interstitial ads (full screen ads).</p> <p>Reccently Google has updated the SDK, along with many other things (build tools, gradle plugin, IDE, etc...), including admob (firebase ads).</p> <pre><code>compile 'com.google.firebase:firebase-ads:11....
0
1,707
Keep getting java.lang.NoClassDefFoundError in Spring
<p>I really do not know what is wrong with my Spring configuration. Could you give me hand?</p> <p>My code (simplified version):</p> <p>App.java:</p> <pre><code>public class App { public static void main(String[] args) { AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(Config.class...
0
2,732
CSS Grid System for Forms (Multi-Column)
<p><strong>For future reference here is the final result with pixel perfect precision:</strong></p> <p><a href="https://i.stack.imgur.com/zHITr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zHITr.jpg" alt="fluid CSS form"></a> </p> <p>The CSS code:</p> <pre><code>._25 { width: 21%; displ...
0
1,261
Android Studio - Cannot Resolve Symbol items in Array Adapter
<p>I am currently trying to implement a Bluetooth connection in an Android application using a few different tutorials and am running into issues trying to add detected paired devices to a ListView for the user to choose from. </p> <p>It is currently throwing the error "Cannot resolve symbol items" in the line below,...
0
1,722
While creating a Dictionary: TypeError: unhashable type: 'dict'
<p>I'm trying to script a simple <code>Character Generator</code> that I can use for Pen and Paper RPG's. I was thinking about storing all my information in a nested dictionary and saving it into a JSON file.</p> <p>However, while creating the following dictionary, I receive as error: </p> <pre><code>nhashable type: ...
0
1,122
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows in Eclipse
<p>I am getting following error when I try to run my Android application in Eclipse . But this is happening with only single project in same workspace. </p> <pre><code>JRE version: 7.0_21-b11 Java VM: Java HotSpot(TM) Client VM (23.21-b01 mixed mode windows-x86 ) Failed to write core dump. Minidumps are not enabled by...
0
2,976
"greater than" works but "less than" doesn't?
<p>This works:</p> <pre><code>&lt;xsl:when test="(price &amp;gt;= 10)"&gt; </code></pre> <p>But this doesn't (the code inside the test doesn't execute and the following column is not rendered - for any row):</p> <pre><code>&lt;xsl:when test="(price &amp;lt;= 9)"&gt; </code></pre> <p>I'm testing this XML and XSL her...
0
5,559
Modifying this 8-puzzle code to print the intermediate states to reach the solution
<p><a href="http://www.8puzzle.com/8_puzzle_algorithm.html" rel="nofollow noreferrer">About the 8 Puzzle Problem</a></p> <p>// Breadth First Search Usage in the common Eight Puzzle Problem.</p> <pre><code>import java.util.*; class EightPuzzle { Queue&lt;String&gt; q = new LinkedList&lt;String&gt;(); // Use o...
0
2,110
How to load data from JSON to Highchart?
<p>my <strong><em><code>Json</code></em></strong> looks like this:</p> <pre><code>[{"1332879360000.0": 300.0, "1332797760000.0": 353.0, "1332799320000.0": 358.0, "1332879780000.0": 302.0, "1332800160000.0": 359.0, "1332880200000.0": 299.0, "1332880620000.0": 298.0, "1332881040000.0": 301.0, "1332881460000.0": 4...
0
1,330
How do I capture incoming and outgoing XML from WCF service end
<p>In my solution I have three projects. One is a WCF service, another is a Winforms app from where I am calling the web service, and the last is a class library where class has been design extending soap extension class.</p> <p>My objective is to capture response &amp; request xml when I am calling the WCF service fr...
0
2,732
Put/Post 403 Forbidden in ElasticSearch with PostMan
<p>I am new to elastic search and was trying to add a new type mapping in ElasticSearch using postman, but it returns status-403 error while adding type mapping. </p> <p>What's wrong with this query and how it can be achieved?</p> <pre><code>http://IPADDRESSS/index/type/_mapping { "properties": { "action_30": { ...
0
1,492
How to get JSON data from the URL (REST API) to UI using jQuery or plain JavaScript?
<p>I have a URL "<code>http://localhost:8888/api/rest/abc</code>" which will give following json data. I wants to get this data in my UI using Jquery or java script. I'm trying this from couple of hours but I'm unable to resolve it. Please Suggest me few solutions which will help me to resolve this problem.</p> <pre><...
0
1,058
correcting fisheye distortion programmatically
<blockquote> <p><strong><em>BOUNTY STATUS UPDATE:</em></strong></p> </blockquote> <p><strong><a href="https://stackoverflow.com/questions/2477774/correcting-fisheye-distortion-programmatically/2502276#2502276">I discovered how to map a linear lens</a></strong>, from <code>destination</code> coordinates to <code>sour...
0
1,261
NPOI setting different cell format
<p>i have problem setting different format in each cell, i want to set number format to thousand separator and thousand separator with 3 decimals, when number is not integer, here is my code, i think problem look like each cell format is set by last fomat setting in for cycle</p> <p>so output should be like this 12345...
0
1,026
Can I observe additions to an array with rx.js?
<p><a href="https://github.com/Reactive-Extensions/RxJS/wiki/Observable#wiki-fromArray" rel="noreferrer">fromArray Rx wiki on github</a></p> <pre><code>coffee&gt; rext = require 'rx' coffee&gt; arr = [1..5] [ 1, 2, 3, 4, ...
0
1,331
Using wget to download a ZIP file
<p>I'm having trouble using wget for my Debian 7.0 VPS server hosted by OVH.</p> <p>I'm trying to download a ZIP file from MediaFire, and when I connected via SSH I typed,</p> <pre><code>wget http://download1472.mediafire.com/5ndlsskkyfmg/dgx7zbbdbxawbwd/Vhalar-GGJ16.zip </code></pre> <p>Then, this is my output,</p>...
0
1,199
Joomla site URL rewriting not working after migration to new host
<p>Just moved this Joomla 1.6 install over from iPower to Network Solutions. Moved a 1.5 install previously and it was okay. This one not so much. So when I turn on SEF Friendly URLs it's okay. When I turn on URL Rewriting to get rid of that annoying index.php in the URL, it says page not found. So...</p> <p>http://hos...
0
1,467
CarrierWave: Create the same, unique filename for all versioned files
<p>Before I go into detail I'll get right to the point: has anyone figured out a way to get Carrierwave to save files with their names as a timestamp or any arbitrary string that is unique to each file?</p> <p>By default Carrierwave saves each file and its alternate versions in its own directory (named after the model...
0
1,080
Spring security:How to map j_spring_security_check in controller?
<p>I'm trying to integrate spring security into existing code base which is in spring mvc.</p> <p>In my existing code base i v'e a client delegate in web project which interacts with service delegate in service project which in turn interacts with service interface of back-end layer.It is the service interface impl of...
0
3,353
RMI chat program in java - how to send mesage from client to client (not through the server)?
<p>I cannot get the client to send a message to another client without going through the server. It is an obligatory school project that should be implemented like that. I would appreciate it if someone could help me.</p> <p><em>Server Interface:</em> </p> <pre class="lang-java prettyprint-override"><code>import java...
0
5,392
What is a good range of values for the svm.SVC() hyperparameters to be explored via GridSearchCV()?
<p>I am running into the problem that the hyperparameters of my <code>svm.SVC()</code> are too wide such that the <code>GridSearchCV()</code> never gets completed! One idea is to use <code>RandomizedSearchCV()</code> instead. But again, my dataset is relative big such that 500 iterations take about 1 hour! </p> <p>My ...
0
1,186
If (fileUpload.HasFile)=false
<p>hi all here the code then i will explain my question:-</p> <pre><code> Protected Sub btnupload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click If (IsPostBack) Then HandleUploadedFile() Dim savePath As String = "Images\" If (fileUpload.HasFile) Then ...
0
1,644
Why j_spring_security_check 404?
<p>I'm trying to implement form based authentication with Spring security. Redirection works fine: my main page works correctly and for <code>http://localhost:8080/master/admin</code> I'm redirected to login page (<code>http://localhost:8080/master/login/</code>): </p> <pre><code> &lt;form action="j_spring_securit...
0
1,484
R - error: "duplicate 'row.names' are not allowed"
<p>I know this is a recurrent question, so I apologize in advance for cross-posting.</p> <p>I am having trouble reading a model output <code>.csv</code> file that looks more or less like this (the original file has about 14,000 rows, but the columns are as they look here): </p> <pre><code>time x y z ...
0
1,328
Using Tomcat, @WebFilter doesn't work with <filter-mapping> inside web.xml
<p>Here's a working web.xml:</p> <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.c...
0
2,110
Angular:: error TS2532: Object is possibly 'undefined'
<p>I was doing the angular Tour-hero project(replaced Hero with 'User'). There when I made the Hero(User) and Hero-detail(User-detail) separate and when I tried to access the details, it is not showing and the update function also doesn't work. It is showing this error:</p> <blockquote> <p>error TS2532: Object is possi...
0
1,670
Navigation Drawer to switch between activities
<p>I have browsed the website for a bit and I can't find an answer to my problem, I am trying to get my Navigation Drawer to switch between activities instead of fragments. I have tried switch statements and all that does is crash the app, I don't know how to get the separate elements of the drawer in order to set them...
0
1,103
Parse List of JSON objects using GSON
<p>I have a JSON object like this:</p> <pre><code>{ "user1": { "timeSpent": "20.533333333333335h", "worklog": [ { "date": "06/26/2013", "issues": [ { "issueCode": "COC-2", "comment": "\ncccccc", "timeSpent": "20.533333333333335h" }...
0
1,592
Full Join on MS Access
<p>so I'm trying to do a full join on MS Access 2003 but just found out it did not support it. So I tried taking my two select statements and then joining one using LEFT join and making a UNION with the same statement but with a RIGHT join. Access gave me an error saying that there is something wrong with the JOIN comm...
0
1,030
C - How to use both aio_read() and aio_write()
<p>I implement game server where I need to both read and write. So I accept incoming connection and start reading from it using <strong>aio_read()</strong> but when I need to send something, I stop reading using <strong>aio_cancel()</strong> and then use <strong>aio_write()</strong>. Within write's callback I resume re...
0
1,374
Multiply many columns by a specific other column in R with data.table?
<p>I have a large data.table in R with several columns with dollar values. In a different column I have an inflation adjustment number. I am trying to figure out how to update each of my monetary columns with it multiplied by the inflation adjustment column. Suppose I have the data:</p> <pre><code> DT &lt;- data.tab...
0
1,250
Rising or Falling Edge-Triggered Delayer for SIMULINK models
<p><strong>My Problem</strong></p> <p>I want to model a block called "confirmer". The specification is that the output will SIMPLY be the delayed version of input based on an edge (rising/falling). To clarify, I will try to put the timing diagrams below:</p> <pre><code> ___________________________ ...
0
1,149
Changing the colour of a line in a draw program using events
I am trying to create a program which draws a line using points. I have done this bit. The line then needs to redraw itself when the program is minimized and maximized again. This is where my first problem is occurring. Say I draw 2 lines, the last point of the first line and the first point of my second line join toge...
0
1,540
Sending webRTC video stream to server with django channels
<p>I am trying to create a face detection web application written in django. The app works this way.</p> <ol> <li>The user navigates to the url</li> <li>The camera starts on the client machine</li> <li>Each frame is then sent to the server for face detection</li> <li>Processed frame is then displayed on the web page</...
0
1,158
I'm trying to create a file using FileStream but getting an exception why?
<p>This is the code :</p> <pre><code>public OptionsFile(string settings) { if (File.Exists(settings)) { } else { FileStream fs=File.Create(settings); fs.Close(); } path_exe = Path.GetDirectoryName(Application.Loc...
0
1,917
TypeScript + EsLint Indent : Expected indentation of 4 spaces but found 6
<p>Hello I have the following error with indentation:</p> <blockquote> <p>Expected indentation of 4 spaces but found 6.eslint(@typescript-eslint/indent)</p> </blockquote> <p>I've tried all the ways and I couldn't find any solution, eslint indicates to do the following:</p> <blockquote> <p>"indent": "off",</p> ...
0
2,389
How to create rounded bars for Bar Chart.js v2?
<p>Trying to <a href="https://stackoverflow.com/questions/31582555/how-to-put-rounded-corners-on-a-chart-js-bar-chart">round the bars on bar chart</a> as found in this post that works as displayed in the <a href="http://jsfiddle.net/0dzp3jxw/" rel="noreferrer">jsFiddle</a> provided. This is for version 1. </p> <p>In t...
0
2,195
NodeJS failing to find routes
<p>Updated <code>Server.js</code> code:</p> <p>/Server.js </p> <pre><code>var express = require('express'); var app = express(); var bodyParser = require('body-parser'); app.set('view engine', 'vash'); app.set('views', path.join( __dirname, '/views') ); app.use(express.static(__dirname + "/public")); app.set('view...
0
1,099
bootstrap 3 multi column responsive carousel
<p>I've been playing with the bootstrap carousel, trying to make it display 4 columns per slide, responsively. The responsive side of things is perfect, however when the last slide slides the carousel isn't wrapping back to the first slide. It just disappears. Can anyone identify the problem?</p> <p>HTML</p> <pre>...
0
2,362
spring boot : The import org.springframework.jdbc.core.JdbcTemplate cannot be resolved
<p>I am having a hard time with one of my test programs which I am trying to write using springboot. When I try to import the JdbcTemplate class in the DAO layer I get an error : The import org.springframework.jdbc.core.JdbcTemplate cannot be resolved</p> <p>I am not sure what I am missing, I have checked the dependen...
0
1,298
WPF: Changing a ComboBox's ItemTemplate removes the ability to jump down the list as you type. Any way to fix this?
<p><b>PersonVM.cs</b></p> <pre><code>public class MainWindowVM { public MainWindowVM() { PersonList = new ObservableCollection&lt;Person&gt;(Employees); } private Person[] Employees = new Person[] { new Person { ID = 1, Name = "Adam" }, new Person { ID = 2, Name = "Bill" },...
0
1,387
How to configure Hibernate 5 with Spring 4
<p>I wanted to upgrade to Hibernate 5 but I can't get it to work for some weird reason.</p> <p>My spring context configuration with Hibernate 4 looks like this:</p> <pre><code>.... &lt;bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"&gt; &lt;property name="dataSource...
0
4,086
Error while building project when executing build step 'Make'
<p>I've just installed Qt SDK 1.2.1 on my PC. I created a new project as a test:</p> <p><code>File &gt; New File or Project... &gt; Other Project &gt; Plain C++ Project</code></p> <p>I chose these build settings:</p> <p><img src="https://i.stack.imgur.com/PnV2V.png" alt="qt creator build settings"></p> <p>Qt Creato...
0
1,611
Flutter iOS app showing white screen on launch and hang up on that screen
<p>I have a flutter application using a firebase auth library. When I launch its iOS version, It shows me a blank white screen and hangs up on that screen. I followed all the steps to add some firebase related flags into Info.plist like FirebaseScreenRecordingEnabled - NO, FirebaseScreenRecordingDeactiv - YES and one o...
0
1,744
How do i delete the last 3 commits?
<p><strong>How do i delete the last 3 commits?</strong> there is probably many examples but I think i ma being very specific here with what I want.</p> <p>So for example I have done a <code>git add .</code> and <code>git commit -m "message"</code> and a <code>git push -u origin master</code> for all these.</p> <p>I h...
0
1,676
datatrigger on enum to change image
<p>I've got a button with a fixed background image and would like to show a small overlay image on top of it. Which overlay image to chose depends on a dependency property (<code>LapCounterPingStatus</code>) of the according viewmodel.</p> <p>This is what I got so far:</p> <pre><code>&lt;Button&gt; &lt;Grid&gt; ...
0
1,249
Cannot install NPM using curl
<p>Receiving this error when attempting to install NPM. Any help on this error is greatly appreciated. </p> <pre><code>$ curl http://npmjs.org/install.sh | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8...
0
4,122
How can I sum values at MVC view?
<p>How can I sum values at MVC view? I want to sum all <strong>KwotaOplaty</strong> records that are now displayed. Notice that i'm using SEARCHING (at controller) so when i search specific records i want to sum them all.</p> <p>Controller:</p> <pre><code>public ActionResult Index(string oplataTyp, string szukajRej) ...
0
2,493
Failed to load map. Error contacting Google servers. This is probably an authentication issue
<p>I search all days and I can't find the answer...</p> <p>everything is ready but google map still can't show on fragment with tab</p> <p>I check that I already turn on google map android v2 and right API_KEY</p> <p>I have no idea what happened!</p> <p><a href="https://i.stack.imgur.com/7gIAz.png" rel="nofollow no...
0
3,016
Implementing Layers in HTML5 Canvas
<p>I am about to implement Photoshop-like Layers in HTML5 Canvas. Currently I have two ideas. The first and maybe the simpler idea is to have a Canvas element for each layer like:</p> <pre><code>&lt;canvas id="layerName" width="320" height="240" style="position: absolute; left: 0; top: 0; z-index: 1;"&gt;&lt;/canvas&g...
0
1,257
JAX-WS webservice and @rolesAllowed
<p>Is it possible to use <code>@RolesAllowed</code> annotation on a JAX-WS webservice and if so how?</p> <p>I have a webservice on glassfish 3.1.1 using Basic Authentication but restrictions expressed using <code>@RolesAllowed</code> are ignored. The role information should be available, as I can access it like this:<...
0
1,672
How to use PowerShell to download files from SharePoint?
<p>I've used the following sites to help me get this far and to troubleshoot.</p> <ol> <li><a href="https://stackoverflow.com/questions/26928822/download-file-from-sharepoint">Download file from SharePoint</a></li> <li><a href="https://stackoverflow.com/questions/28946557/how-to-download-newest-file-from-sharepoint-us...
0
1,446
Gauss Elimination for NxM matrix
<pre><code>/* Program to demonstrate gaussian &lt;strong class="highlight"&gt;elimination&lt;/strong&gt; on a set of linear simultaneous equations */ #include &lt;iostream&gt; #include &lt;cmath&gt; #include &lt;vector&gt; using namespace std; const double eps = 1.e-15; /*Preliminary pivoting strategy Pivotin...
0
1,863
Footer below content, but not floating mid-air if not enough content
<p>I got this code:</p> <p>DEMO: <a href="http://jsfiddle.net/z21nz89d/2/" rel="noreferrer">http://jsfiddle.net/z21nz89d/2/</a></p> <p>HTML:</p> <pre><code> &lt;nav class="navbar navbar-default" role="navigation"&gt; &lt;div class="container-fluid"&gt; &lt;!-- Brand and toggle get grouped for better mobile di...
0
2,494
sccm 2012 r2 msi packages failing with error 0x643(1603)
<p>I have a question with sccm 2012 r2 and failed packages. For every package I try to deploy there is the odd one that always returns a generic error message 0x643(1603). </p> <p>I know that this is a generic msi package message, but something has me confused. When i tried to deploy adobe flash.msi it would download...
0
4,376
SQLAlchemy and Multiple Databases
<p>I have an assortment of similar (but not identical) databases, and would like to use SQLAlchemy as a way to "standardize" access. The databases can differ very slightly, such as having a unique prefix on the column names, or they can differ more dramatically and be missing columns (or for old databases, missing ent...
0
2,210
Getting javax.mail.MessagingException and java.net.SocketException
<p>I am trying to send a email using SMTP of my yahoo(smtp.mail.yahoo.com) account to my gmail account.</p> <p>But am getting following exception.</p> <pre><code>javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketException: Connection reset at com.sun.mail...
0
1,319
Bootstrap 3 - Scrollspy with sidebar
<p>I am using Bootstrap 3. I want to recreate the same functionality as the sidebar in the <a href="http://getbootstrap.com/javascript/" rel="noreferrer">documentation on the Bootstrap site</a>.</p> <p>Below is my code, and it is also here: <a href="http://bootply.com/82119" rel="noreferrer">http://bootply.com/82119</...
0
1,516
Creating table inside Datalist
<p>This is my DataList code , I define a table in headertemplate and close it in footerTemplate.</p> <p>The problem is with AlternatingItemStyle and ItemStyle that they don't effect.</p> <p>If i move the table defenition inside <code>&lt;ItemTemplate&gt;</code> it does work.</p> <pre><code>&lt;asp:DataList ID="Dat...
0
1,267
Angular 4 pass data between 2 not related components
<p>I have a questions about passing data in Angular.</p> <p>First, I don't have a structure as <code>&lt;parent&gt;&lt;child [data]=parent.data&gt;&lt;/child&gt;&lt;/parent&gt;</code></p> <p>My structure is </p> <pre><code>&lt;container&gt; &lt;navbar&gt; &lt;summary&gt;&lt;/summary&gt; &lt;child-summary&g...
0
1,746
Java invalid stream header Problem
<p>im writen a client-server app, and now i´m facing a problem that I dont know how to solve:</p> <p>This is the client:</p> <pre><code>try { Socket socket = new Socket(ip, port); ObjectOutputStream ooos = new ObjectOutputStream(socket .getOutputStream()); ...
0
2,756
How to parse json parsing Using GSON in android
<p>I am using <code>GSON</code> for parse Json data. My Json data is below:</p> <pre><code>{ "count": "12", "colbreak": 1, "name": "unary rels", "score": "9090", "Words": [ { "count": 6, "word": "prp_għaċ-", "name": "prp_għaċ-", "score": 9.1, ...
0
1,062
Creating in an infinite loop using setTimeout
<p>I'm trying to figure out how I can restart my loop after reaches the last item of the list. Basically it passes the class <code>active</code> to the next sibling every 3s. How can I make it pass to the first item on the list once it reaches the last item. </p> <p>I was thinking maybe if I could have use <code>if/el...
0
1,148
How do I re-tag an image in ECR?
<p>I'm trying to follow along with <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-retag.html" rel="nofollow noreferrer">Retagging an Image with the AWS CLI</a> and am beginning to suspect this guide is out-of-date. I have a number of Docker images pushed into an ECR repository - let's call it &qu...
0
1,314
React tutorial: Uncaught TypeError: Cannot read property 'data' of null
<p>I'm following React tutorial at: <a href="http://facebook.github.io/react/docs/tutorial.html" rel="noreferrer">http://facebook.github.io/react/docs/tutorial.html</a></p> <p>I'm just <strong>after</strong> <a href="http://facebook.github.io/react/docs/tutorial.html#fetching-from-the-server" rel="noreferrer">http://f...
0
1,279
How to display data in Bootstrap Modal when link button click in ASP.NET
<p>How to display data in Bootstrap Modal when link button click in ASP.NET. In my code When i click on link button Modal is opening, but assign values are not displaying. Please tell me how to display modal with assigned values. Thanks.</p> <p>.aspx Code:</p> <pre><code> &lt;asp:LinkButton ID="linkButton8" runat="s...
0
1,407
WPF: Canvas and zIndex? How does it work?
<p>I have the following layou:</p> <pre><code>&lt;s:SurfaceWindow x:Class="Prototype_Concept_2.SurfaceWindow1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="http://schemas.microsoft.com/surface/2008" Title="Prototype_Co...
0
2,336
Exception in thread "main" java.lang.StackOverflowError
<p>I have a piece of code and I could not figure out why it is giving me Exception in thread "main" java.lang.StackOverflowError. </p> <p>This is the question: </p> <pre><code>Given a positive integer n, prints out the sum of the lengths of the Syracuse sequence starting in the range of 1 to n inclusive. So, for exa...
0
1,069
How to Prevent Wordpress from Stripping HTML Tags in Excerpt
<p>I am using wp_trim_words to trim some excerpts on my homepage. It's working fine except that it's stripping the HTML tags from the excerpts. I need to be able to make certain pieces of the excerpt bold (using <code>&lt;strong&gt;</code>). Following the instructions <a href="https://wordpress.stackexchange.com/questi...
0
1,029
Hamming Code Error Detection
<p>I have this code as given below for error checking by using hamming codes. I went through the algorithm on Wikipedia and also understood its working as described in the thread <a href="https://stackoverflow.com/questions/388599/how-does-the-hamming-code-work">How does the Hamming code work?</a></p> <p>But the code ...
0
1,438