title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Fixed view in ViewPager's content layout, under CoordinatorLayout | <p>My app has an <code>Activity</code> with <code>TabLayout</code>, and 3 <code>Fragments</code>. In <code>Activity's</code> layout, I have <code>CoordinatorLayout</code> with <code>ViewPager</code>. I need to animate <strong><em>toolbar</em></strong> as well.
Now In Fragments layout, I need to put a fixed TextView at ... | 1 | 1,771 |
Why is CompletableFuture join/get faster in separate streams than using one stream | <p>For the following program I am trying to figure out why using 2 different streams parallelizes the task and using the same stream and calling join/get on the Completable future makes them take longer time equivalent to as if they were sequentially processed).</p>
<pre class="lang-java prettyprint-override"><code>pu... | 1 | 1,215 |
Gradle fails to resolve spring dependency | <p>I am trying to build my project with the following <code>build.gradle</code> file.</p>
<pre><code>buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath('org.springframework.boot:spring-boot-gradle-plugin:1.2.1.RELEASE')
}
}
apply plugin: 'java'
apply plugin: 'idea'
a... | 1 | 1,028 |
NSSavePanel File Path | <p>I use <strong>NSSavePanel</strong> only when I deal with text files. If I have an image to export, I use <strong>NSOpenPanel</strong> so that the user can select a directory, and I don't get caught with in the sandbox file path restriction. This time, though, I want to use NSSavePanel to let the user save an image... | 1 | 1,095 |
Enable Back Button Handling With Twitter Bootstrap Tabs in IE8+ | <p>Bootstrap 2.3.2 </p>
<p>I am using <a href="http://getbootstrap.com/2.3.2/javascript.html#tabs" rel="noreferrer">tabs</a> from Bootstrap in my project to display content. On a single page there are multiple tabs with different content and in those tabs are links to take the user to other pages on the website. </p>
... | 1 | 1,672 |
Live search throttle in Swift 3 | <p>I'm trying to live search at my PHP API with Swift. Until now i've done this thing.</p>
<pre><code> var filteredData = [Products]()
func getSearch(completed: @escaping DownloadComplete, searchString: String) {
let parameters: Parameters = [
"action" : "search",
"subaction" : "get... | 1 | 1,227 |
Can gnuplot split data? | <p>I have some data in the following format:</p>
<pre><code>10.0 1 a 2
10.2 2 b 2
10.4 3 a 2
10.6 4 b 2
10.8 4 c 10
11.0 4 c 20
</code></pre>
<p>... where the third column basically indicates belonging to a 'separate' dataset; and so I would like to show, say, those samples belonging to 'a' in red, those belonging to... | 1 | 1,718 |
Why is sonarqube call from jenkins failing with HTTP 500? | <p>I have a build job running in jenkins analyzing a java code web project. The compilation and build part is working fine. The jobs fails when sonarqube is called.
I get the following error message in jenkins:</p>
<pre><code>[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.1:sonar (... | 1 | 6,208 |
python pandas add a lower level column to multi_index dataframe | <p>Could someone help me to achieve this task?
I have data in multi-level data frame through the unstack() operation:</p>
<pre><code>Original df:
Density Length Range Count
15k 0.60 small 555
15k 0.60 big 17
15k 1.80 small 141
15k 1.80 big 21
15k 3.60 small 150
1... | 1 | 1,079 |
spark-submit error: ClassNotFoundException | <p>build.sbt</p>
<pre><code>lazy val commonSettings = Seq(
organization := "com.me",
version := "0.1.0",
scalaVersion := "2.11.0"
)
lazy val counter = (project in file("counter")).
settings(commonSettings:_*)
</code></pre>
<p>counter/build.sbt</p>
<pre><code>name := "counter"
mainClass := Some("Coun... | 1 | 1,155 |
Unknown provider: $elementProvider <- $element <- DragListController | <p>Here is my code. I got and error Unknown provider: $elementProvider <- $element <- DragListController. I'm still new with anuglar js </p>
<pre><code> angular
.module('taskManager')
.controller('DragListController', DragListController);
DragListController.$injec... | 1 | 1,763 |
Populate a WTForms form object with a datetime.date | <p>I'm cooking up a crud interface for an object representing a bill, as in the water bill, the electric bill, etc.</p>
<p>I'm using sqlalchemy to handle the data, wtforms to handle the forms, and flask to serve it. </p>
<p>Here's what my route looks like that serves the form for editing an existing bill:</p>
<pre>... | 1 | 1,225 |
Uncaught TypeError: Cannot read property '0' of undefined - in jqGrid Spring MVC | <p>I got the message : Uncaught TypeError: Cannot read property '0' of undefined in jqGrid.min.js . When I submit to update data from grid.</p>
<p>my script: </p>
<pre><code>$('#list-student').jqGrid({
url: 'GetAllStudent',
datatype: 'json',
colNames:['ID','Student', 'Birth day', 'Is Male ?','Province'],
... | 1 | 2,429 |
How to make Apache proxy to NodeJS correctly? | <p>I'm developing a NodeJS application with AngularJS.
For testing I want to host it on a webserver that runs an apache2 webserver.
Googling and Try-And-Error brought me to the fact that I need to simply make Apache forward the requests with the proxy module:</p>
<pre><code><Location /someurl>
ProxyPass http:/... | 1 | 1,651 |
Error: terminate called throwing an exceptionAbort trap: 6 | <p>I am making a hot potato game that deals with inheritance. I have a potato class, player class and umpire class. </p>
<p>In calling the toss function within my umpire class I KEEP getting this same error and I can't seem to figure out why: terminate called throwing an exceptionAbort trap: 6</p>
<p>I went through a... | 1 | 3,476 |
using case_when inside dplyr's mutate to create a new column in dataframe based on conditions | <p>I'm trying to create a new column in my data frame that is based off another column having a certain unique value. I have successfully done this by using the case_when argument inside a mutate. However, I would like to use a str_detect because I have a great deal of data and I don't want to have to type every single... | 1 | 2,232 |
IIS 7.5 Restful service returns Error 411 - length required from .net client but not fiddler | <p>I'm using a Microsoft Stack: Windows Server 2008 R2 / IIS 7.5; .NET 4.0 </p>
<p>Setting up the service on localhost, the client call the operation without a hitch. Setting up the service (originally as a Post then as a Get) I get the following error from .NET (method below). If I make the call directly through fidd... | 1 | 1,627 |
Stm32L151RCxxx USART Hang issue, Interrupt Based TX/RX simultaneously | <p>I am running USART3, on 921600 BaudRate, using RTS CTS, I am always facing system hang when I try to do RX and TX simultaneously. I have pasted the main and IRQ code. IRQ is designed to Transmit a char 'A' while dropping all received data. Hangs happens when we disable <code>USART_ITConfig(USART3, USART_IT_TXE, DISA... | 1 | 1,291 |
cat, grep & awk - both while read line & while read file in 1 loop? | <hr>
<p>Hi, </p>
<p>Thanks to alot of searching on stackoverflow (great resource!) last couple of days I succeeded in this, and even succeeded in the following issue, that was the output resulted in doubling of the lines everytime I ran the command. Thanks to an awk command which was able to remove double lines.
I'm ... | 1 | 1,061 |
Error in jquery Dialog when used with jquery tablesorter pager JavaScript runtime error: Object doesn't support property or method 'dialog' | <p>I have a Admin screen in Area = "PrivateCEQRApplication". I am using Jquery table sorter (<a href="http://tablesorter.com/docs/" rel="nofollow">http://tablesorter.com/docs/</a>) and jquery dialog (<a href="https://jqueryui.com/dialog/#default" rel="nofollow">https://jqueryui.com/dialog/#default</a>) in that page. I ... | 1 | 2,077 |
django "duplicate key value violates unique constraint" primarykey | <p>Im getting some really weird errors coming out of a form i wrote. </p>
<p>using:
postgres 8.4
ubuntu 10.04
oython 2.6
django 1.2.4</p>
<p>Basically I have an form that collects a name and an email address. But I need to make dummy rows in two other tables so we can track them. Models below.</p>
<pre><code>from dj... | 1 | 5,711 |
Syntax Error on makeExecutableSchema: Unexpected Name "User" (GraphQL) | <p>I need some help to solve an error on graphql, I can't find anything on this case.</p>
<p>I tried to separate my different schemas and resolvers to make it easier to maintain, but when I use makeExecutableSchema function (from graphql-tools package), a "GraphQLError: Syntax Error: Unexpected Name "User"" error is t... | 1 | 1,182 |
TypeError: 'Product' object is not subscriptable in Flask | <p>I am new to python and flask, I am learning to build Flask-rest-api. I am using SQLAlchemy as the db. I tried to post data using postman to the api and I get the TypeError: Object is not subscriptable. I am completely new to this and have no idea how to resolve this and what it means. </p>
<p>I went through some so... | 1 | 2,047 |
Spring boot REST application deployed as WAR on tomcat is not working | <p>Created a spring boot REST application. </p>
<p><strong>Run as Spring boot app</strong><br>
While running it as <code>spring boot application</code> in eclipse. It's working great.<br>
REST API are working with the URL - <code>http://localhost:8080/schools</code></p>
<p><strong>Deploy as WAR on tomcat</strong></p... | 1 | 1,559 |
EntityFrameworkCore is there a way to create EnumToStringConverter without passing the enum type as generic? | <p>I am trying to use <code>EntityFrameworkCore</code> ORM to interact with my databases. By default, <code>EntityFrameworkCore</code> seems to store enum as int instead of string. </p>
<p>However, I would like to store the value in the database as a string. I can see that <code>EntityFrameworkCore</code> ships with a... | 1 | 1,333 |
python, lxml or etree to get a parent of a node containing some text | <p>how can i proceed to get the parent node of a node containing a piece of text?</p>
<p>moreover can i use some regexp mecanism as the matched element for searching/filtering, below searching from <code>re.compile("th[ei]s? .ne")</code> for example?</p>
<p>say <code>this one</code></p>
<pre><code>html = '''<html... | 1 | 2,532 |
Core Data + 'statement is still active' | <p>I'm having a real bad time with this core data error.</p>
<pre><code>*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'statement is still active'
</code></pre>
<p>My app and code all works fine except occasionally when calling requests very quickly. It happens when I'm ... | 1 | 1,312 |
How to set multi-level test setup/teardown in robot framework | <p>I have some robot test cases separated in directories. The directory hierarchy is:</p>
<pre><code>ParentTestDirectory
|__ ChidTestDirectoryOne
|__ TestOne.robot
|__ ChidTestDirectoryTwo
|__ TestTwo.robot
|__ __init__.robot
</code></pre>
<p>Content of <code>__init__.robot</code>:</p>
<p... | 1 | 1,620 |
Barcode Scanner (ZXing) crashing | <p>First off i want to tell you i have done all i can. Followed like 10 tutorials on internet and 10 threads on stacked. Still no success.</p>
<p>I know guys that you recommend using scanning via intent,but in my case its not an option and i need to have it native in my app.</p>
<p>I have downloaded the zxing library... | 1 | 2,536 |
Extremely Laggy RecyclerView Performance | <p>I have a <code>RecyclerView</code> implementation inside of a <code>ViewPager</code>, and its performance is pretty horrible. <a href="https://vid.me/kxrC" rel="noreferrer">Here's a video of the performance in question.</a> I have two view types, and am using the ViewHolder pattern (so it's not inflation or finding ... | 1 | 7,420 |
React-bootstrap modal not popping up even after showModal is set to true | <p>I have used this in previous projects and it worked just fine. I thought that maybe the <code>state</code> of <code>showModal</code> wasn't getting set, but it is getting set to true when I click the pictures. I will post code below.</p>
<p>Please let me know if you need anymore information rather than spamming the... | 1 | 1,209 |
Jenkins fails to fetch the repo some times | <p>Hi I am getting this error when I try to build my project in Jenkins.</p>
<pre><code>Started by user jenkins
Building in workspace /var/lib/jenkins/workspace/booking-widget-api
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url h... | 1 | 1,255 |
How to delete all the nodes of BST for reuse in c++ | <p>I couldn't delete all the nodes of BST for reuse.For the first set of inputs my code works properly but fails later input.
I googled a lot and couldn't find any solution related my problem.
For clarification I am pasting my full source code.
I found this kind of question previously asked here
<a href="https://stacko... | 1 | 1,462 |
I need help centering text in the center of CSS Grid | <p>I am unable to align text in the center of the grid, both vertical and horizontally, because nothing that I tried seems to work, so I wanted to know what is the problem with my code or how should I do it. </p>
<p>I tried using <code>justify-items: center</code>, <code>align-items: center</code> and even <code>place... | 1 | 1,051 |
NSubstitute Checking received calls don't work | <p>Hey guys im new with the NSubstitute framework. I'm trying to test some of my classes, but when i use NSubstitute to check received calls it says received no matching calls. </p>
<p>I'm trying to test if the method Tick() is receiving update() from track class. </p>
<pre><code>using System;
using System.Collection... | 1 | 1,033 |
How can I use AccessibilityService.getWindows() to obtain a traversable AccessibilityNodeInfo? | <p>I am writing an <code>AccessibilityService</code> for Android and, up to API level 20, I have been using the <code>AccessibilityEvent.getSource()</code> method to obtain a traversable <code>AccessibilityNodeInfo</code> when <code>onAccessibilityEvent(AccessibilityEvent event)</code> is triggered. Although the result... | 1 | 1,635 |
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.data.hadoop.hive.HiveOperations] | <p>My application is combination of hadoop and rest service with spring framework. My aim is to provide results from hive table on request. But when I run application, after completion of mapreduce and hive job I get following error:</p>
<pre><code>java.lang.reflect.InvocationTargetException
at sun.reflect.Nat... | 1 | 11,374 |
BadRequestError: cannot use a projection on a property with an equality filter | <p>In the snippet of code below when I try to perform these two lines I get this error:"
BadRequestError: cannot use a projection on a property with an equality filter"</p>
<pre><code>myname = self.response.get('state')
</code></pre>
<p>qy1=db.GqlQuery(*SELECT name,phoneNumber,description,city,state FROM Table1 WHERE... | 1 | 1,217 |
Table header to stay fixed at the top when scrolling | <p>I am trying to design an HTML table where the header will stay fixed at the top of the page while scrolling down, but it is not working. Below is my html code....</p>
<pre><code><table align="center">
<?php
$select = "SELECT * FROM register where r_bid='".$_SESSION["id"]."' order by `name` "... | 1 | 1,359 |
node-gyp rebuild 2 error when installing Karma | <p>I am trying to install Karma onto OSX v10.9.3.</p>
<p>I open up the terminal and enter <code>npm install -g karma</code>. When I do this, I get the following output:</p>
<pre><code>mc-s089979% npm install -g karma
> fsevents@0.2.0 install /usr/local/lib/node_modules/karma/node_modules/chokidar/node_modules/fs... | 1 | 1,229 |
Verilog Calculator w/ 16 bit signed inputs | <p>I need to build a calculator that takes 2 signed 16 bit numbers (in1, in2) and preforms functions on them depending on the opCode (a 4 bit input). The outputs should be a signed 16 bit number named 'result' and one bit 'overflow'</p>
<p>I really need help fixing my code. It's not working and I'm not sure what I'm d... | 1 | 1,873 |
Parsing dynamically generated JSON object names with Jackson | <p>I'm attempting to deserialize some MediaWiki context from JSON using Jackson into POJOs. However, the problem is that one of the JSON object names is the integer ID value of the article, so using an annotation like <code>@JsonProperty</code> can't be used because the value is never constant.</p>
<p>Here's some samp... | 1 | 1,406 |
ASP.Net core sometimes the action controller is called twice | <p>I have an application is ASP.net core and have integrated spreedly payment gateway for processing the payments. In my log files I can see that sometimes the payment controller executes twice. I generate an ID based on the time the request was received and the ID's are sometimes apart by 1 sec or at sometimes they ar... | 1 | 1,757 |
How to bind imageSource to ImageView in MvvmCross | <p>I'm having trouble to bind a source with converter to an imageview in my Touch project. I found <a href="https://stackoverflow.com/questions/12925056/binding-to-path-imageview-in-mvvmcross-for-monodroid-android">here</a> and <a href="https://stackoverflow.com/questions/12876406/how-to-bind-an-image-src-to-resource-d... | 1 | 1,220 |
android notification always relaunches activity | <p>First time poster here, please excuse my lengthy post - I want to provide all the necessary info.</p>
<p>I am trying to achieve the coveted resume from clicking on notification functionality, but I am having some difficulties. First off, details(code below):</p>
<ol>
<li><p>Project Properties</p>
<pre><code>Andr... | 1 | 1,631 |
Exception thrown from the UncaughtExceptionHandler | <p>I am writing an apk analysis program. I cannot go deep into details because it's research material. However, the point is that from time to time when I execute the analysis routine, I get the following message:</p>
<pre><code>Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thre... | 1 | 4,169 |
How to call a void function in C | <p>Ok so I have written this code with four different functions, and the main purpose of it is to display in a table from angles 0-90 what the angle, time, distance of a velocity is. the velocity is inputed from the user.
But when I call the void function that is making the function I get an error "undefined reference ... | 1 | 1,046 |
java.lang.ClassNotFoundException: org.postgresql.Driver in spring | <p><strong>My problem:</strong> java.lang.ClassNotFoundException: org.postgresql.Driver<br>
<strong>I use:</strong> Spring, Java EE, Maven, Tomcat, Postgresql<br>
<strong>Link to project:</strong> <a href="https://github.com/Dimassss/RecentlyRepository" rel="nofollow noreferrer">https://github.com/Dimassss/RecentlyRepo... | 1 | 2,344 |
React - Injecting inline style with animation | <p>I have a component that needs to have different animations for each one of its children.</p>
<p>I am using React Hooks and Material UI to style my components.</p>
<p>My component(s) looks as follows:</p>
<pre><code>const useStyles = makeStyles({ // from material ui
root: {
position: 'relative',
},
child: {... | 1 | 1,181 |
PMD+Maven+JAVA Error:: Can't find resource rulesets/comments.xml. Make sure the resource is a valid file or URL or is on the CLASSPATH | <p>while adding a custom ruleset of PMD , maven is producing an error -<code>net.sourceforge.pmd.RuleSetNotFoundException: Can't find resource rulesets/comments.xml.Make sure the resource is a valid file or URL or is on the CLASSPATH</code>.</p>
<p>For others rule sets like basic,naming etc its not giving any error.bu... | 1 | 3,756 |
WCF SOAP + REST/Json service without .svc - do I have twice the number of service factories? | <p>Ok, so I wanted to have a single service exposed as a SOAP as well as REST (Json) end point. Since it's off the "WCF Service Application" template, I have a web.config and I added the following into the ...</p>
<p><strong>web.config</strong></p>
<pre><code><configuration>
...
<system.serviceModel>
... | 1 | 1,811 |
How to insert null value to image column in SQL Server c# | <p>I have been trying to figure out how to save image into database with both null and image values. For my code it saves the image but if the image is missing it does not save a null value.</p>
<pre><code>public string STDNAME { get; set; }
public string Image { get; set; }
DateTime Date1 = DateTime.Now;
</code></pre... | 1 | 1,156 |
ACME certificates timeout with traefik | <h3>Hello!</h3>
<p>I am having issues finding out the reason why I am getting this error. Tried googling it.
It seems to be an issue with dns lookup from the container.</p>
<h3>Error in traefik log:</h3>
<pre><code>time="2020-01-30T12:12:12+01:00" level=error msg="Unable to obtain ACME certificate for domains \"trae... | 1 | 2,137 |
If Statement inside Case Statement (VB.Net) | <p>Hi I am new in coding at Visual studio.
I'm Using Visual Studio 2012
I Have a Question.
I want to Connect combobox and textbox31 to textbox1
ex. if the combobox is 100 and textbox31 is 1 so the textbox1 will be 100</p>
<p>I End Up With This Code:</p>
<pre><code>Dim c As String
c = ComboBox1.Text
Select ... | 1 | 1,256 |
iOS app failed to launch in time 0x000000008badf00d - delay in applicationDidBecomeActive | <p>I put entire <code>didFinishLaunchingWithOptions</code> with minimal code which is here:</p>
<pre><code> [UIApplication sharedApplication].idleTimerDisabled = YES;
m_bDataLoadingNeeded = YES;
return YES;
</code></pre>
<p>As a result, I had to put crucial initialization in <code>applicationDidBecomeActive</code>.... | 1 | 1,715 |
Is it possible to use wildcards and ranges with JSON_VALUE? | <p>I am currently working through an example of using the JSON features of Oracle 12c and I am struggling to understand how to use wildcards and ranges with <a href="http://docs.oracle.com/database/121/SQLRF/functions092.htm#SQLRF56668" rel="nofollow">JSON_VALUE</a>.</p>
<p>The <a href="http://www.oracle.com/technetwo... | 1 | 1,297 |
AppBarLayout with fragments | <p>So, situation is this:</p>
<p>I need to implement AppBar scroll behaviour in my main activity, but, I already have CoordinatorLayout and AppBarLayout in my fragment with the same scroll behaviour.</p>
<p>Here is the xml from both of the layouts:</p>
<p>activity_main:</p>
<pre><code><android.support.design.wid... | 1 | 2,658 |
Send email using SMTP in PHP with PHPMailer | <p>I tryed this code:</p>
<pre><code><?php
// Import PHPMailer classes into the global namespace
// These must be at the top of your script, not inside a function
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
//Load composer's autoloader
require '/home/username/public_html/vendor/autoload.... | 1 | 1,884 |
groupname doesn't work in more than one radiobutton inside repeater asp.net | <p>I have a repeater and inside the repeater a radiobutton control, in code behind I fill the groupname for the radiobutton control, so, when I run it, I have a table with many rows and some of them have radiobutton:</p>
<pre><code> <asp:updatepanel id="UpdatePanel1" runat="server" updatemode="Conditional">
... | 1 | 1,202 |
How to destroy a QApplication and then run a new one without exiting the python script? | <p>I want to create a QApplication which is then exited using a keyboard shortcut. Then the python script should call another QApplication.</p>
<p>My issues currently is that I get this error when the second QApplication is about to run:</p>
<pre><code>app2 = QApplication()
RuntimeError: Please destroy the QApplicati... | 1 | 1,529 |
unable to send message to external web application using camel | <p>My requirement is to recieve a message a json object from a webapplication and route it (Json object) to another web application ,I am using camel for this purpose,in what should be a fairly simple process is now giving me sleepless nights,My camel route is given as below</p>
<pre><code> <camel:r... | 1 | 9,926 |
How to get a link that do nothing | <p>I have created a search engine using Angular and Bootstrap. I have created different results tab as shown in image <a href="https://i.stack.imgur.com/LHsyd.png" rel="nofollow noreferrer">Tabs</a> . Right clicking on tab does not show the option of a link as we get on any link.
<a href="https://i.stack.imgur.com/Gg... | 1 | 1,120 |
Android Studio 4.1 Canary: Firebase Crashlytics breaks android project compilation | <p><strong>UPDATE:</strong> This is fixed in <a href="https://firebase.google.com/support/release-notes/android#crashlytics_gradle_plugin_v2-0-0-beta04" rel="noreferrer">Crashlytics Gradle plugin version 2.0.0-beta04</a>.</p>
<p>Been trying to remove the soon to be deprecated Fabric Crashlytics SDK from the project I'... | 1 | 2,654 |
Call AsyncTask in the parent activity from fragment | <p>I have an activity with fragment pager and I want to know how to call an asynctask located on that activity from fragment .<br />
<strong>AddActivity.java</strong></p>
<pre><code>public class AddActivity extends FragmentActivity {
ViewPager vp;
ProgressDialog dialog;
@Override
protected void onCre... | 1 | 1,165 |
httr POST API request but missing xml parameter | <p>I am trying to connect to the XML API for IBM Silverpop using <code>httr</code>, but I am running into a 'missing XML parameter' problem. I tried using the test harness provided by Silverpop to see if the requests I am sending is different in comparison to what I send via <code>httr</code>, but haven't found anythin... | 1 | 1,560 |
How to migrate from XslTransform to XslCompiledTransform | <p>I have the following code that I need to migrate from VS 2003 (.Net 1.1) to VS 2008 (.Net 2+)
but I get compilation error -</p>
<p>System.Xml.Xsl.XslTransform' is obsolete: This class has been deprecated.
I probably need to use System.Xml.Xsl.XslCompiledTransform instead.
but I do not find the matching Load() and ... | 1 | 1,267 |
Task.WaitAll Method in C#.NET is is throwing an Exception in rare cases | <p>I'm using an API to get data and store it in Database. The problem is that API return only 50 records per a call, so to get more data in less time, we have used <strong>Parallel.For</strong> in the application. The code which I'm using below is saving the data in database successfully most of the times but it's thro... | 1 | 2,002 |
How can I only depth one field in Django-Rest-Framework? | <p>I have a <code>IPv4ListSerializer</code>, it has a <code>depth = 1</code>:</p>
<pre><code>class IPv4ListSerializer(ModelSerializer):
"""
ipv4
"""
ip_status = serializers.CharField(read_only=True)
class Meta:
model = IPv4Manage
fields = "__all__"
depth = 1
</code></pre>
<... | 1 | 1,923 |
viewPager and data binding android | <p>I have a activity with a view pager and i implements MVVM.<br>
I can't set view pager adapter.
I read all of the post in stack Over Flow but i have error.
which part of my code is wrong?
I posted all of the my codes.</p>
<blockquote>
<p>This my xml codes</p>
</blockquote>
<pre><code><?xml version="1.0" encod... | 1 | 1,189 |
how to deal with unicode in mako? | <p>I constantly get this error using mako:</p>
<pre><code>UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 6: ordinal not in range(128)
</code></pre>
<p>I've told mako I'm using unicode in any possible way:</p>
<pre><code> mylookup = TemplateLookup(
directories=['plugins/stl/te... | 1 | 1,043 |
How to add a click listener to Menu Item in Kotlin | <p>I want to create a Bottom Navigation Bar. I used android BottomNavigationView to create the UI but I don't know how to add an OnClick listener to the items in Menu. </p>
<p>I searched on google and found some articles, but all of them were using a Toolbar element. I don't know about how to add that and what it was ... | 1 | 1,086 |
How to update the badge number in IOS push notification? | <p>I recently use the Amazon SNS to push notification for my IOS app.</p>
<p>It works well, the only problem I have encountered is when I receive the notification , the badge number will not be updated, here is how I implement:</p>
<p>First I follow the example here
<a href="https://aws.amazon.com/articles/9156883257... | 1 | 1,211 |
How to merge swagger multiple files in single swagger doc file? | <p>I have different swagger files for multiple APIs, like swagger1.json for OpenStack API, swagger2.json for Users API etc and I was trying to merge these all swagger files in one single file using remote $ref method.</p>
<p>Here is swagger1.json file for OpenStack api</p>
<pre><code>{
"stacks": {
"get": ... | 1 | 1,154 |
How to make space between spannable string in Android? | <h1>Code:</h1>
<pre><code>private void setSpans(Editable s, @ColorInt int backgroundColor) {
BackgroundColorSpan[] spans = s.getSpans(0, s.length(), BackgroundColorSpan.class);
String[] words;
if (s.toString().endsWith(" ")) {
words = (s.toString() + "X").split("\\s");... | 1 | 1,331 |
How to refresh datatable list jquery? | <p>I am using DataTable Jquery for bind list of records. I face below issue.</p>
<p>I am using jquery model popup for addnew and update record in MVC 4.0 Razor with no submit button only using ajax function. When I am click on "save" button and I want to update list with latest changes, but it can not. My code as belo... | 1 | 1,864 |
how to create hash of hashes in ruby | <p>UPDATE: the answer is below by me a simple .merge is what was needed.</p>
<p>I need to get a hash of hashes as output from my build_virtual_boards_hash method
I can not figure out how to add the hash to a stack of hashes. Or even how to create such a thing...first I'll list the methods out and then show you the out... | 1 | 1,851 |
Symfony2 one to one relationship form | <p>I need some help to understand what I'm doing wrong, I've tried to search one answer here, but nothing work.</p>
<p>here my problem.. </p>
<p>I have two entities with a one-to-one relationship:</p>
<pre><code>...
class FarmInfo
{
...
/**
* @var integer
*
* @ORM\Column(name="areaCovered", ... | 1 | 1,491 |
Jquery syntax error only in IE 11 | <p>I have a main page that load another html page with some javascript inside.
Unfortunately, in IE 11 the debugger retrieve me a syntax error in jquery.2.1.0.min.js. The javascript isn't executed at all.
With all other browsers the problem doesn't exist. I've checked the script with javascript lint, but there aren't s... | 1 | 9,292 |
Symfony2 Form Gives Catchable Error About FormView | <p>This is really strange, and it happened after updating a Twig template:</p>
<p><strong>The Controller Part</strong></p>
<pre><code> $registration = new Registration();
$form = $this->createForm(new RegistrationType(), $registration, array(
'action' => $this->generateUrl('account_create'),
... | 1 | 1,498 |
JPA persistence.xml I want it to connect to MariaDB but it always connects to hsqldb | <p>I have a java webapp,</p>
<p><code>persistence.xml</code></p>
<pre><code><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml... | 1 | 1,148 |
R: Find and add missing (/non existing) rows in time related data frame | <p>I'm struggling with the following.</p>
<p>If have a (big) data frame with the following:</p>
<ul>
<li>several columns for which the combination of columns is a 'unique' combination, say ID</li>
<li>a time related column</li>
<li>a measure related column</li>
</ul>
<p>I want to make sure that for each unique ID fo... | 1 | 2,934 |
Calling SSRS 2008 web service from Java | <p>I am trying to implement a Java Spring application that will display SSRS reports. I have been following this tutorial: <a href="http://blogs.msdn.com/b/christophputz/archive/2010/05/07/accessing-ms-reporting-services-with-java.aspx" rel="nofollow">http://blogs.msdn.com/b/christophputz/archive/2010/05/07/accessing-m... | 1 | 8,261 |
Why do I get a java.lang.NoSuchFieldError: on an Enum value? | <p>I have an Enum inside a jar that I have produced myself. This jar is a dependency of a second jar, which uses the enum values.</p>
<p>Now, the second jar is a logging framework, whereas the first jar in this case is the model classes of the logging framework.</p>
<p>I am trying to implement this logging framework ... | 1 | 1,038 |
Sudden pod restart of kubernetes deployment, reason? | <p>I'v got microservices deployed on GKE, with Helm v3; all apps/helms stood nicely for months, but yesterday for some reason pods were re-created</p>
<pre class="lang-sh prettyprint-override"><code>kubectl get pods -l app=myapp
NAME READY STATUS RESTARTS AGE
myapp-75cb966746-grjkj 1/1 ... | 1 | 1,557 |
Getting "java.lang.NoClassDefFoundError: weblogic/application/ApplicationStateListener" while deploying application into Weblogic server | <p>Getting NoClassDefFoundError after adding listener "ADFApplicationStateListener" in weblogic-appliations.xml.</p>
<p>Earlier weblogic-applications.xml has listener "ADFApplicationLifecycleListener". I am able to deploy the application with this listener.
But as per the mandates specified in the section "<strong>Cus... | 1 | 1,047 |
How to set input_array and output_array names in making TensorFlow Lite model | <p>OS Platform and Distribution: Linux Ubuntu 14.04
TensorFlow version: tensorflow (1.4.0) from binary,
CUDA/cuDNN version: cuda 8.0</p>
<p>I have trained a customized model with tensorflow and I am trying to make it a tensorflow lite model for mobile apps. My model defines like:</p>
<pre><code>def P_Net(inputs,label=N... | 1 | 1,982 |
MSMQ - sending messages to transactional queue became very slow | <p>We have an intranet ASP.NET web forms application which performs the actual work via service layer, represented by .NET Remoting services. A couple of weeks ago we've started to get timeout exceptions from IIS, it turned to be that the request from front end was not processed in allowed default execution time (for .... | 1 | 1,193 |
Evaluation failed Error in Puppeteer & Error Handling | <p>I develop parsing app with Puppeteer and it works well. But the problem is this app has error sometimes and I don't know why this error occurs.</p>
<p>I have to capture about 90,000 data.</p>
<p>The error seems to be caused by not reading the class list, but even if I give the Headless option to False and check, t... | 1 | 2,338 |
Angular ng-options - Is there a way to add an option when the model contains a value not present in the options list? | <p>When the model, eyeColorUnknown, contains a value that is not present in the options Angular creates an option with a value of "?" and blank for the visual description as shown below. </p>
<pre><code><select ng-model="eyeColorUnknown"
ng-options="option.val as (option.desc + ' - ' + option.val) for option i... | 1 | 1,863 |
How to change a specific RowData value in a jqGrid? | <p>
<br>
</p>
<p>And the script used is</p>
<pre><code><script type="text/javascript">
var ... | 1 | 2,655 |
Add Home page link to AppBar using Material-UI | <p>I'm new to React and am trying to add a "Home" page link to the AppBar component of Material-UI (version 4.0.1). The behaviour I'd like to see is that when clicking the "Home" link that component "OnePage" is displayed. </p>
<p>In "OnePage" there is a link to another component "TwoPage", which should be the only co... | 1 | 1,845 |
Tkinter Exception in Tkinter callback Traceback (most recent call last): | <p>I'm new to tkinter and I've looked online for help with this but can't find it. I cannot seem to find the error in my code, it points to a function in my main python file yet that function is clearly defined. I have attached pictures of the error message alongside the call to the fucntion and file that follow up in ... | 1 | 1,618 |
Flexbox child align-self: flex-end issue in Safari | <p>I'm having some trouble with a flexbox layout in Safari. I have a barchart, aligned using flexbox, but I can't implement it correctly in safari.</p>
<p>Please take a look on my <a href="http://jsfiddle.net/husky999/dq0ha3d5/11/" rel="nofollow">JSfiddle</a>. All advice is welcome! All browsers display it correct, ex... | 1 | 5,031 |
How to create a Java Object for the nested json Using POjo class | <p>I am facing issue in generating java object for this sample nested json format</p>
<pre><code>{
"Id":"id1",
"Eid":"eid1",
"tar":"pro",
"highlights":[{
"name":"l-p"
"Data":{
"dataid":"did1"
}
},
{
"name":"c-p",
"Data":{
"dataid":"did2"
}
},
{
"name": "ename",
"Data"... | 1 | 1,057 |
How to know pop event happened inside Nested Widget in Flutter | <p>I am currently building app where I need to use Nested Routing keeping one screen same and routing on different one. I want to when that second route is popped so that I can change value of expanded to fill whole screen. <a href="https://gist.github.com/ratnadeep007/00e0237f71a5f8a3d645129a97cebde0" rel="nofollow no... | 1 | 5,534 |
at=error code=H10 desc="App crashed" method=GET path="/" | <p>I have been trying to make MEAN application with Heroku but I got this err. I don't know what is problem... I need some help. I looked for many solutions. But I had the same errors.
And I also attach my git. <a href="https://github.com/handsomehyunsu/resume/tree/heroku" rel="nofollow noreferrer">https://github.com/h... | 1 | 3,360 |
How to Configure pom.xml to run 2 java mains in 1 Maven project | <p>I have a Maven project and it has 2 mains (MyTestApp_A, and MyTestApp_B) inside one of the packages from the src folder. </p>
<p>I can run these "main" classes in Eclipse if I open them and click the run button. However, Eclipse is bugged, and so I actually need to run these two classes on a command line using Mave... | 1 | 1,110 |
unable to store data into child table through parent table in hibernate one to many Bi-directional Process | <p>I am trying to store the data into EMPLOYEE(child) table through DEPARTMENT(parent) table and dispaly it using the hibernate one to many bi-directional process.</p>
<p>After the transaction i am able to diaply the data in employee including the data what i want to enter but i am not able to see that data in databas... | 1 | 3,065 |
Kendo Grid Filtering on change Event | <p>Actually, my requirement is Whenever the user entering input in filters, the Kendo grid should display the matching records based on input.Please help me to resolve this issue.</p>
<pre><code>@(Html.Kendo().Grid(Model).Name("ViewDataGrid")
.Columns(columns =>
... | 1 | 1,605 |
How do I pass variables to theme template via custom controller drupal 8 | <p>I currently have a theme I purchased installed on my Drupal website.</p>
<p>Inside the theme folder there is a templates folder that contains:</p>
<ul>
<li>page.html.twig</li>
<li>page--front.html.twig</li>
</ul>
<p>a snippet from <strong>page.html.twig</strong> looks as follows:</p>
<pre><code> <footer cl... | 1 | 1,277 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.