title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
highlight menu on scrolling (if reach div)
<p>i want highlight the menu point if the div is scrolled // or clicked.</p> <p><a href="http://jsfiddle.net/WeboGraph/vu6hN/2/">http://jsfiddle.net/WeboGraph/vu6hN/2/</a> (thats an example what i want)</p> <p>my code: (JS)</p> <pre><code> $(document).ready(function(){ $('nav a').on('click', function(event...
0
1,066
Log4j in SpringBoot
<p>I'm newbie to Spring Boot and working on a simple log4j demo using Spring Boot. I used the gradle project and have spring-boot-starter-web and groovy dependencies. Below is my log4j.properties file content. All I need is , when i execute the main program and use annotation @Log4J i must be able to save the log.perfl...
0
1,050
How to understand the dynamic programming solution in linear partitioning?
<p>I'm struggling to understand the dynamic programming solution to linear partitioning problem. I am reading the The <a href="http://www.algorist.com/" rel="nofollow noreferrer">Algorithm Design Manual</a> and the problem is described in section 8.5. I've read the section countless times but I'm just not getting it. ...
0
2,460
Netbeans 8.0.2 Clean and Build then Run results in old code being run
<p>I'm new to NetBeans and Java. I'm using NetBeans to build and run a Java Swing project for school.</p> <p>I wrote my code in NetBeans and saved it. Compiling from command line with <code>javac</code> is successful and the program runs as expected. If I update the code and repeat the process from CLI, the new cha...
0
1,231
Laravel Check if Array is empty
<p>I am struggling with displaying some content depending on if an array property does have a value or not. If an article has a title, I want to display the content of the entire article, if not I want to show something else. However, it doesn't work. The code in the else statement is not executed.</p> <p>What's wrong...
0
2,620
gaierror [Errno 8] when send_mail with Django python and gmail
<p>I'm new with Django an Python. I was following this tutorial <a href="https://www.youtube.com/watch?v=51mmqf5a0Ss">"Try Django 16"</a> I don't get it work. I added <code>fail_silent=false</code> to get the error.</p> <pre><code>[Errno 8] nodename nor servname provided, or not known </code></pre> <p>Is there anyone...
0
1,962
AVL tree rotation in Java
<p>I want to implement the Java AVL tree and to rotate the tree left and right. I am not getting this.</p> <p>Can anybody by looking at the code below tell me how can I possibly rotate the tree left and right and then use fix up with those two functions to balance the AVL tree?</p> <p>I hope someone here can guide me...
0
2,399
ArgumentError: Error #2015: Invalid BitmapData
<p>I am having problems loading a bitmapData. I am getting the following error </p> <pre><code>Engine Init //trace loadimage//trace ArgumentError: Error #2015: Invalid BitmapData. at flash.display::BitmapData() </code></pre> <p>Below is my code. it appears it happens after the trace loadimage</p> <pre><code>pack...
0
1,120
hadoop copying from hdfs to S3
<p>I've successfully completed mahout vectorizing job on Amazon EMR (using <a href="https://cwiki.apache.org/MAHOUT/mahout-on-elastic-mapreduce.html" rel="nofollow noreferrer">Mahout on Elastic MapReduce</a> as reference). Now I want to copy results from HDFS to S3 (to use it in future clustering).</p> <pre><code>For ...
0
1,306
Fire a pinch in/out command to Android phone using adb
<p>So far I'm able to tap, swipe, unlock, install/uninstall and launch app using adb commands but not able to find how to perform zoom in/out using adb command.</p> <p>I have got coordinates of pinch in/out but not understanding how to fire them using adb command from terminal.</p> <p>For example , we have command --...
0
3,730
Build output map in terraform
<p>I have a list of users to create, a list of sns topics and to create policies to give permissions to users on topics. These are all namespaced against the user...</p> <p>Given:</p> <p>main.tf</p> <pre><code> provider "aws" { region = "eu-west-1" profile = "terraform" } module...
0
1,045
CORS enabled but response for preflight has invalid HTTP status code 404 when POSTing JSON
<p>I've searched thoroughly but cannot find a solution to this issue in my particular circumstance.</p> <p>Cross-domain service calls using Fiddler (POST) execute correctly and the data is received. However, through the browser (Chrome) I am getting the message 'preflight has invalid HTTP status code 404'</p> <p>I ha...
0
1,562
Adding a linear layout to Navigation drawer (ends up crashing with a ClassCastException)
<p>I am trying to add a vertical linear layout (having a title, image, menu title, listview and an icon at the bottom)to the navigation drawer. However the app crashes displaying </p> <pre><code>'java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.support.v4.widget.DrawerLa...
0
2,950
nginx - nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
<p>All of a sudden I am getting the below nginx error</p> <pre><code> * Restarting nginx * Stopping nginx nginx ...done. * Starting nginx nginx nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80...
0
1,876
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
<p>When I build an android project which includes ndk code. I got the following error:</p> <pre><code>Build command failed. Error while executing process /home/gongzelong/Android/Sdk/cmake/3.6.4111459/bin/cmake with arguments {-H/media/gongzelong/TOSHIBA/Code/Code/ImageLoaderEncapsulation/ImageLoader/ImageLoaderDemo/...
0
2,040
Button Horizontally inline with text boxes Razor View
<p>I Have the following form on a view</p> <pre><code>@using (Html.BeginForm("AddInterest", "Club", FormMethod.Post)) { @Html.AntiForgeryToken() &lt;div class="form-horizontal"&gt; &lt;hr /&gt; &lt;div class="row"&gt; &lt;div class="col-md-8"&gt; &lt;div class="well ...
0
1,513
Efficient Way to Create Numpy Arrays from Binary Files
<p>I have very large datasets that are stored in binary files on the hard disk. Here is an example of the file structure:</p> <p><em>File Header</em></p> <pre><code>149 Byte ASCII Header </code></pre> <p><em>Record Start</em></p> <pre><code>4 Byte Int - Record Timestamp </code></pre> <p><em>Sample Start</em></p> ...
0
1,422
Built-in string formatting vs string concatenation as logging parameter
<p>I'm using <a href="http://www.sonarlint.org/" rel="nofollow noreferrer">SonarLint</a> that shows me an issue in the following line.</p> <pre><code>LOGGER.debug(&quot;Comparing objects: &quot; + object1 + &quot; and &quot; + object2); </code></pre> <p>Side-note: The method that contains this line might get called qui...
0
1,116
Resolving Maven dependencies: Proxy authentication problems
<p>I am working at a company where the local machines are working behind a proxy. The proxy requires no authentication. I have a maven project in IntelliJ which works on my laptop but which I cannot get working on the local machine.</p> <ul> <li>So I have imported the project on my local machine. </li> <li>Set the pr...
0
3,686
Camel Direct end-point exception
<p>I am having a simple problem. I am not able to read from a file end-point into a direct end-point. Below is the code snippet:</p> <pre><code>public class SampleTwo { public static void main(String[] args) throws Exception { final CamelContext camelContext = new DefaultCamelContext(); camelContext.start();...
0
1,387
must have a '[Symbol.iterator]()' method that returns an iterator
<p>I am encountering this error:</p> <pre class="lang-none prettyprint-override"><code>error TS2488: Type 'Usuario' must have a '[Symbol.iterator]()' method that returns an iterator. </code></pre> <p>My code:</p> <p><code>usuarios.reducers.ts</code></p> <pre><code>export interface UsuarioState { users: Usuario[]; ...
0
1,107
Place an item at a fixed position in a scrolling div
<p>I have a page full of content and <code>window</code> is scrollable, in which there is scrollable <code>div</code> where my objective is to place an icon at the very bottom of the <code>div</code>, which will be visible when someone is scrolling the <code>div</code> and will not visible after content disappears or <...
0
1,176
Writing out JSON data to a simple textfile
<p>As always I have searched the forums and googled my self slightly insane without being able to figure out what I am doing wrong. Therefore I turn to the great minds frequenting this site in hopes to find an answer. I'm building an application that will communicate with a database and in doing so I'm trying to learn ...
0
1,084
Application.Printcommunication = True (results in error)
<p>I recorded a macro to auto-format a report in Excel 2010 that I send every week. Part of the macro adjusts the Page Setup properties which includes changing the layout to Landscape and Legal size.</p> <p>I can run it on my computer because my printer has Legal size paper as one of the defaults. However, some peopl...
0
3,620
Encoded password does not look like BCrypt
<p>I am using Spring Boot, Spring Security, OAuth2 and JWT to authenticate my application, but I keep getting this nasty error and I don't have any idea what is wrong. My <code>CustomDetailsService</code> class:</p> <pre><code>@Service public class CustomDetailsService implements UserDetailsService { private stat...
0
3,540
print a string directly to printer
<p>i need to print a string directly into the printer<br> i found this code by searching</p> <pre><code>uses WinSpool, Printers type TDoc_Info_1 = record pDocName: pChar; pOutputFile: pChar; pDataType: pChar; end; procedure PrintSimpleText(sPrinter, sText: String); var sTitle: String; hPrinter: ...
0
1,297
Self-Connect to Websocket Spring server from JUnit test
<p>I have an app that exposes Websocket/SockJS/Stomp server endpoints and would like to run a JUnit tests that runs client (Java STOMP client, also from Spring) against it, to test "sending" features.</p> <p>I have a test like </p> <pre><code> public void measureSpeedWithWebsocket() throws Exception { final Wait...
0
1,191
Rearranging UITableView with Core Data
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/1077568/how-to-implement-re-ordering-of-coredata-records">How to implement re-ordering of CoreData records?</a> </p> </blockquote> <p>I'm trying to find a code sample that shows how to handle moving/rearranging...
0
1,047
Helm: UPGRADE FAILED: cannot patch ... with kind Job, by update field image
<p>I'm trying to deploy updates. Installation works fine, but when I change the image field in the yaml file for Job and try to roll updates, an error occurs.</p> <blockquote> <p>Error: UPGRADE FAILED: cannot patch "dev1-test-db-migrate-job" with kind Job: Job.batch "dev1-test-db-migrate-job" is invalid: spec.templa...
0
2,130
unexpected null value Flutter
<p>hey guys i m new in dart and flutter when i run the project i face an error that <a href="https://i.stack.imgur.com/zW120.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zW120.png" alt="enter image description here" /></a>says unexpected null value i couldn't find where is the mistake, i think the...
0
5,755
Nginx error https . curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
<p>Nginx. I cant access my NodeJs app listening in port 3000 via https. I can do through http. <a href="https://www.modelistas.tk:3000/api/status" rel="nofollow noreferrer">https://www.modelistas.tk:3000/api/status</a> throws error. I tried with curl</p> <p>Verbose output:</p> <pre><code>root@ip-172-31-50-215:/opt/lets...
0
1,892
how to zoom in on a complex svg structure
<p>I have a complex set of shapes that are in the snippet. They are rendered with React but I'm really just looking for some pointers about how I would go about being able to zoom these shapes in and out.</p> <p>My googling is failing and I can only really find examples of graphs.</p> <p>How can zoom in and out compl...
0
2,508
Unable to compile class for JSP: nme cannot be resolved
<p>I am trying to connect JSP with MYSQL Server 5.1.49 using TOMCAT 6.0. I am able to connect JAVA with MYSQL but unable to configure mysql with tomcate and getting below error </p> <pre> org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 54 in the jsp file: /checlLogin.js...
0
1,096
How to solve ssh: /usr/lib64/libcrypto.so.10: no version information available
<p>I am trying to do ssh and got following message:</p> <pre><code>]#ssh ssh: /usr/lib64/libcrypto.so.10: no version information available (required by ssh) ssh: /usr/lib64/libcrypto.so.10: no version information available (required by ssh) ssh: /usr/lib64/libcrypto.so.10: no version information available (required by...
0
1,471
html video in browser cache
<p>I'm newbie to website development.</p> <p>I used html5 video tag to insert a full screen video as the website background.</p> <pre><code>&lt;div class="fullscreen-bg"&gt; &lt;video autoplay preload="auto" class="fullscreen-bg__video"&gt; &lt;source src='media/test.mp4' type="video/mp4"&gt; video n...
0
1,028
how to install pytorch in python2.7?
<p>i am using python2.7 in virtual environment. i tried to install pytorch in python2.7 but i got error belows:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>Unsatisfiab...
0
1,170
What is the cause of the error "Remote host closed connection during handshake"?
<p>I want connect to the Oracle database 11.2 with SSL. But the only error that I receive is:</p> <pre><code>Exception in thread "main" java.sql.SQLException: I/O-Fehler: Remote host closed connection during handshake at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:465) at oracle.jdbc.driver.Physi...
0
1,286
ParserError with panda read_csv
<p>I'm trying to read a txt file that as different number of columns per row. Here's the beginning of my file:</p> <pre><code>60381 6 1 0.270 0.30 0.30 0.70 0.70 4.988 4.988 4.988 4.988 4.988 4.988 4.988 4.988 4.988 4.988 4.988 4.988 2 0.078 0.30 0.30 0.70 0.70 5.387 5.312 5.338 4.463 4.675 4.275 4.238 3.562 3.175 3.9...
0
1,034
Stream webcam video with gstreamer 1.0 over UDP to PC
<p>Im trying to stream video from a Raspberry Pi (on Raspbian) to a Windows 7 PC like in this video: <a href="https://www.youtube.com/watch?v=lNvYanDLHZA" rel="nofollow noreferrer">https://www.youtube.com/watch?v=lNvYanDLHZA</a></p> <p>I have a Logitech C270 connected to the Raspberry Pi, and have managed to stream we...
0
1,286
Drag and reorder - UICollectionview with sections
<p>Is that possible to do drag and reorder from one section to another section from collectionview - iOS 9.</p> <p>Every time am dragging from 1st section to drop at 4th section am getting below crash,</p> <p>Assertion failure in -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering:</...
0
2,669
AngularJS: tracking status of each file being uploaded simultaneously
<p>Upon pressing a submit button, an array of files (<code>$scope.files</code>, can be as little as one file, as many as the user wants) gets submitted via <code>FormData</code> and <code>XMLHttpRequest</code> in my angular function <code>$scope.uploadFiles</code>:</p> <pre><code>$scope.uploadFiles = function() { ...
0
2,064
By executing a simple program of Spring Hibernate integration, I am getting following issue
<p>I've got some exceptions in my maven-spring-hibernate project. I think the trouble is in my springg.xml file, but I don't understand where.</p> <p>Main class</p> <pre><code>package org.db; import org.hibernate.Query; import org.model.*; import java.sql.SQLException; import java.util.List; import org.hibernate.Sess...
0
8,740
java.lang.NumberFormatException: For input string in JSP Page
<p>Hi can someone please help why this is giving an error when trying to display the values in a JSP page. I don't have any number been converted or String been converted to Number, however I get NumberFormatException</p> <p>my Servlet getting the request to display a user record</p> <pre><code>if(action.equalsIgnore...
0
3,365
Excel VBA - Simpler way to loop through multiple variables of data
<p>Interesting question that may not have an answer other than "no". I have the below code that fills out a spreadsheet. Explaining this one line:</p> <pre><code>CACsatSummary.Range("B2") = WorksheetFunction.CountIfs(name, var01, score, "1") </code></pre> <p>To the left of the equals is obvious (sheet and range). ...
0
1,710
In React Native, How Can I Use KeyboardAvoidingView with a Modal in iOS?
<p>I am having trouble getting a KeyboardAvoidingView to work in iOS, specifically when wrapping a Modal in it. Testing in Android, the Modal avoids the keyboard correctly, but in iOS the keyboard covers the Modal.</p> <p>Here is a reproducible example, using an iPhone X as my test device:</p> <pre class="lang-js prett...
0
2,655
IllegalStateException: The application's PagerAdapter changed the adapter's content without calling PagerAdapter#notifyDataSetChanged
<p>I'm using the <code>ViewPager</code> example with <code>ActionBar</code> tabs taken from the Android documentation <a href="http://developer.android.com/reference/android/support/v4/view/ViewPager.html">here</a>.</p> <p>Unfortunately, as soon as I call the <code>addTab</code> method, the application crashes with th...
0
1,539
NullPointerException with string-array in Spinner
<p>First app and so really new at android (played around about a year ago but nothing came of it), decent at programming. Wanting to make sure app renders on a phone, no functionality atm. Compiles fine, no problems there. Push it to my phone and "Unfortunately, Splitr has stopped".</p> <p>Edit - added to the MainActi...
0
4,567
How to read from a USB RFID Reader with C#
<p>I just bought an USB RFID Reader and now I want to read, write and check if a card is on the Reader at the moment or not. So I searched here and found the Code below. The description of it is pretty much all what I Need:</p> <ul> <li><p>Opens a USB device by vendor and product id.</p></li> <li><p>Opens a UsbEndpoin...
0
1,797
Why won't eclipse oxygen start (for the first time)?
<p>I like to use eclipse oxygen for java development. I haven't used this IDE for a about year. I remember really liking it. However, I remember it not being the easiest IDE to install. Any help would be greatly appreciated.</p> <p>Here is the java I have installed.</p> <ul> <li>Java 9 Java</li> <li>SE Development Ki...
0
4,792
Waited 30 seconds for com.google.common.util.concurrent.SettableFuture@1e023601[status=PENDING]
<p>I have been encountering an error I that I have never seen before and it started showing up when my project couldnt find the bilder .jar file and redownload it and and it show the error below even in a new project after adding any kind of dependency and I'm using Android studio 3.2.0 Please help</p> <pre><code>org....
0
3,638
I want to convert an image into pencil sketch in OpenCV
<p>I am trying to convert an image (from my hard drive) to a pencil sketch in <a href="http://en.wikipedia.org/wiki/OpenCV" rel="nofollow">OpenCV</a>. I am using Visual Studio 2010. I came to know the following steps to do this.</p> <ol> <li>invert the image (make negative)</li> <li>apply <a href="http://en.wikipedia....
0
1,285
Qt Model/View/Controller Example
<p>I am just getting started in Qt, and trying to get a simplified, working example of the model-view-controller design pattern.</p> <p>So far, I have been able to use signals and slots to connect basic widgets like push buttons to a <code>QLabel</code>, and have the view be modified as the push button is clicked/rele...
0
1,718
Example: Android bi-directional network socket using AsyncTask
<p>Most of the network socket examples I found for Android were one directional only. I needed a solution for a bi-directional data stream. I eventually learned of the AsyncTask. This example shows how to get data from a socket and send data back to it. Due to the blocking nature of a socket that is receiving data, tha...
0
3,707
indentationLevelForRowAtIndexPath not indenting custom cell
<p>I have overridden the <code>tableView:indentationLevelForRowAtIndexPath</code> method in my <code>UITableViewController</code> derived class as follows:</p> <pre><code>- (NSInteger)tableView:(UITableView *)tableView indentationLevelForRowAtIndexPath:(NSIndexPath *)indexPath { NSDictionary* item = [self.projects...
0
1,242
Add animation to border bottom on input
<p>I want the color of the border-bottom of my input to change with an animation when clicked. Similar to the yellow line one this. I want this to be on all the input boxes and the select. </p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> ...
0
1,196
Get element name from XML in Java DOM
<p>I want to get the element name and print the data in the XML, but not sure how to get data under specific element.</p> <p>Here is the XML sample and my code. </p> <pre><code> &lt;mdb&gt; &lt;movies&gt; &lt;movie id="godfather"&gt; &lt;title&gt;The Godfather&lt;/title&gt; &lt;year&gt;1972&lt;/...
0
1,046
How to set Proxy Authentication in seleniumWebdriver for Chrome Browser
<p>I'm trying to Automate a web application selenium 2.0 [webdriver+java].The web application is currently deployed in our UAT servers on our local network.My test cases are executing, but I have to manually enter the Proxy Authentication details for my Chrome instance at the start of the test execution. I have tried a...
0
1,103
jQuery textarea draggable
<p>OI have a simple problem with jQuery draggable with a textarea.</p> <p>I have to insert a textarea into a div draggable but the area of textarea isn't draggable, only border! I have tried to disable textarea but nothing. I would like to have a textarea NOT editable but draggable / resizable.</p> <p>This is my html...
0
1,064
Android :How to get Current Location in Longitude and latitude?
<p>I want to store current Location to database when i click on <code>Button</code>.</p> <p>The location is stored but it is receiving 0.0 ,0.0 don't know where's the mistake is in my code Here i post my complete code for this please help me out from this.</p> <p><strong>getting current location</strong></p> <pre><...
0
3,445
How to rotate object around local axis in OpenGL?
<p>I am working on an ongoing project where I want to align the links of a chain so that it follows the contours of a Bezier curve. I am currently following the steps below.</p> <ol> <li>Drawing the curve.</li> <li>Use a display list to create one link of the chain.</li> <li>Use a FOR loop to repeatedly call a functio...
0
2,338
SAPUI5 - Login Page
<p>I'm building an app that communicates with an IBM software through REST. The thing is that I have a POST Method in the NewTicket.controller, but I need to use the user and password on this method to open the ticket. How can I send the variables (or other thing) that I have on my Login.controller to the NewTicket.c...
0
1,143
Java Recursive MergeSort for ArrayLists
<p>I have been having a problem with my mergesort function, as I am not able to sort a series of integers or strings whenever inputting it into the program. I have an outside class that calls items into it, however it simply doesn't sort the numbers/strings. The two methods are below, I don't know where the problem is....
0
1,125
Binding DropDownList SelectedValue to DataValueField for GridView Update
<p>Ok guys, so I read this: <a href="https://stackoverflow.com/questions/3474933/how-to-set-selectedvalue-of-dropdownlist-in-gridview-edittemplate">How to set SelectedValue of DropDownList in GridView EditTemplate</a></p> <p>and I'm having the same issue. However, I don't want to bind the selected value to the display...
0
1,138
C# Sending an email using a list for addresses
<p>just had a quick question for you. I made a small application some-time ago which ends off by sending out an email to 4 recipients. However, I hard-coded the addresses. Going back to change things, I'd like to put the addresses in a .csv file and I will just read it in. This way, I can edit the .csv to control the e...
0
1,237
Find USB drive letter from VID/PID (Needed for XP and higher)
<p>So I thought I would include the final answer here so you don't have to make sense of this post. Big thanks to Simon Mourier for taking the time to figure this one out.</p> <p><strong>MY WORKING CODE</strong></p> <pre><code> try { //Get a list of available devices attached to the USB hub...
0
1,946
How to hide wpf datagrid columns depending on a property
<p>I have the following WPF sample program:</p> <p>Xaml:</p> <pre><code>&lt;Window x:Class="AncestorArie.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"&gt; &lt;...
0
1,340
How to display the dropdown values based on other dropdown value using typescript in Angular 2 application
<p>I am developing angular 2 application, in my current project I want the functionality for displaying dropdown values based on year, make, model. For example if I select Honda then display only Honda models in model dropdown.</p> <p>By default I will bind the complete data for year, make and model.</p> <p>This is my ...
0
1,077
Could not find androidx.navigation:safe-args-gradle-plugin:1.0.0-alpha01
<p>I want to use Navigation Architecture Components.</p> <p>But I got a problem with importing <a href="https://developer.android.com/topic/libraries/architecture/navigation/navigation-implementing#Safe-args" rel="noreferrer">safeargs</a></p> <p>Sync message:</p> <blockquote> <p>Could not find androidx.navigation:...
0
1,567
Spring security with oauth2 adding additional parameters to authorization URL?
<p>I have implemented Spring Security in my restful web service. In fact, I have to add an extra parameter with the request from client side and should fetch it from the service when request for authentication/accesstoken.</p> <p><strong>spring-security.xml</strong></p> <pre class="lang-xml prettyprint-override"><cod...
0
5,265
Fill GridView with TextBoxes and Dropdownlist from DataTable
<p>I have GridView:</p> <pre><code> &lt;asp:GridView ID="MyGridView" runat="server" ShowFooter="true" AutoGenerateColumns="False" Visible="True"&gt; &lt;Columns&gt; &lt;asp:BoundField DataField="id" ItemStyle-HorizontalAlign="center"/&gt; &lt;asp:BoundField DataField="fullName" /...
0
1,306
Failed to serialize the response body for content type
<p>I'm building a MVC4 application that uses both Controllers and ApiControllers. I modified the default Web API route to include action names. When I try to get a list of Benchmarks, I'm getting this error message:</p> <blockquote> <p>The 'ObjectContent`1' type failed to serialize the response body for content ty...
0
1,844
How can I stop webpack-dev-server
<p>Does anyone know how to stop webpack-dev-server? I have tried to use <kbd>Ctrl</kbd>+<kbd>C</kbd> and <kbd>Ctrl</kbd>+<kbd>Z</kbd>, it's doesn't work, no matter I press it once or twice. Additionally, even though I close the command line interface, It still works. And even if I change the server port, the previous s...
0
1,199
Unable to get provider com.crashlytics.android.CrashlyticsInitProvider
<p>After <code>implementation 'com.google.firebase:firebase-core:16.0.1'</code> and <code>classpath 'com.google.gms:google-services:4.0.1'</code></p> <p>I started getting the following error when starting the application:</p> <blockquote> <p>FATAL EXCEPTION: main Process: com.fentury.android, PI...
0
1,728
WPF DataGrid not updating on PropertyChanged
<p>i've a problem updating my datagrid when clicking the button by using NotifyPropertyChanged. It works if i set the DataGrid.ItemsSource in code behind, but it doesn't if i set it in xaml. here's some code of code behind &amp; xaml:</p> <pre><code>namespace MyWpfDataBindingLab { public partial class NpcWindow : Wind...
0
1,671
How to change image and alt attribute on click?
<p>I'm looking to change several images onclick using JQuery instead of normal JavaScript and also change the image alt attribute at the same time for accessibility.</p> <p>It should be something easy as I'm not looking to do some special effect on change but I still haven't find anything about it.</p> <p>Here is the...
0
1,047
Gmail API: 400 bad request when trying to send an email (PHP code)
<p>I expected the code below to send an email, but I'm only getting this:</p> <blockquote> <p>An error occurred: Error calling POST <a href="https://www.googleapis.com/gmail/v1/users/me/messages/send">https://www.googleapis.com/gmail/v1/users/me/messages/send</a>: (400) Bad Request</p> </blockquote> <p>I get a ...
0
2,949
Error running adb: No Android device found. Please connect a device and follow the instructions here to enable USB debugging:
<p>I am new react-native and just ran my first hello world app using a real device using Expo. </p> <p>Now, I would like to run first hello world app on an android emulator. I setup an AVD using AVD Manager from Android Studio. (Marshmallow)</p> <p><a href="https://i.stack.imgur.com/cZCBQ.png" rel="noreferrer"><img s...
0
5,663
Cannot find class org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration]
<p>While running Spring Boot application I am getting this issue:</p> <pre><code>Exception in thread "main" java.lang.IllegalArgumentException: Cannot find class [org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration] at org.springframework.util.ClassUtils.resolveClassName(ClassUt...
0
5,779
org.codehaus.jackson.JsonParseException: Unexpected character ('' (code 65279 / 0xfeff)): expected a valid value
<p>I'm facing an Strange problem, I'm very new to Android and Json. I'm consuming a RESTful WCF that shows a json response like this one:</p> <pre><code>{"StatusCode":200,"Message":"","Result":{"Agencies":[],"Areas":[{"id":11,"area_name":"area 10","description":"updated 10","active":true},{"id":12,"area_name":"Area 11...
0
6,096
Making Fibonacci faster
<p>I was required to write a simple implementation of Fibonacci's algorithm and then to <strong>make it faster</strong>.</p> <p>Here is my initial implementation</p> <pre><code>public class Fibonacci { public static long getFibonacciOf(long n) { if (n== 0) { return 0; } else if (n == ...
0
1,895
Is there a simple way to display mysql data in Django template without creating an app?
<p>I have a table in my MySQL database named mysite_categories, there are 4 columns but for my purposes I just need two (name, base_url).</p> <p>I currently have a template '*base_categories.html*' that I use to load the categories manually.</p> <p><strong>base_categories.html (trimmed down)</strong></p> <pre><code>...
0
2,899
CSS - Add background to some columns in grid
<p>Ok, I am new with CSS and this is just causing me trouble. How do I add a background color to multiple columns but not all columns. </p> <p>I want one background color on span2 and a different color on span10. The problem I run into is issues with padding. When I apply the background to certain columns it won't hav...
0
1,469
Include HTML files in R Markdown file?
<h1>Quick Summary</h1> <p>How do I place HTML files <strong><em>in place</em></strong> within an R Markdown file?</p> <h1>Details</h1> <p>I have created some nice animated choropleth maps via <a href="https://cran.r-project.org/web/packages/choroplethr/vignettes/g-animated-choropleths.html" rel="noreferrer">chorople...
0
1,267
Python-Pandas-Dataframe-datetime conversion excluding null value cells
<p>Thanks for taking the time to look at my question.</p> <p>I try to convert two date columns in a pandas dataframe using the function below. I use this function, because the "Closed Date" has 4221 lines, so it should not crash on the null cells.</p> <p>Ultimately, the change results into a dataframe of the original...
0
1,141
Deleting the back element in a linked list
<p>This is not a duplicate of the question with a similar name, This involves OOP and new and delete calls.</p> <p>I'm trying to write a function that will iterate to the back of my linked list and then delete the allocated memory in the heap of the last node. </p> <p>Here is my code:</p> <pre><code>void LinkedList:...
0
1,557
Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
<p>In my application when I try to launch it Force Closed and the error pointing the line "setContentView(R.layout.Menu);" of the layout. And in the XML file it show the "OutOfMemoryError" image view in my layout. I am realy confused. Please guide me for further move. </p> <p><strong>Edited:</strong> </p> <p>My appli...
0
6,821
How to properly build an optimize Angular 5 Project?
<p>I'm new to Angular 5 project. I ran <code>ng build --prod</code> to generate a <code>dist/</code> folder.</p> <p>I noticed it takes quite a long time to build, and when I opened up my <code>dist/</code> folder, I saw it has almost 98% useless stuff in there, like SVGs, images, and so on ..</p> <p>How do I control ...
0
1,994
Passing Parameter Value in Access Query using vba
<p><strong>Our requirement -</strong></p> <p>We have few suppliers and we want to generate a monthly report of purchases from each supplier during the month and export to excel. I think the solution is to create a parameter query where I can pass the value of the supplier ID, Month and Year. The list of supplier keeps...
0
1,261
Skip first result from v-for vuejs2
<p>I'm working with laravel 5.5 and vuejs2 and lodash project. I want to skip first coming data in result like the image below. This is my vuejs2 code.</p> <pre><code>new Vue({ el:'#users', data:{ message:'', ok:false, noresult:false, arrayresults: [{id:'' ,username: '',useremail: '',userphone:'',}], ...
0
2,039
How to get the price of a BEP20 token?
<p>I would like to calculate the price of a BEP20 token in BNB. I checked poocoin and pancakeswap how they calculate the price. As I see they call continously the bsc-dataseed through web3.js, but I didn't find the solution yet.</p> <h2>The current status of my investigation:</h2> <ol> <li>they calling continously the ...
0
2,632
Node.js - NPM pacakge publish locally and install the locally published NPM package for a Node.js application
<p>I have created a local NPM pacakge, i am trying to install the local package using fallowing command "npm install ../replacevalue/replacevalue-0.1.1tgz".</p> <p>This is giveing me fallowing error. My agenda is to "Locally test my npm modules without publishing them to npmjs.org".</p> <pre><code>0 info it worked if...
0
1,120
Dynamic binding of table column and rows
<p>I'm having troubles getting dynamic binding of both my table columns and rows to work.</p> <p>Suppose I have two models, one holding the table column info:</p> <pre><code> var aColumnData = [ { columnId : "col1" }, { columnId : "col2" }, { ...
0
1,047
thread terminate called without an active exception
<p>I've been doing threaded networking for a game, but the server dies randomly, while i've been testing the networking so that I have several clients connecting and sending bunch of packets and disconnecting then connecting back again.</p> <p>I am using c++ with SFML/Network and SFML/System threads. I have thread whi...
0
1,820
How to group several checkboxes with angular-material
<p>Let's say I have a form to create a store. I want to input its name, and the days the store will be open.</p> <p>So I'll have a form, with some inputs, and I want to group checkboxes in one mat-form-field.</p> <p>store-form-component.html :</p> <pre><code>&lt;form (ngSubmit)="onSaveStore()" [formGroup]="storeForm...
0
1,064
How to create a dynamically built Context Menu clickEvent
<p>I have a <code>DataGridView</code> and a context menu that opens when you right click a specific column. What shows up in the context menu is dependant on what's in the field clicked on - paths to multiple files (the paths are manipulated to create a full UNC path to the correct file).</p> <p>The only problem is th...
0
1,526
UIPickerView not displaying data
<p>I've followed a couple youtube tutorials as well as advice on here but I can't seem to get my UIPickerView to display its data. I'm populating the picker using three arrays and I thought I've implemented the code correctly but obviously something is wrong. The picker displays the number of elements correctly, the ...
0
1,907
Owl Carousel 2 - Center and overlay
<p>I want a three-item-carousel with the middle item center in one background color (later on a background image in color) and the left + right item in different color (later on imagebackgrounds with a greyscale-filter).Like this one for owl 1 at <a href="http://codepen.io/OwlFonk/pen/dpjhB" rel="nofollow">http://codep...
0
3,146
command "mvn package" fails with status 137
<p>Packaging GWT project using "mvn package" fails and I have the following ouput: </p> <pre><code>[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building MyProject [INFO] task-segment: [package] [INFO] -----------------------------------------...
0
3,850
resource id #4 Why am I getting this?
<p>I have a pretty basic forum template I am working on for testing purposes</p> <p>When I create a topic, and press submit, the proccess updates the database but doesn't output on the screen. Why is this? and Why am I getting a Resource id #4 when I echo the $result from this code below:</p> <pre><code>&lt;?php $ho...
0
1,059
PHP Code - import xml file from web server (/public_html/ctrackxml) into mysql database
<p>I have xml files been imported onto an FTP server. This is stored in location '/public_html/ctrackxml/' with a random file name and in the following format:</p> <pre><code>&lt;message type="POSITIONDATA"&gt; &lt;messageid&gt;-1&lt;/messageid&gt; &lt;mobile&gt;SNK261GP&lt;/mobile&gt; &lt;time&gt;2012/01/20 08:...
0
1,466