title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Failing to update database schema using Entity Framework CLI
<p>I have created an empty <code>dotnet new webapi</code> project on my machine using .NET CLI. I have setup <code>ApplicationDbContext</code> as well as a connection string in <code>appsettings.json</code> and created a model that I would like to create in the database.</p> <p>The project successfully builds and when ...
3
1,494
Using GDAL package in c# .Net core 5 makes Error
<p>I've created a .net core 5 web application with visual studio 2019. I've added GDAL Packages to my project. When I run the web application locally there are no problems but when I publish the application on the IIS it makes an error. The Packages that I've added are like below: <a href="https://i.stack.imgur.com/CqB...
3
1,201
How to Suspend/Delay java unit tests
<p>Is there a way to suspend java ( springboot ) unit tests execution when running mvn test and resume them later ?</p> <p>So I have this test class :</p> <pre><code> @SpringBootTest(webEnvironment = WebEnvironment.DEFINED_PORT) class JavaAppApplicationTests { @Test void contextLoads() {} @Test @Rep...
3
1,316
Cannot create JDBC driver of class '' for connect URL 'jdbc:mysql://localhost:3306/web13?useSSL=false&serverTimezone=UTC'
<p>I created a properties file</p> <pre><code>url=jdbc:mysql://localhost:3306/web13?useSSL=false&amp;serverTimezone=UTC username=root password=root </code></pre> <p>and I created a connection pool</p> <pre><code> private static DataSource dataSource; static { try { //load properties file Inp...
3
1,574
Terminating app due to uncaught exception '_HKObjectValidationFailureException'
<p>I am saving the blood glucose values into Health Kit application in iOS. </p> <pre><code>-(void)viewDidLoad { float bloodGlucose=20; float bloodGlucoseValue= (int) bloodGlucose; NSLog(@"Blood Glucose value is :%f",bloodGlucoseValue); HKQuantityType *bloodGlucoseType=[HKQuantityType quantit...
3
1,886
Add more images to the front page (index.php) banner and grab dynamically
<p>okay, so very very new to PHP, and trying to complete my first major assignment. I'm nearly finish however very stuck, and tutor/school have not been the most helpfull. I need to know how to solve this, in the easiest term so that i understand this for later. Thanks in advance.</p> <p>question 2. so i have to Add...
3
2,425
ValueError using Keras and Tensorflow in R
<p>I am using Keras in R to reproduce a tutorial I found online. Here are my codes:</p> <pre><code>library(caret) library(dplyr) library(ROCR) library(devtools) install_github('rstudio/reticulate',force=T) library(reticulate) library(tensorflow) install_tensorflow(version= &quot;2.3.0&quot;) install_github(&quot;rstud...
3
1,215
TFMA run_model_analysis not parsing TFRecord files properly
<p>I am trying to use the run_model_analysis function of TFMA library to evaluate my model. The data has been written to a TFRecord following the tf.train.example format. The model called for the evalaution expects an input shape of (None, 1, 5). Somehow on running the TFRecord bytestring saved by the SerializeToString...
3
1,916
How to configure the submit button so that it can submit the form that has been validated?
<p>I'm having a problem where Once I put "return validation()" in my submit button, The button won't submit. But the validation is working fine. Is there anyway to bypass this so that javascript can validate my file and then submit the form?</p> <p>This is my javascript:</p> <pre><code>function validate() { var ...
3
1,539
Different Ifs that get always the same code in Python 3.4
<p>I was making a program on Python 3.4, which purpose is to make random draws among given football teams.</p> <pre><code>import random modo = str(input("Sorteo o Simulación completa? ")) torneo = str(input("Torneo elegido: ")) fase = int(input("Número de equipos (en la fase a sortear): ")) def sorteo(x,y): if...
3
1,556
Having unspecified errors and a few issues when running google maps
<p><strong>ISSUE 1</strong></p> <p>I tried to get the geo code after entering the address. After i clicked on the GeoCode button, it prompts me unspecified errors. </p> <p>I have a page Register.aspx (no update panel) with a button "View", it will call ucGoogleMap.ascx when i clicked on the button.</p> <p>Below is t...
3
4,656
Android: performance issue multiple textures Opengl ES
<p>The game I made in android is based on a canvas, and for performance reason I am to lift this game to OpenGL ES instead. </p> <p>The problem is still performance - I have a background and a sprite bouncing around the screen - this works very well but it seem to be the same performance issue as with using a Canvas. ...
3
1,034
DevOps template with conditional manual approval job
<p>I am trying to add approval job based on the stage, I am using template and want to skip approval for some stages:</p> <pre><code>parameters: - name: Stage type: string - name: Environment type: string - name: WebAppName type: string - name: ArtifactName type: string - name: DependsOn type: object defaul...
3
1,352
Avaya CMS Automation_Error Via VBA
<p>I am getting the following error while running below macro. I have copy this macro from this side only. I am using below macro to copy dump in excel from Avaya CMS.</p> <p><a href="https://i.stack.imgur.com/7XwsB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7XwsB.png" alt="enter image descript...
3
1,148
Typescript: How to work with structural subtyping and inheritance
<p>Consider the following Typescript classes:</p> <pre><code>abstract class EnforcedString { private minLength: number; private maxLength: number; private value: string; protected identifier: string; constructor(minLength: number, maxLength: number, identifier: string) { this.minLength...
3
1,153
Vue, can't get why it acting strange in a function. Runs 5 times forEach when there is a return
<p>That's my whole test file. I've done so far, validation and it changes <code>span</code> class correctly due to correctly or not correctly fulfilled input. But where I'm stuck is I want disable <code>button</code> if there is not correctly fulfilled input or empty at all. And I think I've done logic right, but it do...
3
3,562
Having in SQL statement isn't returning accurate results
<p>I have a query that returns customer data from a temp table. The temp table only stores a customer number first and last names. It has about 320 records for folks who qualified for a program. </p> <pre><code>create table #customers ( customer_no int, fname varchar(20), lname varchar(55) ) </code></pre> <p>What I n...
3
1,281
SQL Create column with group_id in SELECT statement
<p>I'm trying to create a column with group_id during the SELECT statement.</p> <p>As group we will take every contact_id and product_code combination till we find event = purchase. Then if there are other event with the same contact_id and product_code combination it will be assigned as another group. Also contact_id...
3
1,069
Sometimes json Array appears with images and sometimes empty array
<p>Sometime json array appears with image url's and sometimes it is empty. I am using the following code where array with image url displaying data and image in listview but when array is empty then data is also not displaying. How can i slove this? Any answer will be appreciated</p> <pre><code> ArrayList&lt;HashMa...
3
1,167
group_by and summarise previously (10 minutes ago) worked on my data frame but no doesn't
<p>I have a dataframe I am manipulating that I ran <code>group_by</code> and summarise on a few minutes ago. After a forced restart of my computer (due to company IT) my <code>group_by</code> function no longer works. I have had this error sporadically for the last month or so.</p> <p>Here's my code:</p> <pre><code>cov...
3
2,347
How can I open a specific view on notification tap in SwiftUI?
<p>I am trying to send a user to a DetailView once the notification is tapped. I've followed multiple instructions such as this <a href="https://stackoverflow.com/questions/60306123/open-a-specific-view-when-opening-the-app-through-a-notification">one</a>. However, when I test it out, tapping on the notification still ...
3
1,805
Closure Function for every class instance (JavaScript)
<p>I have to JavaScript class called GKChart :- </p> <pre><code>class GKChart { constructor(data) { try { console.info("Enter: Chart Designing initialize function"); this.chartID = data.id; this.chartData = data.data; this.chartCall = new chartCalling(); this.load = this.initiali...
3
1,232
Alignment Layout exchange between classes - Android Studio
<p>I am implementing a program that uses <strong>database</strong> and interacts with different <code>layouts</code> of entries and editing users.</p> <p>I'm working with <code>RelativeLayout</code> on all screens. In one of the<code>layouts</code>, I insert a perfectly aligned button and give the <strong>command</str...
3
2,539
reduce cannot run after map 100%
<p>Today I ran a job on hadoop of two nodes.My program hang after map 100% and reduce cannot run. The messages returned are:</p> <pre><code>14/01/15 20:30:49 INFO input.FileInputFormat: Total input paths to process : 25 14/01/15 20:30:49 INFO util.NativeCodeLoader: Loaded the native-hadoop library 14/01/15 20:30:49 WA...
3
1,267
Towers of Hanoi using Lists Prolog
<p>I know that there is already sample programs floating around that cover this, but I need to do the towers of hanoi with 6 discs a specific way for an assignment and I'm having trouble. Code I currently have is below: </p> <pre><code>s([],[],[]). initial(s([1,2,3,4,5,6], [], [])). goal(s([],[],[1,2,3,4,5,6])). </c...
3
1,579
I can't make square apear in my gui. Can some one explain what exactly is wrong there?
<p>I'm trying to draw rectangle to my gui but nothing shows up</p> <p>I've tried using repaint(); and blackJackPanel.add(repaint()); which makes no sense but im desperate. There are 2 classes which are menu page I won't post roulette class because it's just too long. Everything works fine except blackjack class where ...
3
2,182
Flow not being sent to controller in spring mvc with hibernate
<p>This is the emp-servlet.xml</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:mvc="http://www.springframework.org/sc...
3
4,248
Include TestNG to hybrid selenium framework
<p>I have the below code in driverscript. I need to embed TestNG to it. How can I do this? ActionKeywords.java is defining all the action keywords. Where should I give the TestNG annotation? import java.io.FileInputStream; import java.lang.reflect.Method; import java.util.Properties;</p> <pre><code>import ...
3
2,094
Jmenu rendering issue while loading
<p>I am using Jquery Jmenu for Menu display.It displays as list view while loading page in IE8. After loading, few seconds later it displays as normal horizontal view. Whereas its working fine on Chrome browser. Please help on this. This is the css we are using. Its showing data in HTML format while loading menu. not a...
3
1,378
GSheet Appscript unsuccessful loops output
<p>I successfully created two functions which are to build data report in my template based on a certain data (invoice) and to autodownload the report as pdf file. But when i tried to loop those functions because i have many invoices to be downloaded as pdf files. this is my function :</p> <pre><code>function downloadN...
3
1,673
Spring MVC Static Resource Sometimes Can't Find
<p>First, Sorry about my poor english</p> <p>=================================</p> <p>My static resource in '/resource/images/test1/image1.png'</p> <p>When "test1" folder is exist</p> <p>I can call '127.0.0.1:8080/myproject/resource/test1/image1.png' find it</p> <p>if i call '127.0.0.1:8080/myproject/resource/test...
3
1,236
skaffold dev returns error Error 400: User project specified in the request is invalid., invalid?
<p>i am not really sure how to debug this error, as i'm on terminal i am sure of my project id and i already logged in with my gcloud. This is my error with -vdebug:</p> <pre><code>INFO[0000] starting gRPC server on port 50051 INFO[0000] starting gRPC HTTP server on port 50052 INFO[0000] Skaffold &amp;...
3
2,236
compiler won't advance in recursive reversal of singly linked list
<p>I have a recursive static method inside a <code>SinglyLinkedList</code> class which runs forever for an undetermined reason. This class is generic and its declaration looks like this:</p> <pre><code>public class SinglyLinkedList&lt;E&gt;{ </code></pre> <p>This class has an inner generic class <code>Node</code> whi...
3
2,325
Using OpenACC in a fortran77 project ,but has no effect and not output kernel information
<p>I have a fortran77 reservoir simulation project ,and want to use openacc directive to accelerate implementation,the compiler is PGI visual fortran ,a subroutine as follow:</p> <p>SUBROUTINE jbild(a, b, impl, [ ia, ja, neqa, kvst, ka, ibkmax, nja, ndima, nbmxc, [ isymm)</p> <pre...
3
4,010
Strange behavior of glVertexAttrib3f on one machine
<p>I have a very weird problem with my simple OpenGL application not working on my girlfriend's machine. At first I thought of all kinds of problems with my code, but I could finally break it down to this code not working (not working means: the triangle is drawn correctly, but black, that is, without the correct color...
3
2,606
Jruby "RuntimeHelpers" class is deprecated
<p>I am having a project based on JRuby on rails, now I am migrating this project to jruby-9.0.5.0 version.</p> <p>In the code, ruby is called from Java file as shown below:</p> <pre><code> String source = new StringBuilder("require 'java'\n" + "\n" + "java_package 'jrubysource'\n" + "clas...
3
1,194
Can't find the error...syntax error, unexpected keyword_ensure, expecting end-of-input
<p>New to Rails and getting this error: </p> <pre><code> SyntaxError in RestaurantsController#index /home/action/workspace/yelp_demo/app/views/layouts/_navbar.html.erb:40: syntax error, unexpected keyword_ensure, expecting end-of-input </code></pre> <p>but the error, I think is here:</p> <pre><code> app/views/...
3
1,804
Can someone please explain the query shown in depth?
<p>Question: write a SQL query to find the salespeople from the given tables who had more than one customer. Return <code>salesman_id</code> and <code>name</code>.</p> <p>Sample table: <code>customer</code></p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>customer_id</th> <th>cust_name</th> ...
3
1,185
Whenever I click register it says, "your file was not found" and alerts are not showing
<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> &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt;&lt;/head&gt; &lt;body&gt; &lt;form name="myFor...
3
1,445
NSTimer not repeating
<p>I'm creating a SpriteKit game with Swift. I'm using the NSTimer, schedule timer with time interval with the target and the selector. Although repeats is set to true, the pipe comes and goes only once. Here is my timer: </p> <pre><code>let timer = NSTimer.scheduledTimerWithTimeInterval(2.0, target: self, select...
3
1,127
Can't scroll ListView properly
<p>I have a ListView in a fragment containing data that is download on the net. I keep the data in the cache so I'm able to display informations until the request to the server is finished.</p> <p>The problem is when I scroll down the listview start to scroll down and after few second it goes to the top automatically,...
3
2,640
Stopping jquery running after event is handled
<p>I have a radio button which launch a jquery script on click. On click I render a form where I want the user to enter a comment. Evrything works fine, event is detected and form is rendered but when I click on the form field, it seems that it runs again my jquery script and I get the undefined variable.</p> <p>...
3
1,295
smarty template getting blank after entering js validation
<p>pinterest js </p> <pre><code>&lt;script type="text/javascript"&gt; (function(d){ var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT'); p.type = 'text/javascript'; p.async = true; p.src = '//assets.pinterest.com/js/pinit.js'; f.parentNode.insertBefore(p, f); }(document)); &lt;/script&...
3
3,269
How to improve depth segmentation of Lego blocks
<h4>Input</h4> <p>I have the following <strong>depth images</strong> of type <code>uint16</code> obtained from <strong>Intel realsense <a href="https://www.intelrealsense.com/download/7691" rel="nofollow noreferrer">L515</a></strong> camera which is supposed to have an <code>Avg Depth Accuracy&lt; 5mm @ 1m</code>.</p>...
3
3,307
Not able to write the CSV File in a Flask app
<p>I have created this simple application on flask where a user can upload a csv file containing names and it will return a new csv file which will be having only those names which starts with S or M. When I click on upload it should download the new file but I don't know where I am getting wrong. Probably in writing ...
3
2,218
select file browser is not working for input type file using Jquery or javascript
<p>I am facing one issue. The file select explorer is closing after 3 times click using jquery. I am explaining my code below.</p> <p><strong>header.html:</strong></p> <pre><code>$(document).on('click', '.browse', function(){ var file = $(this).parent().parent().parent().find('.file'); file.trigger('click'); ...
3
1,103
how to delete a recycler view item in sqlite database
<p>1)in res a layout with two text view and one button and i want to delete an item of recycler view by clicking on button can u help me please in adapter the </p> <pre><code>holder.delete.setOnclicklistener{ // what to write here } </code></pre> <p>2) I have written the delete function in sqlite ...
3
4,996
AttributeError: 'list' object has no attribute 'A' in my python heap sort
<pre><code>import random, timeit class Heap: def _init_(self,L=[]): self.A=L def _str_(self): return str(self.A) def _len_(self): return len(self.A) def heapify_down(self,k,n): while 2*k + 1&lt;n: L,R=2*k + 1, 2*k + 2 if L &lt; n and self.A[L]&gt; se...
3
1,042
How to fix issues with comparing text of 2 files and comparing
<p>I have a script that gets the list of distribution switches from device manager "Master-EDR-List.txt". It then grabs another txt file from a different server "New-EDR-List.txt". Master list is pretty static until New list has additional EDRs that Master list is missing.</p> <p>I would like to compare these 2 file...
3
1,469
Weird behavior while parsing Json with a DoFn
<p>I am trying to parse some Json that I have stored in google cloud storage. I am using apache beam to create a pipeline that reads the json stored and then writes it to a cloud sql database. I have encounter some weird behavior while writing my parse method. </p> <p>Here is my Json:</p> <pre><code> [{ ...
3
1,121
Android photo gallery
<p>I have created an application with fragments and on gallery fragment whenever I open that fragment it gets closed.</p> <p>following is the code:</p> <p>.xml:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:la...
3
2,443
LLVM/Clang generating useless-looking instructions
<p>If I write this code:</p> <pre><code>void loop1(int N, double* R, double* A, double* B) { for (int i = 0; i &lt; N; i += 1) { R[i] = A[i] + B[i]; } } </code></pre> <p>Clang (<code>-O3</code>) generates the following x64 ASM as part of an unrolled version of the loop (<a href="https://godbolt.org/z/...
3
1,256
Android SQLite (1) no such table: viewing error
<p>I know there are a few answers out for this issue but i still can't seem to get mine to work. i get error message;</p> <pre><code>04-17 11:35:35.086 2437-2437/com.chris.cv10aajproject E/SQLiteLog﹕ (1) AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY 04-17 11:35:35.090 2437-2437/com.chris.cv10aajproj...
3
1,118
Runtime error upon running compiled Groovy code in IntelliJ IDEA 13
<p>I keep getting this error when I attempt to run compiled Groovy code in IntelliJ IDEA 13:</p> <pre><code>/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/bin/java -Didea.launcher.port=7539 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13.app/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Jav...
3
2,897
Is storing pyQT widgets in a list bad form?
<p>So I am building I program that manages a bunch of custom slider widgets. Currently, I have a slider_container(class) that holds a list of slider objects(class). These slider objects are then inserted into the layout in the main window. This has been working well while I was only adding and moving the position of th...
3
1,421
ListView, cursors and null sets
<p>I will go straight to the point. I have 1 class where I have 6 buttons. Each button saves to an SQLiteDatabase some <strong>parameters</strong> and then it launches an Activity. </p> <p>The new Activity takes the <strong>parameters</strong> and queries the database to pull data accordingly. When the activity launch...
3
3,421
MIME type error for local CSS or JS prevents loading custom styles when working with NodeJs
<p>I am racking my brain the whole week on this error now! My plan was to create a simple <strong>'send email from nodejs' application</strong>. The problem that I ran into was, a <strong>mime-type error</strong> for my <strong>style.css</strong>. The error says it's is in a <strong>text/html</strong> format. I started...
3
1,311
onLongPressClickListner Child Swipe not showing in android
<p>Hi in the below code cardview long press want to disallow the parent touch event and want to show the swipe edit and share option want to pullout from right.Below code contains a cardview and right side contains edit/share.</p> <p>When I am long press the cardview from parent I was not allowed horizontal scrollview...
3
12,337
Getting org.springframework.beans.NotWritablePropertyException
<p>I am currently learning Spring. I am in dependency injection topic and I am trying to practice injecting Reference obejct into setters through DI. But I am facing a issue.</p> <p>Client.java</p> <pre><code>package bean.driver; import bean.Car; import org.springframework.context.ApplicationContext; import org.spring...
3
4,100
How can I individually address lines in an html table?
<p>I have here my small table where I can first choose the gender from a dropdown list. This selection then limits the choices of the second dropdown list. </p> <p>Now the problem is, if I select for example "Männlich" at the first entry and add a second line over the button, I have there in the second dropdown list t...
3
3,663
Cardview doesn't have any affect on items
<p>I'm trying to make my RecyclerView prettier, so I added a CardView. However, I don't see any changes when I ran the app, the UI looks like as if there's no CardView at all - there is not separation between the items. Can you please suggest what's wrong with my code here?</p> <p>This is my list_item.xml:</p> <pre><...
3
1,419
Choppy / glitchy CSS animations with toggleClass
<p>I'm wondering if there are any ways in which I can optimise the CSS animations on my website. I have two buttons in my header that activate a toggleClass animation on either side of the page, bringing out a sliding menu that pushes the rest of the page with it.</p> <p>Here's an example: <a href="https://jsfiddle.ne...
3
1,830
Java Factory pattern - How to prevent anonymous subclasses
<p>I'm doing a school assignment where I have to implement the Factory pattern. I have come a long way, but there is one last thing I have not been able to get working. </p> <p>I have the following classes:</p> <pre><code>//Human.java package human; public abstract class Human{ public static Human create(String n...
3
1,139
Using 2-dimensional or 1-dimensional, which is fastest?
<p>I've been searching the web (and stackoverflow) for opinions on whether or not 1-dimensional arrays (or vectors) are faster than their 2-dimensional counterparts. And the general conclusion seems to be that 1-dimensional are the fastest. However, I wrote a short test program to see for myself, and it shows that 2-di...
3
3,379
Angular Unit Test Jasmine Spy error
<p>The following controller is getting a TypeError: 'undefined' is not a function (evaluating <code>sessionService.getCurrentPlace()</code>). I have a Mock Service with that method being spied on. The other method on the mock service works fine. I've tried <code>.AndReturns({..})</code> on the spy as well as <code>....
3
2,410
Jquery slider - stop sliding right
<p>I have made a carousel slider with jquery, where I have some products. I want the slider to stop sliding when I reach the last product, what I was able to do so far is to stop the sliding when the last product is not visible, but thats not what I need. It should stop when the last product is visible, How can I achie...
3
1,456
Input 0 of layer gru is incompatible with the layer: expected ndim=3, found ndim=2
<p>I'm using TF 2.5 and I'm punctually following the tutorial on <a href="https://www.tensorflow.org/text/tutorials/text_generation" rel="nofollow noreferrer">https://www.tensorflow.org/text/tutorials/text_generation</a> just to get some confidence.</p> <p>But I don't understand why after building the model I get an in...
3
1,061
How can i get formatted HTML of selected part instead of simple text through this JS
<p>How can i get formatted HTML of selected part instead of simple text</p> <p>Here is a script that add content to <code>&lt;div class=&quot;container&quot;&gt; &lt;/div&gt; </code> when we select some text and press <kbd>Get Selection</kbd> button, with every time class <code>mySlides</code> Okay</p> <p>But here is ...
3
1,519
Sockets Python | chatting server multiple clients
<p>i am trying to implement a TLS secured socket server in python, and i want multiple clients to connect to the server and talk to each other,</p> <p>what i would like to do is that each client connecting can receive messages sent by other clients also,</p> <p><strong>Server code:</strong></p> <pre><code>import socket...
3
2,814
Visual Studio linker error: object specified more than once
<p>I'm getting 238 LNK2005 errors and I have no idea what to do. They're all similar to this one:</p> <blockquote> <p>Error LNK2005 &quot;class wxString binary::add&quot; (?add@binary@@3VwxString@@A) already defined in app.obj C:\Users\giorg\Desktop\Visual Studio\wxWidgetsTest\wxWidgetsTest\expandMenu.obj 1 ikeCalc...
3
1,919
Submenu hides on hover
<p>I have HTML Menu and Submenu. For some reason, the submenu hides when I' am hovering over them. When I hover on the parent menu, submenu shows and as soon as am hovering over the submenu it hides.</p> <p><strong>HTML</strong></p> <pre><code>&lt;div id="main-menu"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#" class...
3
2,079
java.lang.NullPointerException at com.d4a.tobias.Book.onCreateView
<p>Hello I am working on a app and when I test it I get a crash on startup </p> <p>here's my logcat:</p> <pre><code> 11-29 00:16:19.582: E/memtrack(1549): Couldn't load memtrack module (No such file or directory) 11-29 00:16:19.582: E/android.os.Debug(1549): failed to load memtrack module: -2 11-29 00:16:28.782: E...
3
7,695
addTab() not adding any TabLayout.Tab on callback
<p>When adding tabs on the OnCreate theres no problem, tabs are added normally, yet when adding tabs on the onChange callBack of the LiveDataObserver..nothing happens.</p> <p>I have a ViewPager with 2 Fragments, inside the 2nd Fragment I have a second Viewpgaer with another 2 Fragemnts, this second vp has a com.google...
3
4,449
JSF component closing-off table cell
<p>I'm trying to nest a table inside a h:panelGrid component, and h:selectOneMenu is screwing-up the formatting by closing off the cell it appears within and creating a new (and unwanted) row.</p> <p>My code looks something like this:</p> <pre><code>&lt;h:panelGrid columns="2"&gt; [Other rows that work just fine]...
3
1,790
How can handle in better way the handler message from service to fragment?
<p>For communicate from started service to fragment I did in this way :</p> <p><strong>In the service body</strong> </p> <pre><code> Handler handler; public synchronized void setHandler(Handler h) { handler = h; } protected synchronized void sendMessage(int arg1) { Message m = handler.obtainMessage(); ...
3
1,292
Creating empty data frame of varying length to store results from for loop
<p>I have three variables in my dataset, as State, Year and Serotype. The code I have below is to aggregate the line listed data. I have created empty data frames to store results of for loop for Agg.Res 1 2..and so on. My problem is How do I go about making empty data frames to store results for different years? I wan...
3
1,069
How to display view in vue js based on object data?
<p>I have a problem with javascript. I have data as contained in variable datas. I want to display data from the data variable in a table form as below.</p> <p><a href="https://i.stack.imgur.com/ygUDF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ygUDF.png" alt="enter image description here" /></a>...
3
3,263
Merged auto growing rows
<p>At work, I have designed a UI using VueJS, CSS Grid and <code>display: contents</code>, and I'm having a little trouble with rows. There are two display modes, the one below with only totals (&quot;Heures pointées&quot;)</p> <p><a href="https://i.stack.imgur.com/ggj28.png" rel="nofollow noreferrer"><img src="https:/...
3
3,224
Unable to click on the link though not inside any frame or iframe or window
<p>I am unable to click on the linkText "Merchandising" which is present on the left hand top corner of webpage. I tried the below xpath</p> <p>1) <code>//a[@id='link-MerchandisingDashboard']</code></p> <p>2) <code>//a[contains(text(), 'Merchandising')]</code></p> <p>Don't know where I am going wrong though its not...
3
15,664
Grouping results from stored procedure as JSON - Azure SQL
<p>I have a Stored proc returning data in roughly this format</p> <pre><code>ID | Field1 | Field2 | Group | Description ------------------------------------------------ 1 | A | A | g1 | g1A description 1 | A | A | g2 | g2A description 2 | B | B | g1 | g1B description 2 ...
3
1,357
How to fix /wp/ redirect to /blog/ permalink
<p>I'm a new user and frankly, I haven't got a clue what I'm doing at this point. I'm figuring things out slowly but surely and this site has so far been a gold mine for me... So, let's see if we can make this work.</p> <p>So, my website has a WordPress installation within the root directory to allow me to have a blog...
3
1,467
TSQL Conditional Join Statement?
<p>I am working on a dynamic query that allows me to define field types in a database table and then pull a list of user defined fields that were selected during the creation of a dashboard along with the values that were chosen for each of the logic operators.</p> <p>For example, use can choose <code>field1</code> wh...
3
5,138
Compiler error with std::map and dense_hash_map in GTEST
<p>I am getting this error when I try to use my project/module in my GOOGLE TESTS.</p> <pre><code>gcc.compile.c++ bin/gcc-4.8.3/debug/link-static/gmock_test.o In file included from /usr/include/c++/4.8.2/tr1/functional:39:0, from /usr/local/include/google/dense_hash_map:106, from saga...
3
3,689
JAVA: Runtime Exception (I think that's what i need to use)
<p>Ok, I need my program to validate user entered data. If that data is invalid, the program needs to skip almost all of my code and get to the end of my while loop to ask if the user would like to proceed with calculating another loan. My professor has not provided us with a method of doing this and all the informat...
3
2,565
Problem with left_join or How to convert character (in scientific form) to character (to numeric form)?
<p>I want to join two DFs by couple of variables. All of variables have to remain <code>as.character</code>. However, one is converted to scientific notation. Question is, how do I transform <code>data2$ID_Value</code> to character to &quot;XX00000000&quot; form? Converting to numeric and joining works, but I have to p...
3
1,956
Uncaught ReferenceError: __webpack_require__ is not defined Deploying to server
<p>I am getting this error when logging into our dev site. This is a part of our migration from .NET framework 4.5.2 to 4.7.2. Though I do not think that has much to do with it. If we publish straight from VS, the page loads fine. If it uses our pipeline, or we did not clear our dirs beforehand, we get this error (in t...
3
2,861
POST request using specific SSL certificate only works until log off or restart of PC
<ol> <li><p><strong>My task goes like this:</strong> I need to perform POST requests over HTTPS using a certain SSL certificate to submit some information to an external API.</p> </li> <li><p><strong>What I did:</strong> I installed the SSL certificate in the Local Machine certificate's store using the password I was g...
3
2,177
Why is select option not displayed in select input field?
<p>I am working with <code>react.js</code>, the problem is there that I have a <code>select</code> input field, I get data from <code>Api</code> and set to it's <code>option</code>, but when I want to select the <code>second option</code> or anything else, it does not select, just selects the first one. When I send dat...
3
1,291
DataSource.Error: Microsoft SQL: A conversão de um tipo de dados nvarchar em um tipo de dados datetime resultou em um valor fora do intervalo
<p><a href="https://i.stack.imgur.com/0JrpW.png" rel="nofollow noreferrer">enter image description here</a>(Problemas de conversão de data de dados do tipo nvarchar / Issue with data conversion for nvarchar type).</p> <p>DataSource.Error: Microsoft SQL: A conversão de um tipo de dados nvarchar em um tipo de dados date...
3
1,535
Should nested resources and strong params use 'model' or 'model_attributes' and why? (unpermitted parameter: model)
<p>I have a nested form that creates an <code>@address</code> with each successful <code>@purchase</code>. </p> <p>My schema and model associations are set up so that <code>Purchase</code> holds the foreign keys for everything else:</p> <p><strong>address.rb</strong></p> <pre><code>belongs_to :user has_many :purchas...
3
1,500
how to create a dictionary with list of dictionaries as values from a list of dictionaries
<p>I have this sample list of dictionaries:</p> <pre><code>[ { &quot;name&quot;: &quot;like father&quot;, &quot;director&quot;: &quot;Ajun kun&quot;, &quot;edited&quot;: &quot;2014-12-20T21:23:49.867000Z&quot;, &quot;similar_movies&quot;: [ &quot;http://movies.dev/api/films/1/&quot;, &...
3
1,096
How do I break up and display only 1 of three variants at a time?
<p>I'm looking to build a multi-step product selector using tabs. I'm looking to display on variant per tab but can't find a way to break up variants to display them individually.</p> <p>I have tried posting the code bellow multiple times (one in each tab) but this makes each selection "stuck". Yes I know this would o...
3
12,646
Python Parallel-process dictionary translations in a single text file
<p>I have climate sensor data that is generated like this from a sensor hub and stored in a text file periodically:</p> <pre><code>{"Time":1541203508.45,"Tc":25.4,"Hp":33} {"Time":1541203508.45,"Tc":25.2,"Hp":32} {"Time":1541203508.45,"Tc":25.1,"Hp":31} {"Time":1541203508.45,"Tc":25.2,"Hp":33} </code></pre> <p>I'm do...
3
1,083
HTML 5 Radio Buttons Required Message Wrong Position
<p>I am trying to make two groups of radio buttons required. When I test it, it shows up on the far left rather than under the buttons. I have tried removing the materialize grid around it, and still nothing. <a href="https://i.stack.imgur.com/GOT8h.png" rel="nofollow noreferrer">Here is what it looks like</a></p> <p>...
3
1,093
How to add different days on one of the following countdown time function?
<p>the following javascript code contains 3 functions which 2 of it counts times daily and <code>CSW Timer</code> occurs once every 7 days (Sunday), however, I want to make <code>BDWTimer()</code> not everyday but only Wednesday (3) and Friday(5). I am struggling how to do that since at this moment it's only everyday f...
3
3,177
What function argument property allows for this odd overloading?
<p>I'm not sure what exactly this kind of parameter list behavior is called, so it's difficult to search for more info. I will draw an example:<br> <pre><code>function echoThis( $a=NULL, $b=NULL, $c=NULL ) { if( $a != NULL ) echo "A is not NULL; it is: " . $a . "\n"; if( $b != NULL ) echo ...
3
1,086
CakePHP 3 - Can't return proper json when debug mode = true
<p>I'm new to stackoverflow, and I've just started to play around with CakePHP 3.</p> <p>I've run into a weird problem:</p> <p>I'm sending an ajax-request (form submit) to the controller, and I expect to get a proper json-response back. It works fine when I set debug mode to false in config/app.php, but when it's set...
3
1,239
How to set a seperate bootstrap server to a DLT of a binding
<p>I need to send consumed invalid messages into a DLT but in a separate bootstrap server. I currently have this config:</p> <pre><code>spring.cloud.stream.binders.some-kafka-binder.type=kafka spring.cloud.stream.binders.some-kafka-binder.environment.spring.cloud.stream.kafka.binder.brokers=localhost:29092 spring.clou...
3
1,089
Drools - Error creating field accessor for TypeDeclaration
<p>I created a simple project using Drools and Java basing on <a href="http://www.tutorialspoint.com/drools/drools_sample_drools_program.htm" rel="nofollow noreferrer">this tutorial</a>. It worked perfectly, so I adapted it to what I wanted to do. My DRL files use mvel dialect (instead of Java dialect) and initializing...
3
1,772
Make VBA project run more efficient
<p>I am a very new coder in VBA (and in general). I have managed to write some code to check a coordinate file with value in an Excel sheet, and use the coordinate to verify the value in the relevant file coordinate location (the range specified by the coordinate file). My problem is that there are more than 10000 line...
3
1,837