title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
AppbarLayout Height & Scrolling
<p>I am using CoordinatorLayout, AppBarLayout and CollapsingToolbarLayout. I have set <code>layout_scrollFlags="scroll|enterAlwaysCollapsed"</code>. In NestedScrollView, I have LinearLayout which height vary based on TextView Content size.</p> <p><strong>Problem:</strong> When I have big content in TextView say 100 li...
1
1,190
Error with h2o.predict in R
<p>I am getting an error when trying to create deep learning predictions with h2o in R. The error occurs for about one third of predictions with the command h2o.predict. Here is the model setup:</p> <pre><code>localH2O = h2o.init(ip = "localhost", port = 54321, startH2O = TRUE,max_mem_size='20g',nthreads=6) model &lt;...
1
2,588
CSS Transition Scale / Opacity Hover Compatibility
<p>I have two images side by side. The goal is when you hover over them, they expand and fade in slowly (while contained in a div). When you mouse out of the hover area, they ease back into their original state. </p> <p>This works great in Firefox. In Chrome and Safari, when you leave the hover area, the opacity snaps...
1
1,189
Show pop up after submit form
<p>can anyone help me, I want the result of php to be displayed in pop up form on the same html page, how can that do? this is my code thank you all for help</p> <p>index.html</p> <pre><code> &lt;!-- Start Contact Form --&gt; &lt;div class="triangle"&gt;&lt;/div&gt; &lt;div id="cform" class="container"...
1
3,514
undefined is not an object (evaluating 'RCTWebSockerManager.connect') -- React Native
<p>I've been following the <a href="https://facebook.github.io/react-native/docs/embedded-app-ios.html#content" rel="nofollow noreferrer">guide</a> on how to integrate an existing app with react native.</p> <p>I've taken some liberties on the IOS side of things per recommendation of our IOS guy. When my view loads, I ...
1
1,449
Strategy Pattern or Interface?
<p>I'm looking to abstract a helper method. The method needs to be able to take in an object, do things with it depending on the type of object, and return a value. Would it be better to do something like this:</p> <pre><code>interface ICanDo { string DoSomething(); } string DoThings(ICanDo mything) { return mythin...
1
1,386
Div overlapping another div -Bootstrap
<p>First of all Im very new to web development and bootstrap.</p> <p>Im trying the page to be responsive, but when the browser is resized, divs are overlapping.</p> <ul> <li>here is a pic of zoomed out and zoomed in page --- (<a href="http://imgur.com/a/sPlsf" rel="nofollow">http://imgur.com/a/sPlsf</a>)</li> </ul> ...
1
1,565
Restarting GStreamer Pipeline in Python on EOS
<p>I am working on a Python script running on RPi3, and using gstreamer to connect to RTSP feed of my IP Camera, and serve decoded H264 frames to my Python script.</p> <p>Here is the gstreamear pipeline used to get frames from camera:</p> <pre><code>rtspsrc location=rtsp://ip:port/path ! rtph264depay ! h264parse ! de...
1
1,048
Espresso won't find View when included with androidTestCompile
<p>This is darn strange. I have an <code>Activity</code> with a <code>ViewPager</code> that hosts a couple of of <code>Fragment</code>s, the first one has a <code>RadioButton</code> with the id <code>android:id="@+id/backjudgeRadionButton"</code>. </p> <p>I have an Espresso test that looks like this: </p> <pre><code...
1
2,367
Pan, Zoom and Scale a custom View for Canvas drawing in Android
<p>I'm working on a drawing app, where the user can pan &amp; zoom to a specific portion of the screen and start drawing with zoom applied. To be more specific, I'm looking for a way to implement zoom, pinch &amp; pan gesture in Canvas (horizontal and vertical scrolling with moveable x, y coordinates).</p> <p>Right no...
1
4,044
Bootstrap navbar search button
<p>I am trying to implement search menu on navbar in following way. There is two design, which is one fore screen &lt; 767px and another one above 767px.</p> <p>Basically, I am able to expand the search bar but the position of the expanded search bar is not display correctly.</p> <p><a href="https://i.stack.imgur.com...
1
1,564
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState,FragmentTabHost
<p>MainActivity have a FragmentTabHost in it ,and five Fragments add to this FragmentTabHost. Here is the init code</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { mFragmentManager = getSupportFragmentManager(); mTabHost = (FragmentTabHost) findViewById(android.R.id.tabhost); ...
1
1,952
Android, LinearLayout won't scroll
<p>I am relatively new to android programing. Can anybody tell me why my <code>ScrollView</code> won't scroll?</p> <p>My activity has implemented <code>OnGestureListener</code> for getting some touch information. But, I tried to disable <code>onGestureListener</code> and it still won't work. </p> <p>It works outside ...
1
2,366
Run javascript after form submission in update panel?
<p>This is driving me crazy! I have read at least 5 questions on here closely related to my problem, and probably 5 or so more pages just from googling. I just don't get it.</p> <p>I am trying to have a jqueryui dialog come up after a user fills out a form saying 'registration submitted' and then redirecting to anothe...
1
1,592
Access variable from one role in another role in an Ansible playbook with multiple hosts
<p>I'm using the latest version of Ansible, and I am trying to use a default variable in <code>role-one</code> used on host <code>one</code>, in <code>role-two</code>, used on host <code>two</code>, but I can't get it to work.</p> <p>Nothing I have found in the documentation or on StackOverflow has really helped. I'm n...
1
1,072
Docker compose with two files
<p>I have two <code>docker-compose.yml</code> files in separate folders.</p> <p>I'd like to run the two of them in the same command, in order for the services from both to be able to talk to each other.</p> <p>However, when I go to the lowest common path ancestor and try to run <code>docker-compose</code> with both f...
1
1,152
ext.net combo box not displaying an initial value
<p>I need to add combobox fields to a gridpanel. I added combo boxes, but they are not showing the original selection. When I click on the dropdown, I get all the dropdown values correctly and can select a value for a field. The problen with the initial selection. I'm new to ext.net and I'm suspecting that something...
1
3,881
All Row has a Delete Button in Gridview
<p>I have a simple page like this. (<code>EKLE = ADD</code>, <code>SİL = DELETE</code>)</p> <p><img src="https://i.stack.imgur.com/NU6Fb.jpg" alt="enter image description here"></p> <p>And my AVUKAT Table like this.</p> <p><img src="https://i.stack.imgur.com/8DbvB.jpg" alt="enter image description here"></p> <p>Sim...
1
1,293
Draw line between two Views in Android
<p>I am trying to draw line between two Views in RelativeLayout but unable to do this.</p> <pre><code> public class CustomRelativeLayout extends RelativeLayout { private Context mContext; private ImageButtonCustom[] imageButtonCustoms = new ImageButtonCustom[3]; private Paint paint; CustomRelativeL...
1
2,242
How can I get `cmake` work in JetBrains CLion to compile Emscripten/WebAssembly?
<p>I am trying to properly setup <strong>JetBrains CLion 2019.1</strong> to build <em>WebAssembly</em> from <em>C</em> source code. I've tried almost everything, however, nothing works. I do not get any <strong>WebAssembly</strong> build. All I get is:</p> <ul> <li><code>WasmText.js</code></li> <li><code>WasmTest.js....
1
11,206
Liferay 7, osgi module for mvc portlet doesnt find dependencies
<p>I've start the new module for Liferay 7 GA1 using</p> <pre><code>blade create -t portlet -p com.liferay.docs.portlet -c MyPortlet my-portlet-project </code></pre> <p>This is my gradle.build</p> <pre><code>dependencies { compile group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0" ...
1
1,139
How to make a checkbox from information found in DataBase?
<p>I have a table in DataBase, and I want to make a table. Now it makes no sense that I will do a lot of CheckBox and show you only some of them according to the information in the table. I heard about the <a href="/questions/tagged/listview" class="post-tag" title="show questions tagged &#39;listview&#39;" rel="tag">l...
1
2,372
Prestashop 1.7 template not pass variable
<p>I have a problem that I can not solve. in prestashop 1.7 I have a tpl file called product.tpl where inside, besides the various data, I call a file with the following code:</p> <pre><code>&lt;div class="product-actions"&gt; {block name='product_buy'} &lt;form action="{$urls.pages.cart}" method...
1
3,825
SQL Server add job agent T-SQL script issue
<p>I am using SQL Server 2008 Enterprise. I have created a very simple test SQL Server Agent job which just print out a string. And then I add a schedule to let the job run once a day.</p> <p>Then I select from SQL Server Management Studio => Jobs => Select the test job => Script Job as => Drop and Create To, here is ...
1
1,704
Tomcat Thread Dump - Possible Stuck Thread
<p>I ran three thread dumps, 10 seconds apart, on a production server running Tomcat. I found that the same thread (same thread id) appears in all three thread dumps and is doing exactly the same thing - processing a JSP page. Does this mean it is stuck? Or could it be that the same thread from the Tomcat thread pool k...
1
2,357
How can I move a point and print the new position?
<p>I'm new to Java and I received an assignment that asks me to write a class called <code>PointerTester</code> that has two Points as instance variables. I need to initialize one of these at coordinate (0.0,0.0) and one at (10.0,12.0). Then I need to move each point by +2.0 in x and -3.0 in Y, query the coordinates of...
1
1,093
Alamofire 5 (Beta 6): Parameters of PUT Request do not arrive in Flask-Restful
<p><strong>UPDATE</strong> For me the Problem got fixed as soon as I was putting "encoding: URLEncoding(destination: .queryString)" in my request. Maybe this helps somebody else. <a href="https://stackoverflow.com/questions/43282281/how-to-add-alamofire-url-parameters">link</a> </p> <p>I struggled the whole day to fi...
1
1,762
How can I put a scalebar and a north arrow on the map (ggplot)?
<p>I'm trying to put a scalebar and a north arrow using the package 'ggsn'. But I recive a error message: </p> <p>Error: annotation_custom only works with Cartesian coordinates</p> <p>In addition: Warning messages:</p> <p>1: In min(data$long) : no non-missing arguments to min; returning Inf</p> <p>2: In max(data$lo...
1
2,296
Django startapp workflow with docker
<p>I am confused with how to work with Django apps (create/using) when using Docker. Some of the tutorials suggest using command startapp after starting the web docker container (I'm using docker-compose to up the containers). But since the files are created inside that container, how do I go about adding code to that ...
1
1,548
must implement OnFragmentInteractionListener error in Android Studio
<p>I want to make an app with both bottom navigation and tab in a single activity. But when I am trying to put the tab inside the navigation fragment one exception comes. <a href="https://i.stack.imgur.com/8culq.png" rel="nofollow noreferrer">I want to design like this with two toolbars one is bottom navigation and oth...
1
5,447
JsonArray to Kotlin data class using Retrofit and GsonConverterFactory(Expected BEGIN_OBJECT but was BEGIN_ARRAY)
<p>I'm trying to load quotesJson file from github(<a href="https://github.com/JamesFT/Database-Quotes-JSON/blob/master/quotes.json" rel="nofollow noreferrer">https://github.com/JamesFT/Database-Quotes-JSON/blob/master/quotes.json</a>). I'm new to retrofit and all of this, so I just tried following and understanding a t...
1
1,309
how to open a popup window from iframe
<p>I am trying to display a popup window from an iframe i have two jsp files main.jsp</p> <pre><code>&lt;form name="searchform"&gt; Search for :&lt;input type="text" id="search"/&gt; &lt;/form&gt; &lt;iframe name="popup" src="popup.jsp" height="0" width="0" &gt;&lt;/iframe&gt; </code></pre> <p...
1
1,328
Rails - "Filter chain halted as :authorize rendered or redirected" when I execute extended function
<p>I'm trying to extend the repository controller with a new function following this article: <a href="http://www.redmine.org/projects/redmine/wiki/Plugin_Internals" rel="nofollow">http://www.redmine.org/projects/redmine/wiki/Plugin_Internals</a></p> <p>All seems to work right, but when I click on the button which cal...
1
1,102
How to pass actions down to the components in redux
<p>I want to fire an action down in my component. This is a presentation component and need not be redux aware. Router implementation is done using react-router-redux.</p> <p>main.js:</p> <pre class="lang-jsx prettyprint-override"><code>let store = createStore(rootReducer) const history = syncHistoryWithStore(hash...
1
2,836
Get full address of clicked marker in google maps
<p>Can you please help me out with <em>google maps</em>.</p> <p>I need to get the <strong>full address of the clicked marker and display the address details in ASP label controls</strong>. In fact I am showing only one marker at a time.</p> <p>E.g Stand No or House Number : 15 Street Name: St Joseph Street Suburb: S...
1
1,042
Trying to Insert data to multiple tables in single query in php
<p>Im trying to add data to multiple tables using a single query. <a href="https://i.stack.imgur.com/GxKDf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GxKDf.png" alt="enter image description here"></a> These two tables are contacts and address. I think the issue is with my address table. IS it a...
1
1,699
Passing LPSTR between Win32 DLL and C# using MethodInfo.Invoke
<p>I am working on a project that needs to be able to call functions in Win32 DLLs. However, the name of the DLL, function, and data types of all arguments and return type are not known at compile time, so using DLLImport is not an option. Basically, this routine could feasibly call any function in any DLL and pass in ...
1
5,500
Error [INSTALL_FAILED_DEXOPT] in Android 5.1
<p>Before explaining why i had to post this question, let me explain that i have already gone trough most of the other answers in the list to no avail.</p> <p>The issue I am getting during installation of the APK (via adb.exe on a real device) is [INSTALL_FAILED_DEXOPT] with the following output from LogCat:</p> <p>I...
1
1,200
Make object created inside one reactive object available to another in shiny
<p>I have a shiny app in which I define an object based on sliders and create a <code>data.frame</code> from it. This gets used to create a plot, below which I'd like to include a summary table. My issue is that the plot must be defined inside of a reactive object to update based on the sliders, but I found that when I...
1
1,028
C programming question on the implementation of a hash table
<p>I have a C programming question on the implementation of a hash table. I have implemented the hash table for storing some strings. I am having a problem while dealing with hash collisons. I am following a chaining linked-list approach to overcome the problem but, somehow, my code is behaving differently. I am not ab...
1
1,437
php utf-8 decode from xml returns question marks
<p>I have some problems using xml. I know this is a comon question, but the answers i found didn't fix my problem. The problem is that when I add é or ä or another special char to my xml file, with php domdocument, it saves the é as xE9 and the ä as xE4. I don't know if this is ok but when I want to show the output it ...
1
1,038
set visibility not works imageview
<p>i have java who change visibility of imageview if value on mysql is 1.. so on debbug i see that my value is good and it must change setvisibility but it don't.</p> <p>here my java file</p> <pre><code>package com.example.androidhive; import java.util.ArrayList; import java.util.HashMap; import java.util.List; imp...
1
5,340
iOS 4: video quality with AVAsset based application
<p>I'm trying to create a simple video application(loading existing video file from ios 4 device, edit it using direct pixel access and save under a different name). </p> <p>I managed to load, edit and save my movie file on real device(ipod 4g). The only problem that I have is related to movie quality(original vs edit...
1
1,456
localhost:8080/solr/browse gives a lazy loading error
<p>I'm new to Solr, just installed Tomcat6 and Solr 3.6.1 on CentOS. I managed to add some data from my MySQL table and use the exampledoc's xml with <code>http://localhost:8080/solr/update</code> to populate the index with sample data. I am using an edited version of <code>solrconfig.xml</code> from the <code>examples...
1
2,315
Python: SocketServer closes TCP connection unexpectedly
<p>I would like to implement a TCP/IP network client application that sends requests to a Python <a href="https://docs.python.org/2/library/socketserver.html" rel="nofollow noreferrer">SocketServer</a> and expects responses in return. I have started out with the official Python <a href="https://docs.python.org/2/librar...
1
1,962
Maven Findbugs not producing reports in site lifecycle
<p>I'm trying to create the Findbugs HTML report for the site reports. I finally got Findbugs to actually run (before it would skip) because I had to include the goal <code>findbugs</code> in the <code>&lt;build&gt;</code> phase under the <code>find bugs</code> report. However, the <code>findbugs.html</code> report is ...
1
3,947
Why can't I change the system default python the way Apple says I can?
<p>On this help page</p> <p><a href="http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/python.1.html" rel="noreferrer">http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/python.1.html</a></p> <p>Apple says:</p> <blockquote> <p>CHANGING THE DEFAULT ...
1
1,255
How to use StreamBuilder in Flutter To Stream Result from other StreamBuilder
<p>I'm Have two StreamBulder First Stream in collection("Users").document("PhoneNum") which is content name and photo . sec Stream in Collection("Users").document("PhoneNum").document("FrindList") which is content Frind PhoneNumber i want to make First Stream get all result of sec Stream which i wan't to build Stream...
1
2,096
RecyclerView items with very large empty space at bottom after updating to support library 23.2.1
<p>I have updated support library to 23.2.1 and after that recyclerview items are appearing with big empty space. Though I am using recyclerview and it's parent view height as WRAP_CONTENT. My App fetches 10 items data at a time from the server and while scrolling to up it shows a progressbar at the bottom so at that t...
1
3,170
How to group by hour in HANA
<p>I have the following table in HANA :</p> <pre><code>vehicle_id time roaming_time parking_time 1 Sep 01,2016 3:09:03 AM 3 9 2 Sep 01,2016 3:12:03 AM 6 8 1 Sep 01,2016 9:10:03 AM ...
1
1,180
How to add dependency JAR in java azure functions
<p>Is there a way to add third party jars to Azure functions using JAVA. I would need to have the json-simple jar and jackson-databind jars to be available for the function at run time. Right now, My code throws a runtime exception(ClassNotFound Exception) as the function is not able to reference the jar during runtim...
1
4,385
passing checked checkbox value from one page to another page in php
<p>How to send the check box value from one page to another page in PHP? The checkbox value is fetched from database. i need to send the checked values from one page to another. Am new to php .</p> <p>page1.php</p> <pre><code>&lt;form method="post" action="setupstates.php"&gt; &lt;table border=".3px" id='acttable'&...
1
1,100
Host replied with server error: java.lang.String cannot be cast to java.util.UUID
<p>I am using Datastax solution (DSE).</p> <p>Here is Cassandra model:</p> <pre><code>CREATE TABLE mykeyspace.mytable ( uid uuid, date_tsp timestamp, solr_query text, text_txt text, PRIMARY KEY (uid, date_tsp) ) </code></pre> <p>my solr schema.xml:</p> <pre><code>&lt;schema name="mytable" version="1.5"&gt; &lt;typ...
1
2,110
EntityFramework doesn't refresh navigation properties
<p>I've got a simple relationship</p> <p><img src="https://i.stack.imgur.com/Wkz4g.jpg" alt="enter image description here"></p> <p>I've created a simple app with the Model like the above one. Model in the application must be updated every time DB changes. I can get the latest changes by calling GetDBChanges Stored Pr...
1
2,001
How to get current battery percentage?
<p>I'm creating a battery monitor application, and I'm trying to display the current battery percentage. I have a broadcastreceiver, that is listening for...</p> <pre><code>&lt;action android:name="android.intent.action.BATTERY_CHANGED" /&gt; </code></pre> <p>In the receiver I have the following code.</p> <pre><cod...
1
1,962
Jacoco + JUnit 5.0 DynamicTest not working
<p>I am trying to generate a code coverage report using Jacoco with JUnit 5 and Spring Boot. And I"m trying to use the DynamicTest feature of JUnit 5. It runs successfully but the Dynamic Tests are not covered in the test coverage report generated by jacoco. Is JUnit 5 Dynamic Test not covered by Jacoco at the moment?<...
1
1,472
iTextSharp PageNumber but not on first and last pages
<p>I am trying to show the page number of my PDF pages, but I don`t want to show it on first and last pages, because they are covers.</p> <p>I use this code:</p> <pre><code>public class PDFPage : iTextSharp.text.pdf.PdfPageEventHelper { //I create a font object to use within my footer protected iTextSharp.tex...
1
1,144
asyncio awaitable object - basic example
<p>I'm trying to understand how to make an awaitable object. The definition from the <a href="https://www.python.org/dev/peps/pep-0492/#await-expression" rel="noreferrer">documentation</a> states:</p> <blockquote> <p>An object with an __await__ method returning an iterator.</p> </blockquote> <p>Guided by that defin...
1
1,112
Angular2 component with two-way binding Input not trigger the change event
<p>I have one paginator component to show the page list and detect when the user click to show another page and this component not change the page only must be trigger the event but I cannot watch the change event.</p> <p>The component has an two-way binding to announce the current page changed and work fine because I ...
1
1,370
Qt 5.2 / OpenCV 2.4.8 - Can’t open video files via VideoCapture
<p>I have a big problem that i can’t solve by myself. OpenCV itself works fine, but i’m not able to load videos. Here’s my code:</p> <p>PRO- File</p> <pre><code>QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = videoredux TEMPLATE = app INCLUDEPATH += C:/OpenCV/opencv_bin/install/includ...
1
1,425
How to response to all clients with websocket?
<p>I'm working on a small project with PHP-Websocket.</p> <p>The Server side is running with this <a href="https://github.com/ghedipunk/PHP-Websockets" rel="nofollow">https://github.com/ghedipunk/PHP-Websockets</a></p> <p><strong>Server side:</strong></p> <pre><code>require "PHP-Websockets/websockets.php"; class Se...
1
1,120
Using custom qemu binary with libvirt fails?
<p>I have a locally built qemu. I am using libvirt python API to defineXML. I get the error:</p> <blockquote> <p>libvirt: error : internal error: Child process (LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /home/deepti/testqemu/bin/qemu-system-arm -help) unexpected exit status 12...
1
1,535
Grade Quiz After Submit Button is Clicked
<p>I am attempting to write a simple ten question quiz. However, I am running into a problem; I cannot get the code for grading to run after the submit button is clicked. Can someone please help?</p> <p>HTML Code:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/x...
1
4,858
Creating Storyboard with DoubleAnimationUsingKeyFrames in Code Behind C#
<p>This is my XAML that works perfectly : </p> <pre><code>&lt;Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.c...
1
2,014
Post List of Data to API in flutter
<p>I am currently working on an API and I want to post a list of data to the API. this is an e-commerce example, so I would need to pass the multiple items in the cart as per the line no, line no will auto-increment. and order should be posted with the same order ID but with a different order number.</p> <p>This is wha...
1
1,516
Create folder structure in a Sharepoint online list
<p>I'm trying to create a folder structure under a list in Sharepoint online. I created a list called Shared1 according to this article:</p> <p><a href="http://blogs.technet.com/b/catastrophic_failure_joannav/archive/2013/10/23/how-to-create-a-custom-list-in-sharepoint-online-quot-w15-quot.aspx" rel="nofollow noreferr...
1
1,309
Load Data in Modal with Ajax from Spring Controller
<p>I just started with Spring two month ago and never did Ajax or JavaScript before. So i'm pretty new to this. What i want to do is load data from a GET Method in my Controller to populate this into a modal. I'm using ajax for this. Basicly i did what this guy <a href="https://qtzar.com/2017/03/24/ajax-and-thymeleaf-f...
1
4,929
How can we Convert JsonWriter To JsonObject in GSON
<p>Can someone guide me how to convert JsonWriter to JsonObject in GSON without any predefined object.</p> <pre><code>JsonWriter writer = new JsonWriter(new FileWriter("C:\\Users\\ravr\\Desktop\\outputJSONSChema.json")); writer.setIndent( " " ); writer.beginObject(); writer.name( "$schema" ...
1
1,454
JSON to Dictionary c#
<pre><code>[ { &quot;CRMNextFields&quot;: [ { &quot;FieldName&quot;: &quot;ActiveTime&quot;, &quot;CastRequired&quot;: &quot;False&quot;, &quot;DefaultValue&quot;: &quot;&quot;, &quot;Description&quot;: &quot;&quot;, &quot;FieldID&quot;: &quot;10001567&quot;, ...
1
1,613
Line 0: Parsing error: Cannot read property 'map' of undefined TypeScript React
<p>I was replacing an app created using React and JS with TypeScript using <code>ts migrate</code>, but the following error occurred in the file <code>App.tsx</code>.</p> <p><code>Line 0: Parsing error: Cannot read property 'map' of undefined</code></p> <p>The following is App.tsx</p> <pre><code>import React, { useStat...
1
2,780
how to retrieve multiple blob images from mysql using jsp
<p>I am trying to retrieve few blob images from mysql database using java. Now , the problem is that I'm able to get only one image at a time, the other images are not getting displayed.</p> <p>Below is my jsp code , where I'm doing this(just for demonstration purpose):</p> <pre><code> &lt;?xml version="1.0" encodi...
1
1,060
Excel VBA find last entry in an array (but not in the spreadsheet)
<p>I have some Excel code that assembles an array of file names, and then loops through and extracts some data from them. The data is not in the spreadsheet itself - it is completely assembled within VBA. New files are added each month, so the number will vary. </p> <p>My problem is that code that was working is no...
1
1,378
configuration system failed to initialize ==> unrecognized configuration section
<p>I don't even know if I can do what I'm attempting but I've imported forms from several projects and added references to those projects. Each project has a different set of connection strings and I'm trying to get them to coexist in App.config where I can filter by SECTION (Users select connections from comboboxes)...
1
1,408
Doing DOM Node-to-String transformation, but with namespace issues
<p>So we have an XML Document with custom namespaces. (The XML is generated by software we don't control. It's parsed by a namespace-<em>unaware</em> DOM parser; standard Java7SE/Xerces stuff, but also outside our effective control.) The input data looks like this:</p> <pre><code>&lt;?xml version="1.0" encoding="IS...
1
1,240
XML Parsing Error - Salesforce Bulk API using C#
<p>I'm attempting to <a href="http://www.salesforce.com/us/developer/docs/api_asynch/index_CSH.htm#asynch_api_quickstart_create_job.htm" rel="nofollow noreferrer">Create a Job</a> and <a href="http://www.salesforce.com/us/developer/docs/api_asynch/index_CSH.htm#asynch_api_quickstart_add_batch.htm" rel="nofollow norefer...
1
2,527
Flutter :- Keyboard causes layout to overflow on the bottom when on focus
<p>I have the following code for a layout.</p> <pre><code>@override Widget build(BuildContext context) { return Material( child: Scaffold( // resizeToAvoidBottomPadding: false, // resizeToAvoidBottomInset: false, appBar: PreferredSize( preferredSize: Size.fromHeight(70), child: AppBar(...
1
3,184
Didn't find class on path: DexPathList for KeyGenParameterSpec$Builder
<p>I am using KeyGenParameterSpec to define my key specification. When I run the application I get the below error in logs:</p> <blockquote> <p>Caused by: java.lang.ClassNotFoundException: Didn't find class "android.security.keystore.KeyGenParameterSpec$Builder" on path: DexPathList[[zip file "/data/app/com.rs...
1
6,942
Linker script .relocate section's first symbol, _srelocate, is incorrect (GCC Bug?)
<p><strong>Problem</strong></p> <p>My problem is that when I use the following script which is intended to place the Code into RAM the relocate section gets filled with bogus data.</p> <p><strong>My question is:</strong></p> <ol> <li><p>Why is the <code>_srelocate</code> symbol 4 bytes greater than the <code>_etext<...
1
3,447
Checking fillfactor setting for tables and indexes
<p>There is maybe some function to check the fillfactor for indexes and tables? I've tried already \d+ but have basic definition only, without fillfactor value:</p> <pre><code> Index "public.tab1_pkey" Column | Type | Definition | Storage --------+--------+------------+--------- id | bigint | id ...
1
1,396
heroku failed at the build script but heroku local web is fine
<p>I followed instructions, pushed repo to heroku and I find it crashed. I use heroku/nodejs as a buildpack. </p> <p>Procfile: </p> <pre><code>web: npm run build &amp;&amp; npm run heroku-server </code></pre> <p>Scripts:</p> <pre><code> "scripts": { "heroku-server": "cross-env SERVER_PROD_PORT=$PORT SERVER_PR...
1
1,416
Displaying Multiple Properties of a component in React
<p>I'm a beginner, learning React using this tutorial as a guide > <a href="http://survivejs.com/webpack_react/implementing_notes/" rel="nofollow">http://survivejs.com/webpack_react/implementing_notes/</a></p> <p>I'm having trouble understanding and figuring out how to make a shopping list with product name, sku, and ...
1
1,025
Qt Problems compiling using an extern variable
<p>I have a rellly long process that produces about 700 Mb of a txt log output file. This is very hard to manage. So I want to divide the output in multiple smaller log files. This is what my main.cpp looks like</p> <pre><code>#include &lt;QtGui/QApplication&gt; #include "mineedit.h" #include "logoutput.h" #include &l...
1
1,062
How to connect a Azure Functions 2.0 CosmosDB by input and output bindings?
<p>I'm having trouble figuring out how to access CosmosDB with in and out binding at the same time in at Azure Function 2.0.</p> <p>I can from one HttpTrigger function get a json object from my cosmosDB collection and from another HttpTrigger function, write the json object to the collection</p> <p>What I can't figur...
1
1,029
Change Bootstrap Popover trigger on Click
<p>I am trying to change the trigger of a Bootstrap popover using an html switch, I have some basic jQuery set up but each time I flip the switch each but popover responds differently.</p> <p>I set up each popover, then put it into a function that I can call each time I change the trigger. I have the trigger set as a ...
1
2,090
Responsive navbar in UIKit 3?
<p>I've been migrating my website over to UIkit 3 instead of Bootstrap 4. But I've been stuck on the navbar for a while. Right now, my navbar is built in Bootstrap 4 and looks like this: </p> <p><a href="https://jsfiddle.net/eztwL9p7/1/" rel="noreferrer">https://jsfiddle.net/eztwL9p7/1/</a></p> <pre><code>&lt;nav cla...
1
1,453
ESLint eslint-plugin-react arrow functions
<p>I'm having some trouble with ESLint and arrow functions in a react component using the <code>eslint-plugin-react</code> plugin. I just did these commands:</p> <ol> <li><code>npm i -g eslint eslint-plugin-react</code></li> <li><code>eslint SignUpPage.jsx</code></li> </ol> <p>And here is SignUpPage:</p> <pre><code>...
1
1,593
How to toggle between Full screen and small Screen in custom media controller android
<p>i am using the following code for custom media controller. the code is working fine but if i try to toggle full screen in portrait mode the video is stretched. if i give the fixed height and width the video is not stretched what is the proper way of implementing the toggle screen button in media controller.</p> <p...
1
10,186
Share information between Spring components
<p>I am trying to build an app where I implement a rather simple pattern: I have a websocket server that receives streaming data from a number of clients. This data is then stored so that it can be served through a RESTful API. I want to have some sort of interface that both the WS server and the REST API can access to...
1
1,583
CheckBox in ListView, setVisibility using SimpleCursorAdapter and CursorLoader
<p>Please, help me to find a solution how to set my checkboxes visible when I click on menu item "delete" and set invisible when I press "confirm" or "cancel". I use SimpleCursorAdapter, cuz listview is filled from database with cursor loader... here is my code:</p> <p><strong>MainActivity</strong></p> <pre><code>pu...
1
2,945
Using gmail api in django
<p>I'm a little new to Django and need some help translating my python script (authenticating, building the gmail service, querying gmail) into a django app. I'm trying to use the google django samples and the classes they've specified here <a href="https://developers.google.com/api-client-library/python/guide/django" ...
1
1,210
stm32 DMA cannot send data to SPI1 DR (Cannot use DMA to send data to SPI)
<p>I am trying to use DMA to send data to SPI1. SPI1 will then control DAC for voltage update. </p> <p>The chip used is STM32F407. Therefore, the corresponding channel/stream is: channel3/stream5, as is shown in reference manual. However, when the DMA is enabled, no data is shown in SPI1->DR and there are no results s...
1
1,935
PHP, Zend, require_once: "failed to open stream" and "Failed opening required [...]"
<p>I'm going nuts! I've been SO'ing and Googling for 2 hours now.</p> <p>In short, things were working fine, and then I did some class-restructuring, and now I'm getting this:</p> <pre><code> Warning: require_once(Zend/Mail/Transport/Sendmail.php) [function.require-once]: failed to open stream: No such file or di...
1
1,379
Error on webpack: can't resolve 'xlsx'. Bundle is not generated
<p>I am working on a project that must be production ready but my webpack (I use for several other projects) is not working due to a download dependency. I need help.</p> <p>This is my package.json file:</p> <pre><code>{ "name": "beanworks", "version": "1.0.0", "description": "accounts payable app", "main": "index.js...
1
4,015
django: nginx static content doesn't work
<p>I'm using django with nginx and gunicorn. nginx is supposed to serve the static content, but css, images and js files are not loaded in the browser. Why is that?</p> <p><em>I've substituted my Django project's name with <code>domain</code>.</em></p> <p><strong>/etc/nginx/sites-enabled/domain.tld</strong></p> <pre...
1
1,730
Regularized Logistic Regression in Python (Andrew ng Course)
<p>I'm starting the ML journey and I'm having troubles with this coding exercise here is my code</p> <pre><code>import numpy as np import pandas as pd import scipy.optimize as op # Read the data and give it labels data = pd.read_csv('ex2data2.txt', header=None, name['Test1', 'Test2', 'Accepted']) # Separate the feat...
1
1,158
Using SQLite with Phonegap Desktop
<p>I am opening a SQLite database in phonegap. This is my javascript code :</p> <pre><code> var myDB = null; function onDeviceReady() { myDB = window.openDatabase("test", "1.0", "Test DB", 1000000); //myDB = window.sqlitePlugin.openDatabase({name: 'test.db', location: 'de...
1
1,078
How to cast all nodes of a nested JSON tree to instances of a class in angular 2 Typescript?
<p>I have a class named Leaf, and I'd like to make all nodes of a json response instances of Leaf. The json response looks like this:</p> <p><strong>JSON Response</strong></p> <pre><code>{ "name":"animal", "state":false, "children":[ { "name":"cats", "state":false, ...
1
1,396
OpenGL: 2D Overlay is white over of 3D Scene
<p>I'm trying to make a copy of MineCraft in Java using OpenGL (LWJGL). The problem I'm facing is that everything of my 2D overlay (aiming cross in the middle, menus, etc...) are all white. The 3D part of the game works great: every cube has a texture on each side.</p> <p>But when I try to draw the overlay, as I said,...
1
1,777
How to detect UNREACHABLE HOSTS in Ansible
<p>Below is my playbook</p> <pre><code>- name: Play 1.5 - Check each target hosts: all_hosts ignore_unreachable: yes ignore_errors: yes gather_facts: true tasks: - raw: &quot;echo {{ inventory_hostname }} is UNREACHABLE&quot; delegate_to: localhost when: &lt;Need help with the when condition he...
1
2,072
could not extract result set: hibernate, SQL grammar exception in oracle database
<p>Please help me to solve this problem. This is the stack trace of my error.</p> <blockquote> <p>Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract R...
1
3,175